Skip to content

Commit 571b46b

Browse files
authored
Merge pull request #103 from detiber/noHostsHack
Remove /etc/hosts hack
2 parents 37a252f + c54edbc commit 571b46b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

internal/templates/templates.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ tasks:
9595
groups: [wheel, adm]
9696
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
9797
shell: /bin/bash
98+
manage_etc_hosts: localhost
9899
warnings:
99100
dsid_missing_source: off
100101
- name: "add-tink-cloud-init-ds-config"

templates/cluster-template.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ spec:
1212
name: ${CLUSTER_NAME}-control-plane
1313
kubeadmConfigSpec:
1414
preKubeadmCommands:
15-
- echo "127.0.1.1 {{ ds.meta_data.hostname }}" >> /etc/hosts
1615
- mkdir -p /etc/kubernetes/manifests && ctr images pull ghcr.io/kube-vip/kube-vip:v0.3.8 && ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:v0.3.8 vip /kube-vip manifest pod --arp --interface $(ip -4 -j route list default | jq -r .[0].dev) --address ${CONTROL_PLANE_VIP} --controlplane --leaderElection > /etc/kubernetes/manifests/kube-vip.yaml
1716
# initConfiguration and joinConfiguration must be in sync to have the same features
1817
# for both cluster bootstrapping and new controller nodes joining.

0 commit comments

Comments
 (0)