set DNS policy for osd daemonset

Use ClusterFirstWithHostNet DNS policy so osd pods can resolve mon address
through host network

Change-Id: I7aaeee1fc26cc1812c210bfe2c0f5b131c4cbd81
Closes-Bug: #1709439
This commit is contained in:
Huamin Chen 2017-08-08 15:06:23 -04:00
parent 9b58bee639
commit e30c1cf414
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ spec:
initContainers:
{{ tuple $envAll $dependencies "" | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
hostNetwork: true
dnsPolicy: {{ .Values.pod.dns_policy }}
containers:
- name: osd-pod
image: {{ .Values.images.daemon }}

View File

@ -50,6 +50,7 @@ labels:
node_selector_value: enabled
pod:
dns_policy: "ClusterFirstWithHostNet"
affinity:
anti:
type: