Skip to content

Commit

Permalink
fix: Use kubelet_hostname instead of inventory_hostname_short (vexxho…
Browse files Browse the repository at this point in the history
…st#101)

* Use kubelet_hostname instead of inventory_hostname_short

A recent commit introduced further cases of this, originally
fixed in 5c08c72

* Revert hostname change to inventory_hostname_short
  • Loading branch information
andrewbonney authored Jan 16, 2024
1 parent 457e10e commit 5711e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
throttle: 1
vexxhost.kubernetes.kubeadm_upgrade_node:
api_endpoint: "https://{{ kubernetes_hostname }}:6443"
node: "{{ inventory_hostname_short }}"
node: "{{ kubelet_hostname }}"
version: "{{ kubernetes_version }}"

- name: Set node selector for CoreDNS components
Expand Down

0 comments on commit 5711e3c

Please sign in to comment.