Skip to content

Commit

Permalink
Merge pull request #85 from casper-network/sre/kr-subdomain
Browse files Browse the repository at this point in the history
kr subdomain ingress
  • Loading branch information
rob-casper authored Jan 12, 2024
2 parents cbf406b + 46f3f87 commit 8f75918
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .cicd/manifests/ingress-kr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# note: We explicitly create each language subdomain, rather than a wildcard domain
# as wildcards are not supportd by http01 cert-manager ClusterIssuer

{{- if .Values.ingressDomainName}}

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{.Values.namespace}}
name: kr-{{.Values.appName}}-{{.Values.envName}}-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- kr.{{.Values.ingressDomainName}}
secretName: kr-{{.Values.appName}}-{{.Values.envName}}-tls
rules:
- host: kr.{{.Values.ingressDomainName}}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{.Values.appName}}-{{.Values.envName}}-svc
port:
number: {{.Values.servicePort}}
ingressClassName: nginx

{{- end}}

0 comments on commit 8f75918

Please sign in to comment.