Skip to content

Commit

Permalink
Names cannot contain _ (underscore)! So I changed it to -. (kubernete…
Browse files Browse the repository at this point in the history
…s#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)
  • Loading branch information
lahuman authored and rchshld committed May 17, 2023
1 parent 5e2b7d1 commit bd71bea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: custom_error_pages
name: custom-error-pages
data:
404: |
<!DOCTYPE html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bd71bea

Please sign in to comment.