Scenarios/AKS-Secure-Baseline-PrivateCluster/Old-Apps/RatingsApp/5-https-ratings-web-ingress.yaml (27 lines of code) (raw):
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: ratings-web-https
namespace: ratingsapp
annotations:
kubernetes.io/ingress.class: azure/application-gateway
cert-manager.io/issuer: letsencrypt-staging
cert-manager.io/acme-challenge-type: http01
# kubernetes.io/ingress.allow-http: 'false'
appgw.ingress.kubernetes.io/ssl-redirect: "true"
acme.cert-manager.io/http01-edit-in-place: "true" #Adding this to get the staging cert to work
spec:
tls:
- hosts:
- <fqdn>
secretName: aks-tls-akv
rules:
- host: <fqdn>
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: ratings-web
port:
number: 80