Skip to content

Commit

Permalink
add dnsPolicy: ClusterFirstWithHostNet to DaemonSets with hostNetwork…
Browse files Browse the repository at this point in the history
…: true value to avoid DNSConfigFormat events (kubernetes-sigs#10618)
  • Loading branch information
Payback159 authored and pedromcpedro committed May 8, 2024
1 parent 329c514 commit 4fc8264
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ spec:
spec:
serviceAccountName: csi-cinder-node-sa
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers:
- name: node-driver-registrar
image: {{ csi_node_driver_registrar_image_repo }}:{{ csi_node_driver_registrar_image_tag }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ spec:
- name: CLOUD_CONFIG
value: /etc/config/cloud.conf
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
volumes:
{% if kubelet_flexvolumes_plugins_dir is defined %}
- name: flexvolume-dir
Expand Down
1 change: 1 addition & 0 deletions roles/network_plugin/calico/templates/calico-node.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
{{ calico_ds_nodeselector }}
priorityClassName: system-node-critical
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: calico-node
tolerations:
- operator: Exists
Expand Down

0 comments on commit 4fc8264

Please sign in to comment.