Deploy GitHub Pages
This commit is contained in:
parent
91dd6523f3
commit
fe081f1416
65 changed files with 220 additions and 137 deletions
|
|
@ -0,0 +1,19 @@
|
|||
# Custom error page configMap
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: custom_error_pages
|
||||
data:
|
||||
404: |
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><title>PAGE NOT FOUND</title></head>
|
||||
<body>PAGE NOT FOUND</body>
|
||||
</html>
|
||||
503: |
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><title>CUSTOM SERVICE UNAVAILABLE</title></head>
|
||||
<body>CUSTOM SERVICE UNAVAILABLE</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
controller:
|
||||
custom-http-errors: "404,503"
|
||||
defaultBackend:
|
||||
enabled: true
|
||||
image:
|
||||
registry: k8s.gcr.io
|
||||
image: ingress-nginx/nginx-errors
|
||||
tag: "0.48.1"
|
||||
extraVolumes:
|
||||
- name: custom_error_pages
|
||||
configMap:
|
||||
name: custom_error_pages
|
||||
items:
|
||||
- key: "404"
|
||||
path: "404.html"
|
||||
- key: "503"
|
||||
path: "503.html"
|
||||
extraVolumeMounts:
|
||||
- name: custom_error_pages
|
||||
mountPath: /www
|
||||
|
|
@ -44,3 +44,19 @@ spec:
|
|||
# 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"
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue