work_dir: /kubekey
artifact:
  arch: [ "amd64" ]
  # offline artifact package for kk.
  artifact_file: ""
  # the md5_file of artifact_file.
  artifact_md5: ""
  # how to generate cert file.support: IfNotPresent, Always
  gen_cert_policy: IfNotPresent
  artifact_url:
    etcd:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/etcd/release/download/{{ .etcd_version }}/etcd-{{ .etcd_version }}-linux-amd64.tar.gz
        {{- else }}
        https://github.com/etcd-io/etcd/releases/download/{{ .etcd_version }}/etcd-{{ .etcd_version }}-linux-amd64.tar.gz
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/etcd/release/download/{{ .etcd_version }}/etcd-{{ .etcd_version }}-linux-arm64.tar.gz
        {{- else }}
        https://github.com/etcd-io/etcd/releases/download/{{ .etcd_version }}/etcd-{{ .etcd_version }}-linux-arm64.tar.gz
        {{- end }}
    kubeadm:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/release/{{ .kube_version }}/bin/linux/amd64/kubeadm
        {{- else }}
        https://dl.k8s.io/release/{{ .kube_version }}/bin/linux/amd64/kubeadm
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/release/{{ .kube_version }}/bin/linux/arm64/kubeadm
        {{- else }}
        https://dl.k8s.io/release/{{ .kube_version }}/bin/linux/arm64/kubeadm
        {{- end }}
    kubelet:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/release/{{ .kube_version }}/bin/linux/amd64/kubelet
        {{- else }}
        https://dl.k8s.io/release/{{ .kube_version }}/bin/linux/amd64/kubelet
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/release/{{ .kube_version }}/bin/linux/arm64/kubelet
        {{- else }}
        https://dl.k8s.io/release/{{ .kube_version }}/bin/linux/arm64/kubelet
        {{- end }}
    kubectl:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/release/{{ .kube_version }}/bin/linux/amd64/kubectl
        {{- else }}
        https://dl.k8s.io/release/{{ .kube_version }}/bin/linux/amd64/kubectl
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/release/{{ .kube_version }}/bin/linux/arm64/kubectl
        {{- else }}
        https://dl.k8s.io/release/{{ .kube_version }}/bin/linux/arm64/kubectl
        {{- end }}
    cni:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://github.com/containernetworking/plugins/releases/download/{{ .cni_version }}/cni-plugins-linux-amd64-{{ .cni_version }}.tgz
        {{- else }}
        https://containernetworking.pek3b.qingstor.com/plugins/releases/download/{{ .cni_version }}/cni-plugins-linux-amd64-{{ .cni_version }}.tgz
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://github.com/containernetworking/plugins/releases/download/{{ .cni_version }}/cni-plugins-linux-arm64-{{ .cni_version }}.tgz
        {{- else }}
        https://containernetworking.pek3b.qingstor.com/plugins/releases/download/{{ .cni_version }}/cni-plugins-linux-arm64-{{ .cni_version }}.tgz
        {{- end }}
    helm:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-helm.pek3b.qingstor.com/helm-{{ .helm_version }}-linux-amd64.tar.gz
        {{- else }}
        https://get.helm.sh/helm-{{ .helm_version }}-linux-amd64.tar.gz
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-helm.pek3b.qingstor.com/helm-{{ .helm_version }}-linux-arm64.tar.gz
        {{- else }}
        https://get.helm.sh/helm-{{ .helm_version }}-linux-arm64.tar.gz
        {{- end }}
    crictl:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/cri-tools/releases/download/{{ .crictl_version }}/crictl-{{ .crictl_version }}-linux-amd64.tar.gz
        {{- else }}
        https://github.com/kubernetes-sigs/cri-tools/releases/download/{{ .crictl_version }}/crictl-{{ .crictl_version }}-linux-amd64.tar.gz
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/cri-tools/releases/download/{{ .crictl_version }}/crictl-{{ .crictl_version }}-linux-arm64.tar.gz
        {{- else }}
        https://github.com/kubernetes-sigs/cri-tools/releases/download/{{ .crictl_version }}/crictl-{{ .crictl_version }}-linux-arm64.tar.gz
        {{- end }}
    docker:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/docker-{{ .docker_version }}.tgz
        {{- else }}
        https://download.docker.com/linux/static/stable/x86_64/docker-{{ .docker_version }}.tgz
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://mirrors.aliyun.com/docker-ce/linux/static/stable/aarch64/docker-{{ .docker_version }}.tgz
        {{- else }}
        https://download.docker.com/linux/static/stable/aarch64/docker-{{ .docker_version }}.tgz
        {{- end }}
    cridockerd:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/releases/download/{{ .cridockerd_version }}/cri-dockerd-{{ .cridockerd_version | default "" | trimPrefix "v" }}.amd64.tgz
        {{- else }}
        https://github.com/Mirantis/cri-dockerd/releases/download/{{ .cridockerd_version }}/cri-dockerd-{{ .cridockerd_version | default "" | trimPrefix "v" }}.amd64.tgz
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/releases/download/{{ .cridockerd_version }}/cri-dockerd-{{ .cridockerd_version | default "" | trimPrefix "v" }}.arm64.tgz
        {{- else }}
        https://github.com/Mirantis/cri-dockerd/releases/download/{{ .cridockerd_version }}/cri-dockerd-{{ .cridockerd_version | default "" | trimPrefix "v" }}.arm64.tgz
        {{- end }}
    containerd:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/containerd/containerd/releases/download/{{ .containerd_version }}/containerd-{{ .containerd_version | default "" | trimPrefix "v" }}-linux-amd64.tar.gz
        {{- else }}
        https://github.com/containerd/containerd/releases/download/{{ .containerd_version }}/containerd-{{ .containerd_version | default "" | trimPrefix "v" }}-linux-amd64.tar.gz
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/containerd/containerd/releases/download/{{ .containerd_version }}/containerd-{{ .containerd_version | default "" | trimPrefix "v" }}-linux-arm64.tar.gz
        {{- else }}
        https://github.com/containerd/containerd/releases/download/{{ .containerd_version }}/containerd-{{ .containerd_version | default "" | trimPrefix "v"  }}-linux-arm64.tar.gz
        {{- end }}
    runc:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/opencontainers/runc/releases/download/{{ .runc_version }}/runc.amd64
        {{- else }}
        https://github.com/opencontainers/runc/releases/download/{{ .runc_version }}/runc.amd64
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/opencontainers/runc/releases/download/{{ .runc_version }}/runc.arm64
        {{- else }}
        https://github.com/opencontainers/runc/releases/download/{{ .runc_version }}/runc.arm64
        {{- end }}
    calicoctl:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/projectcalico/calico/releases/download/{{ .calico_version }}/calicoctl-linux-amd64
        {{- else }}
        https://github.com/projectcalico/calico/releases/download/{{ .calico_version }}/calicoctl-linux-amd64
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/projectcalico/calico/releases/download/{{ .calico_version }}/calicoctl-linux-arm64
        {{- else }}
        https://github.com/projectcalico/calico/releases/download/{{ .calico_version }}/calicoctl-linux-arm64
        {{- end }}
    dockercompose:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/docker/compose/releases/download/{{ .dockercompose_version }}/docker-compose-linux-x86_64
        {{- else }}
        https://github.com/docker/compose/releases/download/{{ .dockercompose_version }}/docker-compose-linux-x86_64
        {{- end }}
      arm64: |
        {{- if .kkzone | eq "cn" }}
        https://kubernetes-release.pek3b.qingstor.com/docker/compose/releases/download/{{ .dockercompose_version }}/docker-compose-linux-aarch64
        {{- else }}
        https://github.com/docker/compose/releases/download/{{ .dockercompose_version }}/docker-compose-linux-aarch64
        {{- end }}
#    registry:
#      amd64: |
#        {{- if .kkzone | eq "cn" }}
#        https://kubernetes-release.pek3b.qingstor.com/registry/{{ .registry_version }}/registry-{{ .registry_version }}-linux-amd64.tgz
#        {{- else }}
#        https://github.com/kubesphere/kubekey/releases/download/{{ .registry_version }}/registry-{{ .registry_version }}-linux-amd64.tgz
#        {{- end }}
#      arm64: |
#        {{- if .kkzone | eq "cn" }}
#        https://kubernetes-release.pek3b.qingstor.com/registry/{{ .registry_version }}/registry-{{ .registry_version }}-linux-arm64.tgz
#        {{- else }}
#        https://github.com/kubesphere/kubekey/releases/download/{{ .registry_version }}/registry-{{ .registry_version }}-linux-arm64.tgz
#        {{- end }}
    harbor:
      amd64: |
        {{- if .kkzone | eq "cn" }}
        https://github.com/goharbor/harbor/releases/download/{{ .harbor_version }}/harbor-offline-installer-{{ .harbor_version }}.tgz
        {{- else }}
        https://github.com/goharbor/harbor/releases/download/{{ .harbor_version }}/harbor-offline-installer-{{ .harbor_version }}.tgz
        {{- end }}
#      arm64: |
#        {{- if .kkzone | eq "cn" }}
#        https://github.com/goharbor/harbor/releases/download/{{ .harbor_version }}/harbor-{{ .harbor_version }}-linux-arm64.tgz
#        {{- else }}
#        https://github.com/goharbor/harbor/releases/download/{{ .harbor_version }}/harbor-{{ .harbor_version }}-linux-arm64.tgz
#        {{- end }}
#    keepalived:
#      amd64: |
#        {{- if .kkzone | eq "cn" }}
#        https://kubernetes-release.pek3b.qingstor.com/osixia/keepalived/releases/download/{{ .keepalived_version }}/keepalived-{{ .keepalived_version }}-linux-amd64.tgz
#        {{- else }}
#        https://github.com/osixia/keepalived/releases/download/{{ .keepalived_version }}/keepalived-{{ .keepalived_version }}-linux-amd64.tgz
#        {{- end }}
#      arm64: |
#        {{- if .kkzone | eq "cn" }}
#        https://kubernetes-release.pek3b.qingstor.com/osixia/keepalived/releases/download/{{ .keepalived_version }}/keepalived-{{ .keepalived_version }}-linux-arm64.tgz
#        {{- else }}
#        https://github.com/osixia/keepalived/releases/download/{{ .keepalived_version }}/keepalived-{{ .keepalived_version }}-linux-arm64.tgz
#        {{- end }}
    cilium: https://helm.cilium.io/cilium-{{ .cilium_version }}.tgz
    kubeovn: https://kubeovn.github.io/kube-ovn/kube-ovn-{{ .kubeovn_version }}.tgz
    hybridnet: https://github.com/alibaba/hybridnet/releases/download/helm-chart-{{ .hybridnet_version }}/hybridnet-{{ .hybridnet_version }}.tgz
    nfs_provisioner: https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner/releases/download/nfs-subdir-external-provisioner-4.0.18/nfs-subdir-external-provisioner-{{ .nfs_provisioner_version }}.tgz
  images:
    auth: []
    list: []
