Answers for "ingress rule kubernetes"

1

ingress kubernetes

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: minimal-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
      - path: /testpath
        pathType: Prefix
        backend:
          service:
            name: test
            port:
              number: 80
Posted by: Guest on February-23-2021
0

ingress rule kubernetes

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: echo-ingress
  labels:
    name: echo-ingress
  annotations:
    # REALLY IMPORTANT ANNOTATION
    kubernetes.io/ingress.class: "nginx"
    # cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
  tls:
  - hosts:
    - hostname.com
    secretName: app-tls
  rules:
  - host: hostname.com
    http:
      paths:
      - pathType: Prefix
        path: "/"
        backend:
          service:
            name: <app-service>
            port: 
              number: 80
Posted by: Guest on August-25-2021

Browse Popular Code Answers by Language