
* Fix old tag of custom error pages used in example * Move nginx-errors to k8s registry Since the setup for the custom-error-messages was really different from the other images that are build using cloudbuild, I changed it to "fit in better" * Use Go version 1.17 for custom-error-pages Since Go >= 1.16 required the use of modules, I also initialized the module using the name k8s.io/ingress-nginx/custom-error-pages
46 lines
1.1 KiB
YAML
46 lines
1.1 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: gcr.io/k8s-staging-ingress-nginx/nginx-errors:0.48.1
|
|
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"
|