From e7f82d7695888dbc168df0cee9bc19d33801f6fc Mon Sep 17 00:00:00 2001 From: Seungkyu Ahn Date: Wed, 19 Jul 2017 23:03:57 +0900 Subject: [PATCH] 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 --- ingress/templates/deployment-ingress.yaml | 1 + ingress/templates/nginx-custom-configuration.yaml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 ingress/templates/nginx-custom-configuration.yaml diff --git a/ingress/templates/deployment-ingress.yaml b/ingress/templates/deployment-ingress.yaml index 86150b1361..43fc0d2725 100644 --- a/ingress/templates/deployment-ingress.yaml +++ b/ingress/templates/deployment-ingress.yaml @@ -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 diff --git a/ingress/templates/nginx-custom-configuration.yaml b/ingress/templates/nginx-custom-configuration.yaml new file mode 100644 index 0000000000..c687a43834 --- /dev/null +++ b/ingress/templates/nginx-custom-configuration.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: nginx-custom-configuration +data: + enable-underscores-in-headers: "true" +