mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/nginx-ingress] Add podSecurityContext to controller (#13585)
Allows inserting securityContext configuration into the controller pod definition for changing things like `net.core.somaxconn` Signed-off-by: Shivneil Prasad <shivneil.prasad@leafly.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
a0dbd4d3f7
commit
0e052d4dc0
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: nginx-ingress
|
||||
version: 1.6.9
|
||||
version: 1.6.10
|
||||
appVersion: 0.24.1
|
||||
home: https://github.com/kubernetes/ingress-nginx
|
||||
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
|
||||
|
||||
@@ -77,6 +77,7 @@ Parameter | Description | Default
|
||||
`controller.nodeSelector` | node labels for pod assignment | `{}`
|
||||
`controller.podAnnotations` | annotations to be added to pods | `{}`
|
||||
`controller.podLabels` | labels to add to the pod container metadata | `{}`
|
||||
`controller.podSecurityContext` | Security context policies to add to the controller pod | `{}`
|
||||
`controller.replicaCount` | desired number of controller pods | `1`
|
||||
`controller.minAvailable` | minimum number of available controller pods for PodDisruptionBudget | `1`
|
||||
`controller.resources` | controller pod resource requests & limits | `{}`
|
||||
|
||||
@@ -36,6 +36,10 @@ spec:
|
||||
{{- if .Values.controller.priorityClassName }}
|
||||
priorityClassName: "{{ .Values.controller.priorityClassName }}"
|
||||
{{- end }}
|
||||
{{- if .Values.controller.podSecurityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.controller.podSecurityContext | indent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ template "nginx-ingress.name" . }}-{{ .Values.controller.name }}
|
||||
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
|
||||
|
||||
@@ -39,6 +39,10 @@ spec:
|
||||
{{- if .Values.controller.priorityClassName }}
|
||||
priorityClassName: "{{ .Values.controller.priorityClassName }}"
|
||||
{{- end }}
|
||||
{{- if .Values.controller.podSecurityContext }}
|
||||
securityContext:
|
||||
{{ toYaml .Values.controller.podSecurityContext | indent 8 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ template "nginx-ingress.name" . }}-{{ .Values.controller.name }}
|
||||
image: "{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
|
||||
|
||||
@@ -56,6 +56,12 @@ controller:
|
||||
podLabels: {}
|
||||
# key: value
|
||||
|
||||
## Security Context policies for controller pods
|
||||
## See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for
|
||||
## notes on enabling and using sysctls
|
||||
##
|
||||
podSecurityContext: {}
|
||||
|
||||
## Allows customization of the external service
|
||||
## the ingress will be bound to via DNS
|
||||
publishService:
|
||||
|
||||
Reference in New Issue
Block a user