GKE – Nginx Ingress Installation Using HELM

 

Installation instructions can be found here.

 

Install HELM locally:

curl -o get_helm.sh https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get
chmod +x get_helm.sh
./get_helm.sh

helm init

 

Installing Tiller with RBAC enabled

Начиная с Kubernetes v1.8+, RBAC включен по умолчанию.

 

kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller

 

Checking:

kubectl get deployments -n kube-system | grep tiller

 

Create Nginx Ingress Controller:

helm install --name nginx-ingress stable/nginx-ingress --set rbac.create=true --set controller.publishService.enabled=true

 

If the following error occurs:

Error: release nginx-ingress failed: namespaces "default" is forbidden: User "system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API group "" in the namespace "default"

 

Run the following command:

helm init --service-account tiller --upgrade

 

We look at the external IP address of Ingress:

kubectl --namespace default get services -o wide -w nginx-ingress-controller

 

You can reserve it immediately.

Tagged: Tags

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments