Fix nodeselectors for contiv and nginx-ingress (#4662)

* Fix nodeselectors for contiv and nginx-ingress

Change-Id: Ib3eb6bd87193c69a90ee944c9164a0b6792c79ba

* Set kube proxy mode to iptables for addons task

Change-Id: Iff71a71f672405c74b4708c71db15ddc4391a53a
This commit is contained in:
Matthew Mosesohn
2019-04-29 09:36:19 +03:00
committed by Kubernetes Prow Robot
parent b8f0de3074
commit 741de6051c
4 changed files with 10 additions and 4 deletions

View File

@@ -20,8 +20,13 @@ spec:
{% endif %}
hostNetwork: true
hostPID: true
nodeSelector:
node-role.kubernetes.io/node: ""
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 }}