[英]How can I deploy an ingress controller for my Kubernetes cluster
So I built my Kubernetes cluster on AWS using KOPS 所以我使用KOPS在AWS上构建了Kubernetes集群
I then deployed SocketCluster on my K8s cluster using Baasil which deploys 7 YAML files 然后我部署SocketCluster用我的K8S集群上Baasil其部署7个YAML文件
My problem is: the scc-ingress isn't getting any IP or endpoint as I have not deployed any ingress controller . 我的问题是:由于我尚未部署任何入口控制器,因此scc-ingress没有获得任何IP或端点。
According to ingress controller docs, I am recommended to deploy an nginx ingress controller 根据入口控制器文档,建议我部署一个Nginx入口控制器
I need easy and explained steps to deploy the nginx ingress controller for my specific cluster. 我需要简单易懂的步骤来为我的特定集群部署nginx入口控制器。
To view the current status of my cluster in a nice GUI, see the screenshots below: 要在漂亮的GUI中查看群集的当前状态,请参见以下屏幕截图:
Deployments 部署
Ingress 入口
Pods 豆荚
Replica Sets 副本集
Services 服务
The answer is here https://github.com/kubernetes/kops/tree/master/addons/ingress-nginx 答案在这里https://github.com/kubernetes/kops/tree/master/addons/ingress-nginx
kubectl apply -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.4.0.yaml kubectl适用-f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.4.0.yaml
But obviously the scc-ingress file needed to be changed to have a host such as foo.bar.com 但是很显然,需要更改scc-ingress文件以拥有诸如foo.bar.com之类的主机。
Also, need to generate a self-signed SSL using OpenSSL as per this link https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/tls 另外,需要根据此链接使用OpenSSL生成自签名SSL.https: //github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/tls
Finally, had to add a CNAME on Route53 from foo.bar.com to the dns of the ELB created 最后,必须在Route53上从foo.bar.com向创建的ELB的dns添加一个CNAME
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.