在阿里雲Container Service中,1.10.4及以上版本預設安裝alicloud-application-controller,來提供一種基於 CRD 的分批發布的能力。

说明 Kubernetes最新叢集已經預設安裝alicloud-application-controller,舊版本叢集可以通過手動安裝的方式部署alicloud-application-controller,要求Kubernetes叢集版本最低為v1.9.3。
您可通過 kubectl create -f alicloud-application-controller.yml命令部署alicloud-application-controller,在 alicloud-application-controller.yml中輸入如下的編排模板。
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: alicloud-application-controller
  labels:
    owner: aliyun
    app: alicloud-application-controller
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      owner: aliyun
      app: alicloud-application-controller
  template:
    metadata:
      labels:
        owner: aliyun
        app: alicloud-application-controller
      annotations:
        scheduler.alpha.kubernetes.io/critical-pod: ''
    spec:
      tolerations:
      - effect: NoSchedule
        operator: Exists
        key: node-role.kubernetes.io/master
      - effect: NoSchedule
        operator: Exists
        key: node.cloudprovider.kubernetes.io/uninitialized
      containers:
        - name: alicloud-application-controller
          image: registry.cn-hangzhou.aliyuncs.com/acs/aliyun-app-lifecycle-manager:0.1-c8d5da8
          imagePullPolicy: IfNotPresent
      serviceAccount: admin