Move KUBERNETES_NODE_NAME env var to controller
KUBERNETES_NODE_NAME environment variable was defined in kuryr-daemon DaemonSet instead of in kuryr-controller's Deployment. As it's only used by kuryr-controller, this commit moves that definition to its correct place. Change-Id: Idec2961e6c820524290a20655930a2bfd2898621 Closes-Bug: 1798835
This commit is contained in:
parent
35193e352b
commit
f0cde86ee6
|
@ -585,6 +585,11 @@ EOF
|
|||
imagePullPolicy: Never
|
||||
name: controller
|
||||
terminationMessagePath: "/dev/termination-log"
|
||||
env:
|
||||
- name: KUBERNETES_NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: "/etc/kuryr/kuryr.conf"
|
||||
|
@ -653,10 +658,6 @@ spec:
|
|||
imagePullPolicy: Never
|
||||
command: [ "cni_ds_init" ]
|
||||
env:
|
||||
- name: KUBERNETES_NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: KURYR_CNI_POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
|
|
Loading…
Reference in New Issue