Names cannot contain _ (underscore)! So I changed it to -. (#8300)
* The name can't use _(underscore)! So fix it! The name can't use _(underscore)! So fix it! * Fix configMap name can't use _(underscore) Fix configMap name can't use _(underscore)
This commit is contained in:
parent
5a9fe30a5d
commit
e1eff78160
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: custom_error_pages
|
name: custom-error-pages
|
||||||
data:
|
data:
|
||||||
404: |
|
404: |
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
|
@ -7,14 +7,14 @@ defaultBackend:
|
||||||
image: ingress-nginx/nginx-errors
|
image: ingress-nginx/nginx-errors
|
||||||
tag: "0.48.1"
|
tag: "0.48.1"
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
- name: custom_error_pages
|
- name: custom-error-pages
|
||||||
configMap:
|
configMap:
|
||||||
name: custom_error_pages
|
name: custom-error-pages
|
||||||
items:
|
items:
|
||||||
- key: "404"
|
- key: "404"
|
||||||
path: "404.html"
|
path: "404.html"
|
||||||
- key: "503"
|
- key: "503"
|
||||||
path: "503.html"
|
path: "503.html"
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: custom_error_pages
|
- name: custom-error-pages
|
||||||
mountPath: /www
|
mountPath: /www
|
||||||
|
|
Loading…
Reference in a new issue