2017-12-06 09:06:52 +08:00
|
|
|
---
|
|
|
|
kind: DaemonSet
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
metadata:
|
|
|
|
name: contiv-etcd-proxy
|
2018-03-30 19:29:13 +08:00
|
|
|
namespace: kube-system
|
2017-12-06 09:06:52 +08:00
|
|
|
labels:
|
|
|
|
k8s-app: contiv-etcd-proxy
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: contiv-etcd-proxy
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: contiv-etcd-proxy
|
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
|
|
spec:
|
2018-10-17 06:33:30 +08:00
|
|
|
{% if kube_version is version('v1.11.1', '>=') %}
|
2018-09-25 22:50:22 +08:00
|
|
|
priorityClassName: system-node-critical
|
|
|
|
{% endif %}
|
2017-12-06 09:06:52 +08:00
|
|
|
hostNetwork: true
|
|
|
|
hostPID: true
|
2018-09-17 22:45:05 +08:00
|
|
|
nodeSelector:
|
|
|
|
node-role.kubernetes.io/node: "true"
|
2017-12-06 09:06:52 +08:00
|
|
|
containers:
|
|
|
|
- name: contiv-etcd-proxy
|
|
|
|
image: {{ contiv_etcd_image_repo }}:{{ contiv_etcd_image_tag }}
|
|
|
|
env:
|
|
|
|
- name: ETCD_LISTEN_CLIENT_URLS
|
2017-12-14 10:35:12 +08:00
|
|
|
value: 'http://127.0.0.1:{{ contiv_etcd_listen_port }}'
|
2017-12-06 09:06:52 +08:00
|
|
|
- name: ETCD_PROXY
|
|
|
|
value: "on"
|
|
|
|
- name: ETCD_INITIAL_CLUSTER
|
2017-12-14 10:35:12 +08:00
|
|
|
value: '{{ contiv_etcd_endpoints }}'
|