use ingress.class annotations
ci / build (push) Successful in 9s Details

This commit is contained in:
CJ_Clippy 2024-04-26 20:53:49 +00:00
parent 1dbf109afe
commit fe9eb8d439
2 changed files with 5 additions and 3 deletions

View File

@ -2,5 +2,3 @@ apiVersion: v1
kind: Namespace
metadata:
name: podinfo
labels:
toolkit.fluxcd.io/tenant: dev-team

View File

@ -26,7 +26,9 @@ spec:
enabled: true
className: "nginx"
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-staging"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
hosts:
- host: podinfo.sbtp.xyz
paths:
@ -40,4 +42,6 @@ spec:
tls:
- secretName: podinfo-tls
hosts:
- podinfo.sbtp.xyz
- podinfo.sbtp.xyz