在阿里云容器服务中,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