修复calico-controller多网卡问题

pull/206/merge
gjmzj 2018-05-27 11:08:55 +08:00
parent 68ecb6a23d
commit 29f0c4cd31
1 changed files with 5 additions and 0 deletions

View File

@ -312,6 +312,11 @@ spec:
# Choose which controllers to run.
- name: ENABLED_CONTROLLERS
value: policy,profile,workloadendpoint,node
# 多网卡服务器需要设置以下2个环境变量
- name: KUBERNETES_SERVICE_HOST
value: "{{ MASTER_IP }}"
- name: KUBERNETES_SERVICE_PORT
value: "{{ KUBE_APISERVER.split(':')[2] }}"
volumeMounts:
# Mount in the etcd TLS secrets.
- mountPath: /calico-secrets