Take dnsPolicy from .Values.pod.dns_policy variable

Change-Id: Iae7caa5bdefe7749231c031c6003591a6251fa97
This commit is contained in:
Alexander Noskov 2019-07-10 14:13:53 -05:00
parent 769d0980f0
commit 3b5a1c7909
23 changed files with 23 additions and 14 deletions

View File

@ -91,7 +91,7 @@ spec:
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: {{ .Values.pod.dns_policy }}
serviceAccountName: {{ $serviceAccountName }}
{{ if $envAll.Values.pod.tolerations.metricbeat.enabled }}
{{ tuple $envAll "metricbeat" | include "helm-toolkit.snippets.kubernetes_tolerations" | indent 6 }}

View File

@ -221,6 +221,7 @@ pod:
enabled: true
min_ready_seconds: 0
max_unavailable: 1
dns_policy: "ClusterFirstWithHostNet"
replicas:
metricbeat: 1
resources:

View File

@ -92,7 +92,7 @@ spec:
securityContext:
runAsUser: 0
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: {{ .Values.pod.dns_policy }}
serviceAccountName: {{ $serviceAccountName }}
initContainers:
{{ tuple $envAll "packetbeat" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}

View File

@ -159,6 +159,7 @@ pod:
enabled: true
min_ready_seconds: 0
max_unavailable: 1
dns_policy: "ClusterFirstWithHostNet"
replicas:
packetbeat: 1
resources:

View File

@ -105,7 +105,7 @@ spec:
{{ end }}
hostNetwork: true
hostPID: true
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: {{ .Values.pod.dns_policy }}
initContainers:
{{ tuple $envAll "fluentbit" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
containers:

View File

@ -220,6 +220,7 @@ pod:
default: preferredDuringSchedulingIgnoredDuringExecution
topologyKey:
default: kubernetes.io/hostname
dns_policy: "ClusterFirstWithHostNet"
lifecycle:
upgrades:
daemonsets:

View File

@ -15,4 +15,4 @@
dependencies:
- name: helm-toolkit
repository: http://localhost:8879/charts
version: 0.1.0
version: 0.1.0

View File

@ -191,7 +191,7 @@ spec:
{{- if .Values.network.host_namespace }}
hostNetwork: true
{{- end }}
dnsPolicy: "ClusterFirstWithHostNet"
dnsPolicy: {{ .Values.pod.dns_policy }}
terminationGracePeriodSeconds: {{ .Values.pod.lifecycle.termination_grace_period.server.timeout | default "60" }}
initContainers:
{{ tuple $envAll "ingress" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}

View File

@ -35,4 +35,4 @@ spec:
port: {{ .Values.endpoints.ingress_exporter.port.metrics.default }}
selector:
{{ tuple $envAll "ingress" "server" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}{{- end }}
{{- end }}
{{- end }}

View File

@ -82,6 +82,7 @@ pod:
default: kubernetes.io/hostname
weight:
default: 10
dns_policy: "ClusterFirstWithHostNet"
replicas:
ingress: 1
error_page: 1

View File

@ -178,7 +178,7 @@ spec:
memory: 20Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: Default
dnsPolicy: {{ .Values.pod.dns_policy }}
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}

View File

@ -34,6 +34,7 @@ images:
- image_repo_sync
pod:
dns_policy: "Default"
resources:
enabled: false
jobs:

View File

@ -55,7 +55,7 @@ spec:
hostNetwork: true
hostPID: true
hostIPC: true
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: {{ .Values.pod.dns_policy }}
initContainers:
{{ tuple $envAll "pod_dependency" $mounts_libvirt_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
{{ dict "envAll" $envAll | include "helm-toolkit.snippets.kubernetes_apparmor_loader_init_container" | indent 8 }}

View File

@ -111,6 +111,7 @@ pod:
default: kubernetes.io/hostname
weight:
default: 10
dns_policy: "ClusterFirstWithHostNet"
mounts:
libvirt:
init_container: null

View File

@ -47,7 +47,7 @@ spec:
{{ dict "envAll" $envAll "application" "openvswitch_db_server" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
nodeSelector:
{{ .Values.labels.ovs.node_selector_key }}: {{ .Values.labels.ovs.node_selector_value }}
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: {{ .Values.pod.dns_policy }}
hostNetwork: true
initContainers:
{{ tuple $envAll "db" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}

View File

@ -47,7 +47,7 @@ spec:
{{ dict "envAll" $envAll "application" "openvswitch_vswitchd" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}
nodeSelector:
{{ .Values.labels.ovs.node_selector_key }}: {{ .Values.labels.ovs.node_selector_value }}
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: {{ .Values.pod.dns_policy }}
hostNetwork: true
initContainers:
{{ tuple $envAll "vswitchd" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}

View File

@ -67,6 +67,7 @@ pod:
add:
- NET_ADMIN
readOnlyRootFilesystem: true
dns_policy: "ClusterFirstWithHostNet"
lifecycle:
upgrades:
daemonsets:

View File

@ -45,7 +45,7 @@ spec:
serviceAccountName: {{ $serviceAccountName }}
nodeSelector:
{{ .Values.labels.registry.node_selector_key }}: {{ .Values.labels.registry.node_selector_value | quote }}
dnsPolicy: ClusterFirstWithHostNet
dnsPolicy: {{ .Values.pod.dns_policy }}
hostNetwork: true
initContainers:
{{ tuple $envAll "registry_proxy" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}

View File

@ -98,6 +98,7 @@ pod:
default: kubernetes.io/hostname
weight:
default: 10
dns_policy: "ClusterFirstWithHostNet"
replicas:
registry: 1
lifecycle:

View File

@ -104,7 +104,7 @@ spec:
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
dnsPolicy: {{ .Values.pod.dns_policy }}
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}

View File

@ -37,6 +37,7 @@ images:
- image_repo_sync
pod:
dns_policy: "ClusterFirst"
security_context:
tiller:
pod:

View File

@ -173,4 +173,4 @@ helm upgrade --install libvirt ./libvirt \
#NOTE: Validate Deployment info
./tools/deployment/common/wait-for-pods.sh openstack
helm status libvirt
helm status libvirt

View File

@ -68,4 +68,4 @@ helm upgrade --install prometheus ./prometheus \
./tools/deployment/common/wait-for-pods.sh osh-infra
#NOTE: Validate Deployment info
helm status prometheus
helm status prometheus