Files
shell-scripts/0-部署应用/Oracle-Cloud/cert-manager/7.3-ingress-auto-generate-ssl.yaml
2024-11-28 16:42:36 +08:00

24 lines
701 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
# add an annotation indicating the issuer to use.
cert-manager.io/cluster-issuer: cm-cloudflare-7421
name: myIngress
namespace: myIngress
spec:
rules:
- host: example.com
http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: myservice
port:
number: 80
tls: # < placing a host in the TLS config will determine what ends up in the cert's subjectAltNames
- hosts:
- example.com
secretName: myingress-cert # < cert-manager will store the created certificate in this secret.