Skip to content

Commit

Permalink
Temporarily work around issues with a valid hostname for pods in MCM
Browse files Browse the repository at this point in the history
This reverts commit 800ea46.
  • Loading branch information
NotTheEvilOne committed May 23, 2022
1 parent 134ed34 commit d10cd74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ images:
- name: machine-controller-manager-provider-ionos
sourceRepository: https://github.com/23technologies/machine-controller-manager-provider-ionos
repository: ghcr.io/23technologies/machine-controller-manager-provider-ionos
tag: v0.1.4
tag: v0.1.5
- name: csi-driver-controller
sourceRepository: https://github.com/ionos-cloud/
repository: registry.k8s.cluster.ionos.com/kore/ionos-csi
Expand Down
7 changes: 4 additions & 3 deletions example/30-infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
version: "20.04"
cores: 1
memory: 1024
ip: 10.15.100.254
ip: 10.15.100.253
userData: |-
#cloud-config
runcmd:
Expand Down Expand Up @@ -113,8 +113,9 @@ spec:
bogus-priv
listen-address=127.0.0.1
listen-address=::1
listen-address=10.15.100.254
dhcp-range=set:workers,10.15.100.0,10.15.100.253,24h
listen-address=10.15.100.253
dhcp-range=set:workers,10.15.100.0,10.15.100.252,24h
dhcp-ignore-names=tag:workers
dhcp-option=tag:workers,option:router
volumeSize: 10737418240
floatingPool:
Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/controlplane/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (e *ensurer) EnsureKubeletServiceUnitOptions(ctx context.Context, gctx gcon
new = extensionswebhook.EnsureUnitOption(new, &unit.UnitOption{
Section: "Service",
Name: "ExecStartPre",
Value: `/bin/sh -c 'hostnamectl set-hostname $(uuidgen)'`,
Value: `/bin/sh -c 'hostnamectl set-hostname $(cat /etc/hostname | cut -d '.' -f 1)'`,
})
return new, nil
}
Expand Down

0 comments on commit d10cd74

Please sign in to comment.