我已经在gke集群(内部负载均衡器)中部署了Nginx控制器。 (头盔包)
kubectl get svc -n nginx-ingress
nginx-ingress-controller LoadBalancer 240.X.X.X 10.X.X.102 80:30107/TCP,443:31586/TCP 78m
nginx-ingress-default-backend ClusterIP 240.X.X.X <none> 80/TCP 78m
我还部署了入口
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-resource
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- http:
paths:
- path: /hello
backend:
serviceName: hello-app
servicePort: 8080
我的入口输出
kubectl get ingress -n nginx-ingress
NAME HOSTS ADDRESS PORTS AGE
host * 10.X.X.98 80 35m
我有几个问题