jx: jx install fails using default minikube config on macOS

Description

Tried to install Jenkins X on a new minikube on my Mac. It failed in a way I couldn’t make sense of.

I eventually tried deleting my minikube VM and started again. The shortcut jx create cluster minikube worked. It is unclear how the shortcut differs from the running the two separate commands minikube start && jx install, but it definitely does.

Both the README.md and http://jenkins-x.io/getting-started/create-cluster/ suggest using jx install.

Version

1.1.5

Steps

  1. $ brew cask install minikube
  2. $ minikube start
  3. Install and init helm and draft (may require workaround of draft issue with git 2.16.1)
  4. $ jx install 5 Provide username and API key

Expected result

Successful Jenkins X install.

Actual result

Cloning the Jenkins X cloud environments repo to /Users/bitwiseman/.jx/cloud-environments
Counting objects: 377, done.
Compressing objects: 100% (6/6), done.
Total 377 (delta 2), reused 3 (delta 1), pack-reused 370
Generated helm values /Users/bitwiseman/.jx/extraValues.yaml
helm repo add jenkins-x https://chartmuseum.build.cd.jenkins-x.io
"jenkins-x" has been added to your repositories
rm -rf secrets.yaml.dec
helm repo add jenkins-x https://chartmuseum.build.cd.jenkins-x.io
"jenkins-x" has been added to your repositories
helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
...Successfully got an update from the "jenkins-x" chart repository
Update Complete. ⎈ Happy Helming!⎈ 
helm install jenkins-x/jenkins-x-platform --name jenkins-x -f ./myvalues.yaml -f ./secrets.yaml --version 0.0.348 --values=/Users/bitwiseman/.jx/gitSecrets.yaml --values=/Users/bitwiseman/.jx/adminSecrets.yaml --values=/Users/bitwiseman/.jx/extraValues.yaml --namespace=jx --timeout=6000
Error: release jenkins-x failed: roles.rbac.authorization.k8s.io "cleanup" is forbidden: attempt to grant extra privileges: [PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["get"]} PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["list"]} PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["watch"]} PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["patch"]} PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["create"]} PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["update"]} PolicyRule{Resources:["ingresses"], APIGroups:["extensions"], Verbs:["delete"]} PolicyRule{Resources:["configmaps"], APIGroups:[""], Verbs:["get"]} PolicyRule{Resources:["configmaps"], APIGroups:[""], Verbs:["list"]} PolicyRule{Resources:["configmaps"], APIGroups:[""], Verbs:["watch"]} PolicyRule{Resources:["configmaps"], APIGroups:[""], Verbs:["patch"]} PolicyRule{Resources:["configmaps"], APIGroups:[""], Verbs:["update"]} PolicyRule{Resources:["services"], APIGroups:[""], Verbs:["get"]} PolicyRule{Resources:["services"], APIGroups:[""], Verbs:["list"]} PolicyRule{Resources:["services"], APIGroups:[""], Verbs:["watch"]} PolicyRule{Resources:["services"], APIGroups:[""], Verbs:["patch"]} PolicyRule{Resources:["services"], APIGroups:[""], Verbs:["update"]} PolicyRule{Resources:["deployments"], APIGroups:["apps"], Verbs:["get"]} PolicyRule{Resources:["deployments"], APIGroups:["apps"], Verbs:["list"]} PolicyRule{Resources:["deployments"], APIGroups:["apps"], Verbs:["watch"]} PolicyRule{Resources:["deployments"], APIGroups:["apps"], Verbs:["patch"]} PolicyRule{Resources:["deployments"], APIGroups:["apps"], Verbs:["update"]}] user=&{system:serviceaccount:kube-system:default 8e1350f0-288b-11e8-a356-080027c37486 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[]
make: *** [install] Error 1
Error: Command failed  make ARGS=--values=/Users/bitwiseman/.jx/gitSecrets.yaml --values=/Users/bitwiseman/.jx/adminSecrets.yaml --values=/Users/bitwiseman/.jx/extraValues.yaml --namespace=jx --timeout=6000 install
error: exit status 2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

I believe if you follow this page http://jenkins-x.io/getting-started/install-on-cluster/ you will run into the problem.

Can we add a note here to the effect of “if you are running a minikube cluster without rbac enabled, this will not work” since running jx install with a running minikube instance currently will fail?

I understand that $300 credits are a decent amount, but it also assumes that anyone testing us out will then

a) not have used the credits b) have some familiarity with gcloud in general c) be comfortable with spinning up a new cluster and then later need to start paying for it

Minikube exists for a reason, and trying things out is exactly that. Once I got through the initial hurdles, it runs great on virtualbox.