Newer
Older
apiVersion: apps/v1beta2
kind: Deployment
metadata:
namespace: kube-system
labels:
kubernetes.io/cluster-service: "true"
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
replicas: 1
selector:
matchLabels:
kubernetes.io/cluster-service: "true"
template:
metadata:
namespace: kube-system
labels:
kubernetes.io/cluster-service: "true"
spec:
hostNetwork: true
serviceAccountName: calico-kube-controllers
tolerations:
- effect: NoSchedule
operator: Exists
containers:
image: {{ calico_policy_image_repo }}:{{ calico_policy_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
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 }}
env:
- name: ETCD_ENDPOINTS
value: "{{ etcd_access_addresses }}"
value: "{{ calico_cert_dir }}/ca_cert.crt"
value: "{{ calico_cert_dir }}/cert.crt"
value: "{{ calico_cert_dir }}/key.pem"
- mountPath: {{ calico_cert_dir }}
name: etcd-certs
readOnly: true
volumes:
- hostPath:
path: {{ calico_cert_dir }}