Skip to content

Commit 14b5ca7

Browse files
authored
Merge pull request #1895 from processing/chore/sandbox
Update kubernetes config for preview subdomain
2 parents b3e49da + 9d3ad26 commit 14b5ca7

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

kubernetes_app.yml

+20-19
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,18 @@ spec:
88
backend:
99
serviceName: web-editor-node
1010
servicePort: 8000
11-
## TODO uncomment from prod
12-
## adding this in just to make a new commit
13-
# ---
14-
# apiVersion: extensions/v1beta1
15-
# kind: Ingress
16-
# metadata:
17-
# name: preview-editor-ingress
18-
# annotations:
19-
# # need to make another global static ip
20-
# kubernetes.io/ingress.global-static-ip-name: "preview-editor-ip"
21-
# spec:
22-
# backend:
23-
# serviceName: web-editor-node
24-
# servicePort: 8002
11+
---
12+
apiVersion: extensions/v1beta1
13+
kind: Ingress
14+
metadata:
15+
name: preview-editor-ingress
16+
annotations:
17+
# need to make another global static ip
18+
kubernetes.io/ingress.global-static-ip-name: "preview-editor-ip"
19+
spec:
20+
backend:
21+
serviceName: web-editor-node
22+
servicePort: 8002
2523
---
2624
apiVersion: v1
2725
kind: Service
@@ -36,10 +34,11 @@ spec:
3634
type: NodePort
3735
ports:
3836
- port: 8000
37+
name: editor-port
3938
targetPort: 8000
40-
## TODO uncommment for prod
41-
# - port: 8002
42-
# targetPort: 8002
39+
- port: 8002
40+
name: preview-port
41+
targetPort: 8002
4342
selector:
4443
app: web-editor
4544
---
@@ -146,7 +145,7 @@ metadata:
146145
apiVersion: extensions/v1beta1
147146
kind: Ingress
148147
metadata:
149-
name: staging-editor-ingress-with-auth
148+
name: staging-editor-ingress
150149
namespace: staging
151150
annotations:
152151
kubernetes.io/ingress.global-static-ip-name: "web-editor-staging-ip"
@@ -158,7 +157,7 @@ spec:
158157
apiVersion: extensions/v1beta1
159158
kind: Ingress
160159
metadata:
161-
name: staging-editor-ingress-with-auth
160+
name: staging-preview-ingress
162161
namespace: staging
163162
annotations:
164163
kubernetes.io/ingress.global-static-ip-name: "preview-staging-ip"
@@ -181,8 +180,10 @@ spec:
181180
type: NodePort
182181
ports:
183182
- port: 8001
183+
name: editor-port
184184
targetPort: 8000
185185
- port: 8003
186+
name: preview-port
186187
targetPort: 8002
187188
selector:
188189
app: web-editor

0 commit comments

Comments
 (0)