
* Tests: Bump CFSSL. * Docs: Bump Custom Error Pages. * Tests: Bump FastCGI HelloServer. * Tests: Bump HTTPBun. * Docs: Bump OpenTelemetry.
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: nginx-errors
|
|
labels:
|
|
app.kubernetes.io/name: nginx-errors
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/name: nginx-errors
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
name: http
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nginx-errors
|
|
labels:
|
|
app.kubernetes.io/name: nginx-errors
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: nginx-errors
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: nginx-errors
|
|
app.kubernetes.io/part-of: ingress-nginx
|
|
spec:
|
|
containers:
|
|
- name: nginx-error-server
|
|
image: registry.k8s.io/ingress-nginx/custom-error-pages:v1.0.1@sha256:d8ab7de384cf41bdaa696354e19f1d0efbb0c9ac69f8682ffc0cc008a252eb76
|
|
ports:
|
|
- containerPort: 8080
|
|
# Setting the environment variable DEBUG we can see the headers sent
|
|
# by the ingress controller to the backend in the client response.
|
|
# env:
|
|
# - name: DEBUG
|
|
# value: "true"
|
|
|
|
# Mounting custom error page from configMap
|
|
# volumeMounts:
|
|
# - name: custom_error_pages
|
|
# mountPath: /www
|
|
|
|
# Mounting custom error page from configMap
|
|
# volumes:
|
|
# - name: custom_error_pages
|
|
# configMap:
|
|
# name: custom_error_pages
|
|
# items:
|
|
# - key: "404"
|
|
# path: "404.html"
|
|
# - key: "503"
|
|
# path: "503.html"
|