Skip to content

Commit

Permalink
Set up dedicated routing for berg and sf in a fresh namespace
Browse files Browse the repository at this point in the history
move the services
that handle request proxies for sf and berg to cloudfront onto a
dedicated namespace.
  • Loading branch information
masih committed Dec 25, 2024
1 parent 55f6b8c commit 71b4313
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ patchesStrategicMerge:

replicas:
- name: ingress-nginx-controller
count: 0
count: 1
38 changes: 38 additions & 0 deletions deploy/manifests/prod/us-east-2/tenant/ipni/berg-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: v1
kind: Service
metadata:
name: indexstar-berg
namespace: storetheindex
spec:
type: ExternalName
externalName: berg.cid.contact
ports:
- port: 443
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: indexstar-berg
namespace: storetheindex
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
tls:
- hosts:
- indexstar-berg.prod.cid.contact
secretName: indexstar-berg-ingress-tls
rules:
- host: indexstar-berg.prod.cid.contact
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: indexstar-berg
port:
number: 443

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ipni
resources:
- berg-ingress.yaml
- sf-ingress.yaml
- namespace.yaml
5 changes: 5 additions & 0 deletions deploy/manifests/prod/us-east-2/tenant/ipni/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: Namespace

metadata:
name: ipni
37 changes: 37 additions & 0 deletions deploy/manifests/prod/us-east-2/tenant/ipni/sf-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: v1
kind: Service
metadata:
name: indexstar-sf
namespace: storetheindex
spec:
type: ExternalName
externalName: sf.cid.contact
ports:
- port: 443
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: indexstar-sf
namespace: storetheindex
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
tls:
- hosts:
- indexstar-sf.prod.cid.contact
secretName: indexstar-sf-ingress-tls
rules:
- host: indexstar-sf.prod.cid.contact
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: indexstar-sf
port:
number: 443

0 comments on commit 71b4313

Please sign in to comment.