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:
Daniel Lim 2022-03-09 23:56:13 +09:00 committed by GitHub
parent 5a9fe30a5d
commit e1eff78160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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