Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kr subdomain ingress #85

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}}