Browse Source

Remove dnsPolicy from PSP (#4864)

pull/4868/head
Andreas Krüger 5 years ago
committed by Kubernetes Prow Robot
parent
commit
c8d95a1586
3 changed files with 0 additions and 5 deletions
  1. 1
      roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-psp.yml.j2
  2. 3
      roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/psp-ingress-nginx.yml.j2
  3. 1
      roles/kubernetes-apps/registry/templates/registry-proxy-psp.yml.j2

1
roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-psp.yml.j2

@ -26,7 +26,6 @@ spec:
- 'downwardAPI' - 'downwardAPI'
- 'persistentVolumeClaim' - 'persistentVolumeClaim'
hostNetwork: true hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostIPC: false hostIPC: false
hostPID: false hostPID: false
runAsUser: runAsUser:

3
roles/kubernetes-apps/ingress_controller/ingress_nginx/templates/psp-ingress-nginx.yml.j2

@ -26,9 +26,6 @@ spec:
- 'downwardAPI' - 'downwardAPI'
- 'persistentVolumeClaim' - 'persistentVolumeClaim'
hostNetwork: {{ ingress_nginx_host_network|bool }} hostNetwork: {{ ingress_nginx_host_network|bool }}
{%% if ingress_nginx_host_network %}
dnsPolicy: ClusterFirstWithHostNet
{% endif %}
hostPorts: hostPorts:
- min: 0 - min: 0
max: 65535 max: 65535

1
roles/kubernetes-apps/registry/templates/registry-proxy-psp.yml.j2

@ -35,7 +35,6 @@ spec:
- 'downwardAPI' - 'downwardAPI'
- 'persistentVolumeClaim' - 'persistentVolumeClaim'
hostNetwork: true hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
hostPorts: hostPorts:
- min: 5000 - min: 5000
max: 5000 max: 5000

Loading…
Cancel
Save