manifests: default hostname to spec.nodeName
Not all K8s installs will correctly match the node's hostname to the node's name in the API. We can get around this by setting the name Kilo uses to the node name in the API.
This commit is contained in:
@@ -97,6 +97,12 @@ spec:
|
||||
image: squat/kilo
|
||||
args:
|
||||
- --kubeconfig=/etc/kubernetes/kubeconfig
|
||||
- --hostname=$(NODE_NAME)
|
||||
env:
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
|
Reference in New Issue
Block a user