简体   繁体   中英

How can I deploy an ingress controller for my Kubernetes cluster

So I built my Kubernetes cluster on AWS using KOPS

I then deployed SocketCluster on my K8s cluster using Baasil which deploys 7 YAML files

My problem is: the scc-ingress isn't getting any IP or endpoint as I have not deployed any ingress controller .

According to ingress controller docs, I am recommended to deploy an nginx ingress controller

I need easy and explained steps to deploy the nginx ingress controller for my specific cluster.

To view the current status of my cluster in a nice GUI, see the screenshots below:

Deployments

部署

Ingress

入口

Pods

豆荚

Replica Sets

副本集

Services

服务

The answer is here 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

But obviously the scc-ingress file needed to be changed to have a host such as 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

Finally, had to add a CNAME on Route53 from foo.bar.com to the dns of the ELB created

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM