Skip to content

Commit

Permalink
cloud-api-adaptor: set dnsPolicy to ClusterFirstWithHostNet
Browse files Browse the repository at this point in the history
change dns setting of the CAA daemonset's pod-spec

name: cloud-api-adaptor-daemonset
namespace: confidential-containers-system

The correct dnsPolicy setting when hostNetwork: true is
dnsPolicy: ClusterFirstWithHostNet

See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/

Signed-off-by: David Hadas <david.hadas@gmail.com>
  • Loading branch information
davidhadas authored and bpradipt committed Apr 10, 2024
1 parent 25b3436 commit a2047c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cloud-api-adaptor/install/yamls/caa-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ spec:
mountPropagation: HostToContainer
name: netns
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:
node.kubernetes.io/worker: ""
volumes:
Expand Down

0 comments on commit a2047c5

Please sign in to comment.