Skip to content

Commit 45e3b6e

Browse files
committed
set ntp server and reload config
anexia-it/machine-controller@f9025b9 ANXKUBE-1356: Use Anexia NTP servers In comparison to the official Flatcar ones, our NTP servers are not automatically blocked by the firewall. anexia-it/machine-controller@9710c81 ANXKUBE-1353: Apply sysctls automatically with kubelet sysctl --system can be executed multiple times, so this should be a safe change. It's also just a soft dependency (Wants instead of Requires), so even in case of an error, it would not block the startup of kubelet. It's still unclear why the unit is sometimes not executed and right now, I assume it has to do something with the network dependences.Please enter the commit message for your changes. Lines starting
1 parent 9a71d14 commit 45e3b6e

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

deploy/osps/default/osp-flatcar-cloud-init.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ spec:
550550
After={{ .ContainerRuntime }}.service
551551
{{- if eq .CloudProviderName "anexia" }}
552552
Requires={{ .ContainerRuntime }}.service rpc-statd.service
553+
Wants=apply-sysctl-settings.service
553554
{{- else }}
554555
Requires={{ .ContainerRuntime }}.service
555556
{{- end }}

deploy/osps/default/osp-flatcar.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,3 +891,12 @@ spec:
891891
PrintMotd no # handled by PAM
892892
PasswordAuthentication no
893893
ChallengeResponseAuthentication no
894+
- path: /etc/systemd/timesyncd.conf
895+
permissions: 644
896+
content:
897+
inline:
898+
data: |
899+
# ANXKUBE-1356 made us realise that we have to use our custom NTP servers,
900+
# because the official Flatcar ones might be blocked by a firewall.
901+
[Time]
902+
NTP=ntp0101.anexia-it.net ntp0401.anexia-it.net ntp8201.anexia-it.net

pkg/controllers/osc/testdata/osc-flatcar-aws-containerd.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,15 @@ spec:
561561
ChallengeResponseAuthentication no
562562
path: /etc/ssh/sshd_config
563563
permissions: 600
564+
- content:
565+
inline:
566+
data: |
567+
# ANXKUBE-1356 made us realise that we have to use our custom NTP servers,
568+
# because the official Flatcar ones might be blocked by a firewall.
569+
[Time]
570+
NTP=ntp0101.anexia-it.net ntp0401.anexia-it.net ntp8201.anexia-it.net
571+
path: /etc/systemd/timesyncd.conf
572+
permissions: 644
564573
- content:
565574
inline:
566575
data: |

pkg/controllers/osc/testdata/secret-flatcar-aws-containerd-provisioning.yaml

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)