Skip to content

Commit

Permalink
Use new vhost path (#427)
Browse files Browse the repository at this point in the history
* Use new vhost path

* Update nginx version in jsonnet manifest

* Use fixed tag to avoid breaking changes

* Adapt kubeapps-dashboard image as well
  • Loading branch information
andresmgot authored Aug 3, 2018
1 parent ed8f2b2 commit 78b2d87
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion chart/kubeapps/templates/dashboard-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
{{ toYaml .Values.dashboard.readinessProbe | indent 10 }}
volumeMounts:
- name: vhost
mountPath: /bitnami/nginx/conf/vhosts
mountPath: /opt/bitnami/nginx/conf/vhosts
- name: config
mountPath: /app/config.json
subPath: config.json
Expand Down
2 changes: 1 addition & 1 deletion chart/kubeapps/templates/kubeapps-frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
{{ toYaml .Values.frontend.readinessProbe | indent 10 }}
volumeMounts:
- name: vhost
mountPath: /bitnami/nginx/conf/vhosts
mountPath: /opt/bitnami/nginx/conf/vhosts
ports:
- name: http
containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion chart/kubeapps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ frontend:
image:
registry: docker.io
repository: bitnami/nginx
tag: 1.14
tag: 1.14.0-r27
service:
port: 80
type: ClusterIP
Expand Down
2 changes: 1 addition & 1 deletion dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ RUN yarn install --frozen-lockfile
COPY . /app
RUN yarn run build

FROM bitnami/nginx
FROM bitnami/nginx:1.14.0-r27
COPY --from=build /app/build /app
2 changes: 1 addition & 1 deletion manifests/kubeapps-dashboard.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ local HashedConfigMap(name) = kube.ConfigMap(name) {
timeoutSeconds: 5,
},
volumeMounts_+: {
vhost: {mountPath: "/bitnami/nginx/conf/vhosts"},
vhost: {mountPath: "/opt/bitnami/nginx/conf/vhosts"},
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions manifests/nginx.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local HashedConfigMap(name) = kube.ConfigMap(name) {
spec+: {
containers_+: {
default: kube.Container("nginx") {
image: "bitnami/nginx:1.12",
image: "bitnami/nginx:1.14.0-r27",
ports_: {
http: {containerPort: 8080, protocol: "TCP"},
},
Expand All @@ -50,7 +50,7 @@ local HashedConfigMap(name) = kube.ConfigMap(name) {
timeoutSeconds: 5,
},
volumeMounts_+: {
vhost: {mountPath: "/bitnami/nginx/conf/vhosts"},
vhost: {mountPath: "/opt/bitnami/nginx/conf/vhosts"},
},
},
},
Expand Down

0 comments on commit 78b2d87

Please sign in to comment.