apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: keycloak-ingress
namespace: hbr-keycloak
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
tls:
- secretName: selfsigned-tls
rules:
- host: localhost
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: keycloak
port:
name: http
Apply the modified YAML with kubectl apply -f MODIFIED_YAML -n hbr-keycloak