741de6051c
* Fix nodeselectors for contiv and nginx-ingress Change-Id: Ib3eb6bd87193c69a90ee944c9164a0b6792c79ba * Set kube proxy mode to iptables for addons task Change-Id: Iff71a71f672405c74b4708c71db15ddc4391a53a
39 lines
1.1 KiB
Django/Jinja
39 lines
1.1 KiB
Django/Jinja
---
|
|
kind: DaemonSet
|
|
apiVersion: extensions/v1beta1
|
|
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:
|
|
{% if kube_version is version('v1.11.1', '>=') %}
|
|
priorityClassName: system-node-critical
|
|
{% endif %}
|
|
hostNetwork: true
|
|
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
|
|
value: 'http://127.0.0.1:{{ contiv_etcd_listen_port }}'
|
|
- name: ETCD_PROXY
|
|
value: "on"
|
|
- name: ETCD_INITIAL_CLUSTER
|
|
value: '{{ contiv_etcd_endpoints }}'
|