Skip to content

Commit

Permalink
Temporarily work around issues with a valid hostname for pods
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheEvilOne committed Dec 2, 2021
1 parent e3d87f3 commit 1150230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webhook/controlplane/ensurer.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,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 $(cat /etc/hostname | cut -d '.' -f 1)'`,
Value: `/bin/sh -c 'hostnamectl set-hostname $(cat /etc/machine-id)'`,
})
return new, nil
}
Expand Down

0 comments on commit 1150230

Please sign in to comment.