Skip to content

Commit

Permalink
deployment: use spec.nodeName as HOSTNAME for the controllers
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Sep 16, 2022
1 parent feeedd5 commit af6ebed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/dynamic-networks-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ spec:
serviceAccountName: dynamic-networks-controller
containers:
- name: dynamic-networks-controller
env:
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: quay.io/mduarted/multus-dynamic-networks-controller:latest
command: [ "/dynamic-networks-controller" ]
args:
Expand Down
5 changes: 5 additions & 0 deletions templates/dynamic-networks-controller.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ spec:
serviceAccountName: dynamic-networks-controller
containers:
- name: dynamic-networks-controller
env:
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: {{ IMAGE_REGISTRY }}/multus-dynamic-networks-controller:latest
command: [ "/dynamic-networks-controller" ]
args:
Expand Down

0 comments on commit af6ebed

Please sign in to comment.