Skip to content

Commit

Permalink
Merge pull request #68 from casper-network/sre/cn-vn-subdomain
Browse files Browse the repository at this point in the history
Sre/cn vn subdomain
  • Loading branch information
rob-casper authored Oct 19, 2023
2 parents d8e6a68 + d7f700a commit 31e6dc5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .cicd/manifests/ingress-cn.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{{- if .Values.ingressDomainName}}

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{.Values.namespace}}
name: cn.{{.Values.appName}}-{{.Values.envName}}-ingress
name: cn-{{.Values.appName}}-{{.Values.envName}}-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- cn.{{.Values.ingressDomainName}}
secretName: cn.{{.Values.appName}}-{{.Values.envName}}-tls
secretName: cn-{{.Values.appName}}-{{.Values.envName}}-tls
rules:
- host: cn.{{.Values.ingressDomainName}}
http:
Expand All @@ -21,4 +23,6 @@ spec:
name: {{.Values.appName}}-{{.Values.envName}}-svc
port:
number: {{.Values.servicePort}}
ingressClassName: nginx
ingressClassName: nginx

{{- end}}
10 changes: 7 additions & 3 deletions .cicd/manifests/ingress-vn.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{{- if .Values.ingressDomainName}}

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{.Values.namespace}}
name: vn.{{.Values.appName}}-{{.Values.envName}}-ingress
name: vn-{{.Values.appName}}-{{.Values.envName}}-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- vn.{{.Values.ingressDomainName}}
secretName: vn.{{.Values.appName}}-{{.Values.envName}}-tls
secretName: vn-{{.Values.appName}}-{{.Values.envName}}-tls
rules:
- host: vn.{{.Values.ingressDomainName}}
http:
Expand All @@ -21,4 +23,6 @@ spec:
name: {{.Values.appName}}-{{.Values.envName}}-svc
port:
number: {{.Values.servicePort}}
ingressClassName: nginx
ingressClassName: nginx

{{- end}}

0 comments on commit 31e6dc5

Please sign in to comment.