Skip to content

Instantly share code, notes, and snippets.

@kellyjandrews
Last active March 13, 2018 20:03
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 kellyjandrews/f2d79047b38ecfcc1fea7233844b509b to your computer and use it in GitHub Desktop.
Save kellyjandrews/f2d79047b38ecfcc1fea7233844b509b to your computer and use it in GitHub Desktop.
$ jx install
Context "minikube" modified.
Trying to create ClusterRoleBinding minikube-cluster-admin-binding for role: cluster-admin for user minikube
clusterrolebinding "minikube-cluster-admin-binding" created
Created ClusterRoleBinding minikube-cluster-admin-binding
Created ServiceAccount tiller in namespace kube-system
Trying to create ClusterRoleBinding tiller for role: cluster-admin and ServiceAccount: kube-system/tiller
Created ClusterRoleBinding tiller
Initialising helm using ServiceAccount tiller in namespace kube-system
$HELM_HOME has been configured at /Users/kellyandrews/.helm.
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!
$HELM_HOME has been configured at /Users/kellyandrews/.helm.
Tiller (the Helm server-side component) has been upgraded to the current version.
Happy Helming!
"jenkins-x" has been added to your repositories
helm installed and configured
? Delete existing Azure draft pack repo and get latest? Yes
Installing default plugins...
Installation of default plugins complete
Installing default pack repositories...
Installing pack repo from https://github.com/Azure/draft
Installed pack repository github.com/Azure/draft
Installation of default pack repositories complete
$DRAFT_HOME has been configured at /Users/kellyandrews/.draft.
Draft detected that you are using minikube as your cloud provider. AWESOME!
Draftd has been installed into your Kubernetes Cluster
Happy Sailing!
? Delete existing jenkins-x draft pack repo and get latest? Yes
Installing pack repo from https://github.com/jenkins-x/draft-packs
Installed pack repository github.com/jenkins-x/draft-packs
draft installed and configured
ingress was successfully enabled
nginx ingress controller now enabled on minikube
Lets set up a git username and API token to be able to perform CI / CD
? Do you wish to use kellyjandrews as the GitHub username for CI/CD pipelines: Yes
Cloning the Jenkins X cloud environments repo to /Users/kellyandrews/.jx/cloud-environments
? A local Jenkins X cloud environments repository already exists, recreate with latest? Yes
Cloning the Jenkins X cloud environments repo to /Users/kellyandrews/.jx/cloud-environments
Counting objects: 370, done.
Total 370 (delta 0), reused 0 (delta 0), pack-reused 370
Generated helm values /Users/kellyandrews/.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.340 --values=/Users/kellyandrews/.jx/gitSecrets.yaml --values=/Users/kellyandrews/.jx/adminSecrets.yaml --values=/Users/kellyandrews/.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:tiller fe7d905b-26f5-11e8-afa2-080027d852b0 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[clusterroles.rbac.authorization.k8s.io "cluster-admin" not found]
make: *** [install] Error 1
Error: Command failed make ARGS=--values=/Users/kellyandrews/.jx/gitSecrets.yaml --values=/Users/kellyandrews/.jx/adminSecrets.yaml --values=/Users/kellyandrews/.jx/extraValues.yaml --namespace=jx --timeout=6000 install
error: exit status 2
$ jx create cluster minikube
? memory (MB) 4096
? cpu (cores) 3
? Select driver: virtualbox
WARNING: We cannot yet automate the installation of VirtualBox - can you install this manually please?
Please see: https://www.virtualbox.org/wiki/Downloads
Starting local Kubernetes v1.9.0 cluster...
Starting VM...
Downloading Minikube ISO
142.22 MB / 142.22 MB [============================================] 100.00% 0s
Getting VM IP address...
Moving files into cluster...
Downloading localkube binary
162.41 MB / 162.41 MB [============================================] 100.00% 0s
0 B / 65 B [----------------------------------------------------------] 0.00%
65 B / 65 B [======================================================] 100.00% 0sSetting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file.
Context "minikube" modified.
Trying to create ClusterRoleBinding minikube-cluster-admin-binding for role: cluster-admin for user minikube
clusterrolebinding "minikube-cluster-admin-binding" created
Created ClusterRoleBinding minikube-cluster-admin-binding
Created ServiceAccount tiller in namespace kube-system
Trying to create ClusterRoleBinding tiller for role: cluster-admin and ServiceAccount: kube-system/tiller
Created ClusterRoleBinding tiller
Initialising helm using ServiceAccount tiller in namespace kube-system
$HELM_HOME has been configured at /Users/kellyandrews/.helm.
Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
Happy Helming!
$HELM_HOME has been configured at /Users/kellyandrews/.helm.
Tiller (the Helm server-side component) has been upgraded to the current version.
Happy Helming!
"jenkins-x" has been added to your repositories
helm installed and configured
? Delete existing Azure draft pack repo and get latest? Yes
Installing default plugins...
Installation of default plugins complete
Installing default pack repositories...
Installing pack repo from https://github.com/Azure/draft
Installed pack repository github.com/Azure/draft
Installation of default pack repositories complete
$DRAFT_HOME has been configured at /Users/kellyandrews/.draft.
Draft detected that you are using minikube as your cloud provider. AWESOME!
Draftd has been installed into your Kubernetes Cluster
Happy Sailing!
? Delete existing jenkins-x draft pack repo and get latest? Yes
Installing pack repo from https://github.com/jenkins-x/draft-packs
Installed pack repository github.com/jenkins-x/draft-packs
draft installed and configured
ingress was successfully enabled
nginx ingress controller now enabled on minikube
Lets set up a git username and API token to be able to perform CI / CD
? Do you wish to use kellyjandrews as the GitHub username for CI/CD pipelines: Yes
Cloning the Jenkins X cloud environments repo to /Users/kellyandrews/.jx/cloud-environments
? A local Jenkins X cloud environments repository already exists, recreate with latest? Yes
Cloning the Jenkins X cloud environments repo to /Users/kellyandrews/.jx/cloud-environments
Counting objects: 370, done.
Total 370 (delta 0), reused 0 (delta 0), pack-reused 370
Generated helm values /Users/kellyandrews/.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.340 --values=/Users/kellyandrews/.jx/gitSecrets.yaml --values=/Users/kellyandrews/.jx/adminSecrets.yaml --values=/Users/kellyandrews/.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:tiller 6427bb4d-26f9-11e8-9928-080027a71566 [system:serviceaccounts system:serviceaccounts:kube-system system:authenticated] map[]} ownerrules=[] ruleResolutionErrors=[clusterroles.rbac.authorization.k8s.io "cluster-admin" not found]
make: *** [install] Error 1
Error: Command failed make ARGS=--values=/Users/kellyandrews/.jx/gitSecrets.yaml --values=/Users/kellyandrews/.jx/adminSecrets.yaml --values=/Users/kellyandrews/.jx/extraValues.yaml --namespace=jx --timeout=6000 install
error creating cluster exit status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment