- 设置 secret
kubectl create secret tls ingress-secret --key /tmp/traefik/senyint.com.key --cert /tmp/traefik/senyint.com.crt -n senyint
- 配置 yaml
cat hipempifefrontend-ingress-ssl.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: hipempifefrontend
namespace: senyint
spec:
tls:
- hosts:
- prodhipempifefrontend.senyint.com
secretName: ingress-secret
rules:
- host: prodhipempifefrontend.senyint.com
http:
paths:
- backend:
serviceName: hipempifefrontend
servicePort: 80