You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1001 B

6 years ago
  1. ---
  2. kind: DaemonSet
  3. apiVersion: extensions/v1beta1
  4. metadata:
  5. name: contiv-etcd-proxy
  6. namespace: kube-system
  7. labels:
  8. k8s-app: contiv-etcd-proxy
  9. spec:
  10. selector:
  11. matchLabels:
  12. k8s-app: contiv-etcd-proxy
  13. template:
  14. metadata:
  15. labels:
  16. k8s-app: contiv-etcd-proxy
  17. annotations:
  18. scheduler.alpha.kubernetes.io/critical-pod: ''
  19. spec:
  20. {% if kube_version is version('v1.11.1', '>=') %}
  21. priorityClassName: system-node-critical
  22. {% endif %}
  23. hostNetwork: true
  24. hostPID: true
  25. nodeSelector:
  26. node-role.kubernetes.io/node: "true"
  27. containers:
  28. - name: contiv-etcd-proxy
  29. image: {{ contiv_etcd_image_repo }}:{{ contiv_etcd_image_tag }}
  30. env:
  31. - name: ETCD_LISTEN_CLIENT_URLS
  32. value: 'http://127.0.0.1:{{ contiv_etcd_listen_port }}'
  33. - name: ETCD_PROXY
  34. value: "on"
  35. - name: ETCD_INITIAL_CLUSTER
  36. value: '{{ contiv_etcd_endpoints }}'