- 移除对 GitHub Actions 的 `pull_request` 触发器,仅保留标签推送触发 - 将所有 GitHub Actions 官方引用替换为对应的 Gitea 镜像仓库地址 - 将工作流上下文变量从 `github.*` 统一更新为 `gitea.*` - 优化步骤结构,将部分 `run` 命令合并为独立步骤以提高可读性 - 在 Docker Buildx 设置步骤中,显式指定构建器驱动镜像和网络配置 - 在构建并推送镜像步骤中,为镜像标签添加基于提取版本号的动态标签 - 更新容器镜像元数据中的源代码和修订版本信息源为 Gitea
Alibaba Cloud ECI
Alibaba Cloud ECI(Elastic Container Instance) is a service that allow you run containers without having to manage servers or clusters.
You can find more infomation via alibaba cloud ECI web portal
Alibaba Cloud ECI Virtual-Kubelet Provider
Alibaba ECI provider is an adapter to connect between k8s and ECI service to implement pod from k8s cluster on alibaba cloud platform
Prerequisites
To using ECI service on alibaba cloud, you may need open ECI service on web portal, and then the ECI service will be available
Deployment of the ECI provider in your cluster
configure and launch virtual kubelet
export ECI_REGION=cn-hangzhou
export ECI_SECURITY_GROUP=sg-123
export ECI_VSWITCH=vsw-123
export ECI_ACCESS_KEY=123
export ECI_SECRET_KEY=123
VKUBELET_TAINT_KEY=alibabacloud.com/eci virtual-kubelet --provider alibabacloud
confirm the virtual kubelet is connected to k8s cluster
$kubectl get node
NAME STATUS ROLES AGE VERSION
cn-shanghai.i-uf69qodr5ntaxleqdhhk Ready <none> 1d v1.9.3
virtual-kubelet Ready agent 10s v1.8.3
Schedule K8s Pod to ECI via virtual kubelet
You can assign pod to virtual kubelet via node-selector and toleration.
apiVersion: v1
kind: Pod
metadata:
name: mypod
spec:
nodeName: virtual-kubelet
containers:
- name: nginx
image: nginx
tolerations:
- key: alibabacloud.com/eci
operator: "Exists"
effect: NoSchedule
Alibaba Cloud Serverless Kubernetes
Alibaba Cloud serverless kubernetes allows you to quickly create kubernetes container applications without having to manage and maintain clusters and servers. It is based on ECI and fully compatible with the Kuberentes API.
You can find more infomation via alibaba cloud serverless kubernetes product doc