kubespray/roles/network_plugin/contiv/templates/contiv-etcd-proxy.yml.j2

39 lines
1.0 KiB
Plaintext
Raw Normal View History

---
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: contiv-etcd-proxy
namespace: kube-system
labels:
k8s-app: contiv-etcd-proxy
spec:
selector:
matchLabels:
k8s-app: contiv-etcd-proxy
template:
metadata:
labels:
k8s-app: contiv-etcd-proxy
spec:
priorityClassName: system-node-critical
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPID: true
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: DoesNotExist
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 }}'
- name: ETCD_PROXY
value: "on"
- name: ETCD_INITIAL_CLUSTER
2017-12-14 10:35:12 +08:00
value: '{{ contiv_etcd_endpoints }}'