kubeasz/roles/kube-node/templates/calico-kube-controllers.yam...

61 lines
1.9 KiB
Django/Jinja

# Calico Version v2.6.x
# https://docs.projectcalico.org/v2.6/releases
# This manifest includes the following component versions:
# calico/kube-controllers:v1.0.3
# Create this manifest using kubectl to deploy
# the Calico Kubernetes controllers.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: calico-kube-controllers
namespace: kube-system
labels:
k8s-app: calico-kube-controllers
spec:
# Only a single instance of the this pod should be
# active at a time. Since this pod is run as a Deployment,
# Kubernetes will ensure the pod is recreated in case of failure,
# removing the need for passive backups.
replicas: 1
strategy:
type: Recreate
template:
metadata:
name: calico-kube-controllers
namespace: kube-system
labels:
k8s-app: calico-kube-controllers
spec:
hostNetwork: true
serviceAccountName: calico-kube-controllers
containers:
- name: calico-kube-controllers
#image: quay.io/calico/kube-controllers:v1.0.3
image: calico/kube-controllers:v1.0.3
env:
# Configure the location of your etcd cluster.
- name: ETCD_ENDPOINTS
value: "{{ ETCD_ENDPOINTS }}"
# Location of the CA certificate for etcd.
- name: ETCD_CA_CERT_FILE
value: "/calico-secrets/ca.pem"
# Location of the client key for etcd.
- name: ETCD_KEY_FILE
value: "/calico-secrets/calico-key.pem"
# Location of the client certificate for etcd.
- name: ETCD_CERT_FILE
value: "/calico-secrets/calico.pem"
volumeMounts:
# Mount in the etcd TLS secrets.
- mountPath: /calico-secrets
name: etcd-certs
volumes:
# Mount in the etcd TLS secrets.
- name: etcd-certs
hostPath:
path: /etc/calico/ssl
---