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
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: custom_error_pages
|
||||
name: custom-error-pages
|
||||
data:
|
||||
404: |
|
||||
<!DOCTYPE html>
|
||||
|
|
|
@ -7,14 +7,14 @@ defaultBackend:
|
|||
image: ingress-nginx/nginx-errors
|
||||
tag: "0.48.1"
|
||||
extraVolumes:
|
||||
- name: custom_error_pages
|
||||
- name: custom-error-pages
|
||||
configMap:
|
||||
name: custom_error_pages
|
||||
name: custom-error-pages
|
||||
items:
|
||||
- key: "404"
|
||||
path: "404.html"
|
||||
- key: "503"
|
||||
path: "503.html"
|
||||
extraVolumeMounts:
|
||||
- name: custom_error_pages
|
||||
- name: custom-error-pages
|
||||
mountPath: /www
|
||||
|
|
Loading…
Reference in a new issue