Skip to content

Update kubernetes config for preview subdomain #1895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions kubernetes_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@ spec:
backend:
serviceName: web-editor-node
servicePort: 8000
## TODO uncomment from prod
## adding this in just to make a new commit
# ---
# apiVersion: extensions/v1beta1
# kind: Ingress
# metadata:
# name: preview-editor-ingress
# annotations:
# # need to make another global static ip
# kubernetes.io/ingress.global-static-ip-name: "preview-editor-ip"
# spec:
# backend:
# serviceName: web-editor-node
# servicePort: 8002
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: preview-editor-ingress
annotations:
# need to make another global static ip
kubernetes.io/ingress.global-static-ip-name: "preview-editor-ip"
spec:
backend:
serviceName: web-editor-node
servicePort: 8002
---
apiVersion: v1
kind: Service
Expand All @@ -36,10 +34,11 @@ spec:
type: NodePort
ports:
- port: 8000
name: editor-port
targetPort: 8000
## TODO uncommment for prod
# - port: 8002
# targetPort: 8002
- port: 8002
name: preview-port
targetPort: 8002
selector:
app: web-editor
---
Expand Down Expand Up @@ -146,7 +145,7 @@ metadata:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: staging-editor-ingress-with-auth
name: staging-editor-ingress
namespace: staging
annotations:
kubernetes.io/ingress.global-static-ip-name: "web-editor-staging-ip"
Expand All @@ -158,7 +157,7 @@ spec:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: staging-editor-ingress-with-auth
name: staging-preview-ingress
namespace: staging
annotations:
kubernetes.io/ingress.global-static-ip-name: "preview-staging-ip"
Expand All @@ -181,8 +180,10 @@ spec:
type: NodePort
ports:
- port: 8001
name: editor-port
targetPort: 8000
- port: 8003
name: preview-port
targetPort: 8002
selector:
app: web-editor
Expand Down