New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with nginx-ingress-gke #421

Open
MarkEdmondson1234 opened this Issue Apr 25, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@MarkEdmondson1234

MarkEdmondson1234 commented Apr 25, 2018

Issue Description

Running the line in the tutorial here:

kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'      

resulted in this error:

Error from server (NotFound): deployments.extensions "tiller-deploy" not found
@MarkEdmondson1234

This comment has been minimized.

Show comment
Hide comment
@MarkEdmondson1234

MarkEdmondson1234 Apr 25, 2018

I got through this by following this guide:

Step 2: Bind the Tiller service account to the cluster-admin role

Create a tiller-clusterrolebinding.yaml file with the following contents:

  kind: ClusterRoleBinding
  apiVersion: rbac.authorization.k8s.io/v1beta1
  metadata:
    name: tiller-clusterrolebinding
  subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system
  roleRef:
    kind: ClusterRole
    name: cluster-admin
    apiGroup: ""

Deploy the ClusterRoleBinding:

kubectl create -f tiller-clusterrolebinding.yaml

MarkEdmondson1234 commented Apr 25, 2018

I got through this by following this guide:

Step 2: Bind the Tiller service account to the cluster-admin role

Create a tiller-clusterrolebinding.yaml file with the following contents:

  kind: ClusterRoleBinding
  apiVersion: rbac.authorization.k8s.io/v1beta1
  metadata:
    name: tiller-clusterrolebinding
  subjects:
  - kind: ServiceAccount
    name: tiller
    namespace: kube-system
  roleRef:
    kind: ClusterRole
    name: cluster-admin
    apiGroup: ""

Deploy the ClusterRoleBinding:

kubectl create -f tiller-clusterrolebinding.yaml
@judepereira

This comment has been minimized.

Show comment
Hide comment
@judepereira

judepereira Sep 19, 2018

@MarkEdmondson1234 Thanks, that works well.

judepereira commented Sep 19, 2018

@MarkEdmondson1234 Thanks, that works well.

@EdByrnee

This comment has been minimized.

Show comment
Hide comment
@EdByrnee

EdByrnee Sep 26, 2018

Did not work :(

EdByrnee commented Sep 26, 2018

Did not work :(

@judepereira

This comment has been minimized.

Show comment
Hide comment
@judepereira

judepereira Oct 1, 2018

@EdByrnee I wrote a complete guide for this here: https://judepereira.com/blog/nginx-ingress-helm-k8s-rbac/

Can you try that and let me know if it works?

judepereira commented Oct 1, 2018

@EdByrnee I wrote a complete guide for this here: https://judepereira.com/blog/nginx-ingress-helm-k8s-rbac/

Can you try that and let me know if it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment