Added DNS annotations to osc stack

This commit is contained in:
Richard Robert Reitz 2024-12-08 23:43:21 +01:00
parent 92b56c5350
commit 28740aea65
9 changed files with 33 additions and 11 deletions

View file

@ -19,7 +19,7 @@ spec:
name: web name: web
path: /argo-workflows(/|$)(.*) path: /argo-workflows(/|$)(.*)
pathType: ImplementationSpecific pathType: ImplementationSpecific
- host: cnoe.localtest.me - host: {{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:

View file

@ -6,12 +6,17 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2 nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/use-regex: "true"
{{{ if eq .Env.CLUSTER_TYPE "osc" }}}
dns.gardener.cloud/class: garden
dns.gardener.cloud/dnsnames: {{{ .Env.DOMAIN }}}
dns.gardener.cloud/ttl: "600"
{{{ end }}}
name: argocd-server name: argocd-server
namespace: argocd namespace: argocd
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: cnoe.localtest.me - host: {{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:
@ -23,5 +28,5 @@ spec:
pathType: ImplementationSpecific pathType: ImplementationSpecific
tls: tls:
- hosts: - hosts:
- cnoe.localtest.me - {{{ .Env.DOMAIN }}}
secretName: argocd-net-tls secretName: argocd-net-tls

View file

@ -16,7 +16,7 @@ spec:
name: http name: http
path: / path: /
pathType: Prefix pathType: Prefix
- host: cnoe.localtest.me - host: {{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:

View file

@ -6,7 +6,7 @@ metadata:
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: cnoe.localtest.me - host: {{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:

View file

@ -4,12 +4,17 @@ metadata:
annotations: annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size: 512m nginx.ingress.kubernetes.io/proxy-body-size: 512m
{{{ if eq .Env.CLUSTER_TYPE "osc" }}}
dns.gardener.cloud/class: garden
dns.gardener.cloud/dnsnames: gitea.{{{ .Env.DOMAIN }}}
dns.gardener.cloud/ttl: "600"
{{{ end }}}
name: forgejo name: forgejo
namespace: gitea namespace: gitea
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: gitea.cnoe.localtest.me - host: gitea.{{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:
@ -21,5 +26,5 @@ spec:
pathType: Prefix pathType: Prefix
tls: tls:
- hosts: - hosts:
- gitea.cnoe.localtest.me - gitea.{{{ .Env.DOMAIN }}}
secretName: forgejo-net-tls secretName: forgejo-net-tls

View file

@ -16,7 +16,7 @@ spec:
name: http name: http
path: /keycloak path: /keycloak
pathType: ImplementationSpecific pathType: ImplementationSpecific
- host: cnoe.localtest.me - host: {{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:

View file

@ -6,7 +6,7 @@ metadata:
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: cnoe.localtest.me - host: {{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:

View file

@ -3,10 +3,16 @@ kind: Ingress
metadata: metadata:
name: minio-console name: minio-console
namespace: minio-backup namespace: minio-backup
{{{ if eq .Env.CLUSTER_TYPE "osc" }}}
annotations:
dns.gardener.cloud/class: garden
dns.gardener.cloud/dnsnames: minio-backup.{{{ .Env.DOMAIN }}}
dns.gardener.cloud/ttl: "600"
{{{ end }}}
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: minio-backup.cnoe.localtest.me - host: minio-backup.{{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend:

View file

@ -3,10 +3,16 @@ kind: Ingress
metadata: metadata:
name: openbao name: openbao
namespace: openbao namespace: openbao
{{{ if eq .Env.CLUSTER_TYPE "osc" }}}
annotations:
dns.gardener.cloud/class: garden
dns.gardener.cloud/dnsnames: openbao.{{{ .Env.DOMAIN }}}
dns.gardener.cloud/ttl: "600"
{{{ end }}}
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules:
- host: openbao.cnoe.localtest.me - host: openbao.{{{ .Env.DOMAIN }}}
http: http:
paths: paths:
- backend: - backend: