Skip to content

Commit

Permalink
Update Techshow demo
Browse files Browse the repository at this point in the history
  • Loading branch information
minhhoangkms committed Oct 20, 2020
1 parent cd06a6e commit 4f85c0e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
22 changes: 16 additions & 6 deletions manifests/saleor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,20 @@ spec:
spec:
restartPolicy: Always
containers:
- image: hnminh/saleor-dashboard:2.10
- image: hnminh/saleor-dashboard:kms
name: saleor-dashboard
imagePullPolicy: Always
# Image with debug mode need to config webpack-dev-server port
# command: ['/bin/sh']
# args: ['-c', 'npm start -- --port 80 --host 0.0.0.0 --disable-host-check']
ports:
- containerPort: 9000
- containerPort: 80
name: dashboard
env:
- name: DANGEROUSLY_DISABLE_HOST_CHECK
value: 'true'
- name: API_URI
value: 'http://{{.Release.Name}}-saleor-api:8000/graphql/'
value: 'http://{{ .Values.apiIngress }}/graphql/'
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -129,12 +134,17 @@ spec:
spec:
restartPolicy: Always
containers:
- image: hnminh/saleor-storefront:2.10
- image: hnminh/saleor-storefront:kms
name: saleor-storefront
imagePullPolicy: Always
# Image with debug mode need to config webpack-dev-server port
# command: ['/bin/sh']
# args: ['-c', 'npm start -- --port 80 --host 0.0.0.0 --disable-host-check']
ports:
- containerPort: 3000
- containerPort: 80
name: storefront
env:
- name: DANGEROUSLY_DISABLE_HOST_CHECK
value: 'true'
- name: API_URI
value: 'http://{{.Release.Name}}-saleor-api:8000/graphql/'
value: 'http://{{ .Values.apiIngress }}/graphql/'
12 changes: 6 additions & 6 deletions manifests/saleor/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ metadata:
spec:
ports:
- name: 'dashboard'
port: 9000
targetPort: 9000
port: 80
targetPort: 80
selector:
app: '{{.Release.Name}}-saleor'
service: '{{.Release.Name}}-saleor-dashboard'
Expand All @@ -43,8 +43,8 @@ metadata:
spec:
ports:
- name: 'storefront'
port: 3000
targetPort: 3000
port: 80
targetPort: 80
selector:
app: '{{.Release.Name}}-saleor'
service: '{{.Release.Name}}-saleor-storefront'
Expand All @@ -71,12 +71,12 @@ spec:
paths:
- backend:
serviceName: '{{.Release.Name}}-saleor-dashboard'
servicePort: 9000
servicePort: 80
pathType: ImplementationSpecific
- host: '{{ .Values.storefrontIngress }}'
http:
paths:
- backend:
serviceName: '{{.Release.Name}}-saleor-storefront'
servicePort: 3000
servicePort: 80
pathType: ImplementationSpecific

0 comments on commit 4f85c0e

Please sign in to comment.