Skip to content

Commit

Permalink
Add resolv-conf flag to flatcar (#195)
Browse files Browse the repository at this point in the history
Signed-off-by: Artiom Diomin <[email protected]>
  • Loading branch information
kron4eg authored Jul 29, 2022
1 parent 952f1cd commit 10f171a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
7 changes: 7 additions & 0 deletions deploy/osps/default/osp-flatcar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,13 @@ spec:
[Install]
WantedBy=multi-user.target
- path: /etc/systemd/system/kubelet.service.d/extras.conf
content:
inline:
data: |
[Service]
Environment="KUBELET_EXTRA_ARGS=--resolv-conf=/run/systemd/resolve/resolv.conf"
- path: /etc/kubernetes/cloud-config
permissions: 400
content:
Expand Down
7 changes: 7 additions & 0 deletions pkg/controllers/osc/testdata/osc-flatcar-aws-containerd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ spec:
WantedBy=multi-user.target
path: /etc/systemd/system/kubelet.service
permissions: 644
- content:
inline:
data: |
[Service]
Environment="KUBELET_EXTRA_ARGS=--resolv-conf=/run/systemd/resolve/resolv.conf"
path: /etc/systemd/system/kubelet.service.d/extras.conf
permissions: 644
- content:
inline:
data: |+
Expand Down
7 changes: 7 additions & 0 deletions pkg/controllers/osc/testdata/osc-flatcar-aws-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ spec:
WantedBy=multi-user.target
path: /etc/systemd/system/kubelet.service
permissions: 644
- content:
inline:
data: |
[Service]
Environment="KUBELET_EXTRA_ARGS=--resolv-conf=/run/systemd/resolve/resolv.conf"
path: /etc/systemd/system/kubelet.service.d/extras.conf
permissions: 644
- content:
inline:
data: |+
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 10f171a

Please sign in to comment.