简体   繁体   English

如何在专用网络中设置入口 nginx 控制器

[英]how to setup ingress nginx controller in a private network

I have a k8s cluster with master (controll plane) @ 192.168.1.66 and only one worker node @ 192.18.1.67 All node have no public IP address.我有一个带有主控(控制平面)@ 192.168.1.66 的 k8s 集群,只有一个工作节点@ 192.18.1.67 所有节点都没有公共 IP 地址。

I'm trying to deploy ingress nginx controller per https://devopscube.com/setup-ingress-kubernetes-nginx-controller/我正在尝试根据https://devopscube.com/setup-ingress-kubernetes-nginx-controller/部署入口 nginx 控制器

I just arrieved at step : 'Create Ingress Controller & Admission Controller Services'我刚刚到达步骤:'创建入口控制器和准入控制器服务'

But the 'ingress-nginx-controller' LoadBalancer got pending External IP.但是“ingress-nginx-controller”LoadBalancer 有待处理的外部 IP。

bino@corobalap  ~/k8nan/ingresnginx/nginx-ingress-controller/manifests   main  kubectl --namespace ingress-nginx get services -o wide 
NAME                                 TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)                      AGE     SELECTOR
ingress-nginx-controller             LoadBalancer   10.100.42.100   <pending>     80:30482/TCP,443:31697/TCP   6m32s   app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx
ingress-nginx-controller-admission   ClusterIP      10.106.242.13   <none>        443/TCP                      6m32s   app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx

Kindly please what I need to read or do.请请我需要阅读或做的事情。

Sincerely,真挚地,

-bino- -比诺-

bino@corobalap  ~/k8nan  kubectl describe service ingress-nginx-controller --namespace ingress-nginx
Name:                     ingress-nginx-controller
Namespace:                ingress-nginx
Labels:                   app.kubernetes.io/component=controller
                          app.kubernetes.io/instance=ingress-nginx
                          app.kubernetes.io/name=ingress-nginx
Annotations:              <none>
Selector:                 app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx
Type:                     NodePort
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       10.100.42.100
IPs:                      10.100.42.100
Port:                     http  80/TCP
TargetPort:               http/TCP
NodePort:                 http  30482/TCP
Endpoints:                10.244.1.11:80
Port:                     https  443/TCP
TargetPort:               https/TCP
NodePort:                 https  31697/TCP
Endpoints:                10.244.1.11:443
Session Affinity:         None
External Traffic Policy:  Local
Events:
  Type    Reason  Age   From                Message
  ----    ------  ----  ----                -------
  Normal  Type    54m   service-controller  LoadBalancer -> NodePort

LoadBalancer refers to cloud load balancer, eg ELB on AWS, Cloud Load Balancing on GCP. LoadBalancer是指云负载均衡器,例如AWS上的ELB,GCP上的Cloud Load Balancing。 If you are running your own cluster on your machine, you can change the type: LoadBalancer to type: NodePort and access your ingress controller via < node ip>:<node port#>.如果您在您的机器上运行自己的集群,您可以将type: LoadBalancer更改为type: NodePort并通过 <node ip>:<node port#> 访问您的入口控制器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用入口设置负载均衡器 nginx controller - How to setup load balancer with ingress nginx controller 在 AKS 中的现有 Nginx 入口 controller 上设置 TLS - Setup TLS on existing Nginx ingress controller in AKS nginx controller 和入口 - nginx Z594C103F2C6E04C018AB059F01 和入口如何? - nginx controller and ingress - how is nginx controller and ingress linked? 如何访问Nginx入口控制器 - How to access nginx ingress controller How to setup nginx ingress controller, such that the kubernetes pod remains http but the nginx serves request on https - How to setup nginx ingress controller , such that the kubernetes pod remains http but the nginx serves request on https 如何为 kube.netes 设置入口 controller? - How to setup an ingress controller for kubernetes? nginx 入口没有 controller 服务 - nginx ingress no controller service Nginx 代理到入口 nginx controller - Nginx proxy to ingress nginx controller 如何创建将流量转发到 kube.netes ingress controller 的反向代理,例如 haproxy ingress 或 nginx ingress - How to create reverse proxy that forward traffic to kubernetes ingress controller such as haproxy ingress or nginx ingress 如何将 Nginx.conf 配置转换为 nginx-ingress-controller ingress.yml? - How to convert Nginx.conf configuration to nginx-ingress-controller ingress.yml?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM