-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up dedicated routing for berg and sf in a fresh namespace
move the services that handle request proxies for sf and berg to cloudfront onto a dedicated namespace.
- Loading branch information
Showing
5 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ patchesStrategicMerge: | |
|
||
replicas: | ||
- name: ingress-nginx-controller | ||
count: 0 | ||
count: 1 |
38 changes: 38 additions & 0 deletions
38
deploy/manifests/prod/us-east-2/tenant/ipni/berg-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
7 changes: 7 additions & 0 deletions
7
deploy/manifests/prod/us-east-2/tenant/ipni/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
37
deploy/manifests/prod/us-east-2/tenant/ipni/sf-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |