Skip to content

Commit

Permalink
feat: add nginx proxy
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
zzzhangqi committed Sep 19, 2024
1 parent 76faea3 commit 6a81853
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/appstore-console-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ spec:
number: 7070
path: /
pathType: ImplementationSpecific
- backend:
service:
name: appstore-console
port:
number: 80
path: /proxy
pathType: Prefix
tls:
- hosts:
- {{ .Values.Ingress.console.host }}
Expand Down
4 changes: 4 additions & 0 deletions templates/appstore-console-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ spec:
port: 7070
protocol: TCP
targetPort: 7070
- name: proxy
port: 80
protocol: TCP
targetPort: 80
selector:
name: appstore-console
type: ClusterIP
Expand Down
3 changes: 3 additions & 0 deletions templates/appstore-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ spec:
- mountPath: /app/lock
name: app
subPath: lock
- name: proxy
image: registry.cn-hangzhou.aliyuncs.com/goodrain/console-proxy-yx:latest
imagePullPolicy: IfNotPresent
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
Expand Down

0 comments on commit 6a81853

Please sign in to comment.