📅  最后修改于: 2022-03-11 14:58:25.207000             🧑  作者: Mango
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