Support underscore headers in ingress

Nginx's configuration has the underscore header value disabled.
When uploading image, glance api uses underscore header.
For example, x-image-meta-disk_format or x-image-meta_name.

Change-Id: I86e7f7d8d908904a4e45fa68f6bd613028d45801
This commit is contained in:
Seungkyu Ahn 2017-07-19 23:03:57 +09:00
parent a4a9b9c360
commit e7f82d7695
2 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,7 @@ spec:
args:
- /nginx-ingress-controller
- '--default-backend-service=$(POD_NAMESPACE)/ingress-error-pages'
- --configmap=$(POD_NAMESPACE)/nginx-custom-configuration
{{- if .Values.network.host_namespace }}
volumeMounts:
- name: ingress-etc

View File

@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-custom-configuration
data:
enable-underscores-in-headers: "true"