📜  入口规则 kubernetes - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:25.207000             🧑  作者: Mango

代码示例1
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: 
            port: 
              number: 80