-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Update default backend to add TLS >=1.2 support #9166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c4d559a
d3f8f06
8e9c000
10e3e6f
80b5022
d9ed1c4
ad86933
794bc39
76d38c8
cf4dfe3
cad6312
57abe3d
343fee0
a790354
6f5782f
13af0cc
65847da
5dce391
bec234e
67d5283
687e5ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -435,20 +435,37 @@ Kubernetes: `>=1.20.0-0` | |
| defaultBackend.autoscaling.targetCPUUtilizationPercentage | int | `50` | | | ||
| defaultBackend.autoscaling.targetMemoryUtilizationPercentage | int | `50` | | | ||
| defaultBackend.containerSecurityContext | object | `{}` | Security Context policies for controller main container. See https://kubernetes.io/docs/tasks/administer-cluster/sysctl-cluster/ for notes on enabling and using sysctls # | | ||
| defaultBackend.defaultBackendMessage | string | `"Default Backend - 404"` | | | ||
| defaultBackend.enabled | bool | `false` | | | ||
| defaultBackend.existingPsp | string | `""` | Use an existing PSP instead of creating one | | ||
| defaultBackend.extraArgs | object | `{}` | | | ||
| defaultBackend.extraEnvs | list | `[]` | Additional environment variables to set for defaultBackend pods | | ||
| defaultBackend.extraVolumeMounts | list | `[]` | | | ||
| defaultBackend.extraVolumes | list | `[]` | | | ||
| defaultBackend.extraVolumeMounts[0].mountPath | string | `"/usr/share/nginx/html/index.html"` | | | ||
| defaultBackend.extraVolumeMounts[0].name | string | `"config"` | | | ||
| defaultBackend.extraVolumeMounts[0].readOnly | bool | `true` | | | ||
| defaultBackend.extraVolumeMounts[0].subPath | string | `"index.html"` | | | ||
| defaultBackend.extraVolumeMounts[1].mountPath | string | `"/var/cache/nginx/"` | | | ||
| defaultBackend.extraVolumeMounts[1].name | string | `"nginx-empty"` | | | ||
| defaultBackend.extraVolumeMounts[2].mountPath | string | `"/var/run/"` | | | ||
| defaultBackend.extraVolumeMounts[2].name | string | `"nginx-run"` | | | ||
| defaultBackend.extraVolumeMounts[3].mountPath | string | `"/etc/nginx/conf.d/default.conf"` | | | ||
| defaultBackend.extraVolumeMounts[3].name | string | `"nginx-conf"` | | | ||
| defaultBackend.extraVolumeMounts[3].subPath | string | `"default.conf"` | | | ||
| defaultBackend.extraVolumes[0].configMap.name | string | `"default-backend-message-configmap"` | | | ||
| defaultBackend.extraVolumes[0].name | string | `"config"` | | | ||
| defaultBackend.extraVolumes[1].emptyDir | object | `{}` | | | ||
| defaultBackend.extraVolumes[1].name | string | `"nginx-empty"` | | | ||
| defaultBackend.extraVolumes[2].emptyDir | object | `{}` | | | ||
| defaultBackend.extraVolumes[2].name | string | `"nginx-run"` | | | ||
| defaultBackend.extraVolumes[3].configMap.name | string | `"default-backend-nginx-conf-configmap"` | | | ||
| defaultBackend.extraVolumes[3].name | string | `"nginx-conf"` | | | ||
| defaultBackend.image.allowPrivilegeEscalation | bool | `false` | | | ||
| defaultBackend.image.image | string | `"defaultbackend-amd64"` | | | ||
| defaultBackend.image.pullPolicy | string | `"IfNotPresent"` | | | ||
| defaultBackend.image.readOnlyRootFilesystem | bool | `true` | | | ||
| defaultBackend.image.registry | string | `"registry.k8s.io"` | | | ||
| defaultBackend.image.repository | string | `"nginx"` | | | ||
| defaultBackend.image.runAsNonRoot | bool | `true` | | | ||
| defaultBackend.image.runAsUser | int | `65534` | | | ||
| defaultBackend.image.tag | string | `"1.5"` | | | ||
| defaultBackend.image.tag | string | `"1.19.10-alpine"` | | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we use the last nginx version? |
||
| defaultBackend.labels | object | `{}` | Labels to be added to the default backend resources | | ||
| defaultBackend.livenessProbe.failureThreshold | int | `3` | | | ||
| defaultBackend.livenessProbe.initialDelaySeconds | int | `30` | | | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
data: | ||
default.conf: | | ||
server { | ||
listen {{ .Values.defaultBackend.port }}; | ||
listen [::]:{{ .Values.defaultBackend.port }}; | ||
server_name localhost; | ||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
} | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} | ||
kind: ConfigMap | ||
metadata: | ||
name: default-backend-nginx-conf-configmap |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
data: | ||
index.html: | | ||
<h1>{{ .Values.defaultBackend.defaultBackendMessage }}</h1> | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
{{- include "ingress-nginx.labels" . | nindent 4 }} | ||
name: default-backend-message-configmap | ||
namespace: {{ .Release.Namespace }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -772,19 +772,21 @@ defaultBackend: | |
|
||
name: defaultbackend | ||
image: | ||
registry: registry.k8s.io | ||
image: defaultbackend-amd64 | ||
repository: nginx | ||
tag: 1.19.10-alpine | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, let's use latest nginx version (not :latest, but v1.22 etc) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lets go ahead and use |
||
## for backwards compatibility consider setting the full image url via the repository value below | ||
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail | ||
## repository: | ||
tag: "1.5" | ||
pullPolicy: IfNotPresent | ||
# nobody user -> uid 65534 | ||
runAsUser: 65534 | ||
runAsNonRoot: true | ||
readOnlyRootFilesystem: true | ||
allowPrivilegeEscalation: false | ||
|
||
# Default Backend Message to show | ||
defaultBackendMessage: "Default Backend - 404" | ||
|
||
# -- Use an existing PSP instead of creating one | ||
existingPsp: "" | ||
|
||
|
@@ -797,6 +799,7 @@ defaultBackend: | |
# -- Additional environment variables to set for defaultBackend pods | ||
extraEnvs: [] | ||
|
||
# Port to Open in the Default Backend Container > 1000 (NON ROOT PORT) | ||
port: 8080 | ||
|
||
## Readiness and liveness probes for default backend | ||
|
@@ -814,7 +817,6 @@ defaultBackend: | |
periodSeconds: 5 | ||
successThreshold: 1 | ||
timeoutSeconds: 5 | ||
|
||
# -- Node tolerations for server scheduling to nodes with taints | ||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | ||
## | ||
|
@@ -864,12 +866,35 @@ defaultBackend: | |
# cpu: 10m | ||
# memory: 20Mi | ||
|
||
extraVolumeMounts: [] | ||
extraVolumeMounts: | ||
- name: config | ||
mountPath: "/usr/share/nginx/html/index.html" | ||
subPath: index.html | ||
readOnly: true | ||
- mountPath: /var/cache/nginx/ | ||
name: nginx-empty | ||
- mountPath: /var/run/ | ||
name: nginx-run | ||
- name: nginx-conf | ||
mountPath: "/etc/nginx/conf.d/default.conf" | ||
subPath: default.conf | ||
|
||
## Additional volumeMounts to the default backend container. | ||
# - name: copy-portal-skins | ||
# mountPath: /var/lib/lemonldap-ng/portal/skins | ||
|
||
extraVolumes: [] | ||
extraVolumes: | ||
- name: config | ||
configMap: | ||
name: default-backend-message-configmap | ||
- name: nginx-empty | ||
emptyDir: {} | ||
- name: nginx-run | ||
emptyDir: {} | ||
- name: nginx-conf | ||
configMap: | ||
name: default-backend-nginx-conf-configmap | ||
|
||
## Additional volumes to the default backend pod. | ||
# - name: copy-portal-skins | ||
# emptyDir: {} | ||
|
Uh oh!
There was an error while loading. Please reload this page.