2017-11-28 12:01:30 +00:00
|
|
|
apiVersion: apps/v1beta2
|
|
|
|
kind: Deployment
|
2016-10-10 14:09:50 +00:00
|
|
|
metadata:
|
2017-11-28 12:01:30 +00:00
|
|
|
name: calico-kube-controllers
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: kube-system
|
2016-10-10 14:09:50 +00:00
|
|
|
labels:
|
2017-11-28 12:01:30 +00:00
|
|
|
k8s-app: calico-kube-controllers
|
2016-10-10 14:09:50 +00:00
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2018-08-23 14:17:18 +00:00
|
|
|
strategy:
|
2018-09-11 14:34:36 +00:00
|
|
|
type: RollingUpdate
|
2016-10-10 14:09:50 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
kubernetes.io/cluster-service: "true"
|
2017-11-28 12:01:30 +00:00
|
|
|
k8s-app: calico-kube-controllers
|
2016-10-10 14:09:50 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
2017-11-28 12:01:30 +00:00
|
|
|
name: calico-kube-controllers
|
2018-03-30 11:29:13 +00:00
|
|
|
namespace: kube-system
|
2016-10-10 14:09:50 +00:00
|
|
|
labels:
|
|
|
|
kubernetes.io/cluster-service: "true"
|
2017-11-28 12:01:30 +00:00
|
|
|
k8s-app: calico-kube-controllers
|
2016-10-10 14:09:50 +00:00
|
|
|
spec:
|
|
|
|
hostNetwork: true
|
2017-11-28 12:01:30 +00:00
|
|
|
serviceAccountName: calico-kube-controllers
|
2017-08-24 09:04:25 +00:00
|
|
|
tolerations:
|
2017-09-04 08:29:40 +00:00
|
|
|
- effect: NoSchedule
|
|
|
|
operator: Exists
|
2018-10-16 22:33:30 +00:00
|
|
|
{% if kube_version is version('v1.11.1', '>=') %}
|
2018-09-25 14:50:22 +00:00
|
|
|
priorityClassName: system-cluster-critical
|
|
|
|
{% endif %}
|
2016-10-10 14:09:50 +00:00
|
|
|
containers:
|
2017-11-28 12:01:30 +00:00
|
|
|
- name: calico-kube-controllers
|
2016-11-21 10:20:44 +00:00
|
|
|
image: {{ calico_policy_image_repo }}:{{ calico_policy_image_tag }}
|
2016-11-22 15:16:04 +00:00
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2016-12-23 14:44:44 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: {{ calico_policy_controller_cpu_limit }}
|
|
|
|
memory: {{ calico_policy_controller_memory_limit }}
|
|
|
|
requests:
|
|
|
|
cpu: {{ calico_policy_controller_cpu_requests }}
|
|
|
|
memory: {{ calico_policy_controller_memory_requests }}
|
2016-10-10 14:09:50 +00:00
|
|
|
env:
|
|
|
|
- name: ETCD_ENDPOINTS
|
2017-10-04 12:27:55 +00:00
|
|
|
value: "{{ etcd_access_addresses }}"
|
2016-11-09 10:44:41 +00:00
|
|
|
- name: ETCD_CA_CERT_FILE
|
2016-12-30 12:47:12 +00:00
|
|
|
value: "{{ calico_cert_dir }}/ca_cert.crt"
|
2016-11-09 10:44:41 +00:00
|
|
|
- name: ETCD_CERT_FILE
|
2016-12-30 12:47:12 +00:00
|
|
|
value: "{{ calico_cert_dir }}/cert.crt"
|
2016-11-09 10:44:41 +00:00
|
|
|
- name: ETCD_KEY_FILE
|
2016-12-30 12:47:12 +00:00
|
|
|
value: "{{ calico_cert_dir }}/key.pem"
|
2016-11-10 12:13:03 +00:00
|
|
|
volumeMounts:
|
2016-12-30 12:47:12 +00:00
|
|
|
- mountPath: {{ calico_cert_dir }}
|
2016-11-10 12:13:03 +00:00
|
|
|
name: etcd-certs
|
|
|
|
readOnly: true
|
|
|
|
volumes:
|
|
|
|
- hostPath:
|
2016-12-30 12:47:12 +00:00
|
|
|
path: {{ calico_cert_dir }}
|
2016-11-10 12:13:03 +00:00
|
|
|
name: etcd-certs
|