feat: Add custom 404 error page with image and UTF-8 encoding
This commit is contained in:
42
custom-404-server.yaml
Normal file
42
custom-404-server.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: custom-404-server
|
||||
namespace: streaming
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: custom-404-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: custom-404-server
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: custom-404-volume
|
||||
mountPath: /usr/share/nginx/html/index.html
|
||||
subPath: index.html
|
||||
volumes:
|
||||
- name: custom-404-volume
|
||||
configMap:
|
||||
name: custom-404-page
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: custom-404-service
|
||||
namespace: streaming
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: custom-404-server
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user