我正在尝试使用轮廓入口负载平衡器部署具有静态ip的https站点。本质上,我正在关注
https://projectcontour.io/guides/cert-manager/
我有一个名为web-ip和ip-address的全局静态ip:
35.35.35.35
现在,我正在部署以下入口文件:
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: httpbin
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
ingress.kubernetes.io/force-ssl-redirect: "true"
kubernetes.io/ingress.class: contour
kubernetes.io/tls-acme: "true"
# ADDED FOR STATIC IP
kubernetes.io/ingress.global-static-ip-name: "web-ip"
spec:
tls:
- secretName: httpbin
hosts:
- beta.mydomain.com
rules:
- host: beta.mydomain.com
http:
paths:
- backend:
serviceName: httpbin
servicePort: 8080
然后我要添加轮廓入口
kubectl apply -f https://projectcontour.io/quickstart/contour.yaml
不管我是否使用
kubernetes.io/ingress.global-static-ip-name: "web-ip"
在入口文件中,这只是给我一个负载均衡器的随机IP地址。网站beta.mydomain.com确实链接到“ web-ip”保留的静态IP地址。我在这里想念什么?