Skip to content

Commit

Permalink
Merge pull request #61 from casper-network/sre/cn-vn-subdomain
Browse files Browse the repository at this point in the history
ingress for cn, vn subdomains
  • Loading branch information
rob-casper authored Oct 19, 2023
2 parents 1c35f9b + 3e8fae4 commit 3e53568
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .cicd/manifests/ingress-cn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{.Values.namespace}}
name: {{.Values.appName}}-{{.Values.envName}}-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- cn.{{.Values.ingressDomainName}}
secretName: {{.Values.appName}}-{{.Values.envName}}-tls
rules:
- host: cn.{{.Values.ingressDomainName}}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{.Values.appName}}-{{.Values.envName}}-svc
port:
number: {{.Values.servicePort}}
ingressClassName: nginx
24 changes: 24 additions & 0 deletions .cicd/manifests/ingress-vn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{.Values.namespace}}
name: {{.Values.appName}}-{{.Values.envName}}-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- vn.{{.Values.ingressDomainName}}
secretName: {{.Values.appName}}-{{.Values.envName}}-tls
rules:
- host: vn.{{.Values.ingressDomainName}}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{.Values.appName}}-{{.Values.envName}}-svc
port:
number: {{.Values.servicePort}}
ingressClassName: nginx

0 comments on commit 3e53568

Please sign in to comment.