Skip to content

Instantly share code, notes, and snippets.

@brakmic
Last active April 27, 2023 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brakmic/34c6a9bd2cf5ddac3ff2bef2cf008c4c to your computer and use it in GitHub Desktop.
Save brakmic/34c6a9bd2cf5ddac3ff2bef2cf008c4c to your computer and use it in GitHub Desktop.
Ingress YAML for self-signed certificate
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment