8
8
backend :
9
9
serviceName : web-editor-node
10
10
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
25
23
---
26
24
apiVersion : v1
27
25
kind : Service
@@ -36,10 +34,11 @@ spec:
36
34
type : NodePort
37
35
ports :
38
36
- port : 8000
37
+ name : editor-port
39
38
targetPort : 8000
40
- # # TODO uncommment for prod
41
- # - port: 8002
42
- # targetPort: 8002
39
+ - port : 8002
40
+ name : preview-port
41
+ targetPort : 8002
43
42
selector :
44
43
app : web-editor
45
44
---
@@ -146,7 +145,7 @@ metadata:
146
145
apiVersion : extensions/v1beta1
147
146
kind : Ingress
148
147
metadata :
149
- name : staging-editor-ingress-with-auth
148
+ name : staging-editor-ingress
150
149
namespace : staging
151
150
annotations :
152
151
kubernetes.io/ingress.global-static-ip-name : " web-editor-staging-ip"
@@ -158,7 +157,7 @@ spec:
158
157
apiVersion : extensions/v1beta1
159
158
kind : Ingress
160
159
metadata :
161
- name : staging-editor -ingress-with-auth
160
+ name : staging-preview -ingress
162
161
namespace : staging
163
162
annotations :
164
163
kubernetes.io/ingress.global-static-ip-name : " preview-staging-ip"
@@ -181,8 +180,10 @@ spec:
181
180
type : NodePort
182
181
ports :
183
182
- port : 8001
183
+ name : editor-port
184
184
targetPort : 8000
185
185
- port : 8003
186
+ name : preview-port
186
187
targetPort : 8002
187
188
selector :
188
189
app : web-editor
0 commit comments