From 334d4769caa6912d60805e34b04c220ba76c8559 Mon Sep 17 00:00:00 2001 From: Shahbaz Nazir Date: Mon, 26 Feb 2018 18:39:02 +0100 Subject: [PATCH] nginx instance fixes Signed-off-by: Shahbaz Nazir --- k8s/nginx-https/nginx-https-dep.yaml | 5 +++++ k8s/scripts/functions | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/k8s/nginx-https/nginx-https-dep.yaml b/k8s/nginx-https/nginx-https-dep.yaml index 4862b68d..93dda742 100644 --- a/k8s/nginx-https/nginx-https-dep.yaml +++ b/k8s/nginx-https/nginx-https-dep.yaml @@ -90,6 +90,11 @@ spec: configMapKeyRef: name: vars key: authorization-mode + - name: SECRET_ACCESS_TOKEN + valueFrom: + secretKeyRef: + name: nginx-secret-header + key: secret-token ports: # return a pretty error message on port 80, since we are expecting # HTTPS traffic. diff --git a/k8s/scripts/functions b/k8s/scripts/functions index 1a955752..9ab373a1 100755 --- a/k8s/scripts/functions +++ b/k8s/scripts/functions @@ -261,6 +261,10 @@ data: # bdb-instance-name is the name of the BigchainDB instance in this cluster. bdb-instance-name: "${bdb_instance_name}" + # openresty-instance-name is the name of the OpenResty instance in this + # cluster. + openresty-instance-name: "openresty-instance-0" + # ngx-mdb-instance-name is the FQDN of the MongoDB instance in this # Kubernetes cluster. ngx-mdb-instance-name: "${mdb_instance_name}.default.svc.cluster.local" @@ -269,6 +273,10 @@ data: # Kubernetes cluster. ngx-bdb-instance-name: "${bdb_instance_name}.default.svc.cluster.local" + # ngx-openresty-instance-name is the FQDN of the OpenResty instance in this + # Kubernetes cluster. + ngx-openresty-instance-name: "openresty-instance-0.default.svc.cluster.local" + # mongodb-backend-port is the port on which MongoDB is actually # available/listening for requests. mongodb-backend-port: "27017" @@ -386,7 +394,7 @@ data: # public key of the tendemrint node in this cluster. tm-pub-key-access: "9986" - --- +--- apiVersion: v1 kind: ConfigMap metadata: