Skip to content

Instantly share code, notes, and snippets.

@indradhanush
Last active April 16, 2018 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save indradhanush/d865da36f15d540eea34a752d5f5c467 to your computer and use it in GitHub Desktop.
Save indradhanush/d865da36f15d540eea34a752d5f5c467 to your computer and use it in GitHub Desktop.
Test instructions for reproducing RBAC error

Error

Error: release habitat-service-broker failed: clusterroles.rbac.authorization.k8s.io "habitat-service-broker-habitat-service-broker" already exists
make: *** [Makefile:35: deploy-helm] Error 1

Steps to reproduce

Minkube version: 0.25.0

minikube start --kubernetes-version v1.9.4 --extra-config=apiserver.Authorization.Mode=RBAC 

eval $(minikube docker-env) 

sleep 5 

kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/master/scripts/minikube-rbac.yaml

helm init

sleep 10

kubectl create clusterrolebinding tiller-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default

helm repo add svc-cat https://svc-catalog-charts.storage.googleapis.com

sleep 30

helm install svc-cat/catalog --name catalog --namespace catalog

From the habitat-operator repo

export YOUR_ORG=""

make HUB=docker.io DOCKER_ORG=$YOUR_ORG TAG=latest image
docker push docker.io/<your-org>/habitat-operator:latest
sed -i -e 's/image: .*/image: $YOUR_ORG\/habitat-operator:latest/' examples/rbac/habitat-operator.yml
kubectl apply -f examples/rbac/

From the habitat-service-broker repo

git fetch && git checkout master
make deploy-helm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment