Jx: "jx create cluster minikube" install fails with helm deployment errors

Created on 3 Oct 2019  路  11Comments  路  Source: jenkins-x/jx

Summary

"jx create cluster minikube" install fails with helm deployment errors

Steps to reproduce the behavior

jx create cluster minikube

Expected behavior

Clean install

Actual behavior

ERROR: error creating cluster installing the Jenkins X platform: failed to install/upgrade the jenkins-x platform chart: failed to run 'kubectl apply --recursive -f /var/folders/pg/93pxn1pd5xv0qh89xr5ljtg40000gn/T/helm-template-workdir-615088976/jenkins-x/output/namespaces/jx -l jenkins.io/chart-release=jenkins-x --namespace jx --validate=false' command in directory '', output: 'persistentvolumeclaim/jenkins-x-chartmuseum created
unable to recognize "/var/folders/pg/93pxn1pd5xv0qh89xr5ljtg40000gn/T/helm-template-workdir-615088976/jenkins-x/output/namespaces/jx/jenkins-x-platform/charts/chartmuseum/templates/part0-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "/var/folders/pg/93pxn1pd5xv0qh89xr5ljtg40000gn/T/helm-template-workdir-615088976/jenkins-x/output/namespaces/jx/jenkins-x-platform/charts/docker-registry/templates/part0-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "/var/folders/pg/93pxn1pd5xv0qh89xr5ljtg40000gn/T/helm-template-workdir-615088976/jenkins-x/output/namespaces/jx/jenkins-x-platform/charts/heapster/templates/part0-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "/var/folders/pg/93pxn1pd5xv0qh89xr5ljtg40000gn/T/helm-template-workdir-615088976/jenkins-x/output/namespaces/jx/jenkins-x-platform/charts/jenkins/templates/part0-jenkins-master-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
unable to recognize "/var/folders/pg/93pxn1pd5xv0qh89xr5ljtg40000gn/T/helm-template-workdir-615088976/jenkins-x/output/namespaces/jx/jenkins-x-platform/charts/nexus/templates/part0-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"'



md5-7b317476194d09d65284003415fd0c59



NAME               VERSION
jx                 2.0.818
jenkins x platform 2.0.1376
Kubernetes cluster v1.16.0
kubectl            v1.16.1
helm client        Client: v2.14.3+g0e7f3b6
git                2.23.0
Operating System   Mac OS X 10.14.6 build 18G95



md5-f57f08d4a4746334cd41ef1884d0835c



$ jx create cluster minikube
? memory (MB) 8000
? cpu (cores) 2
? disk-size (MB) 20GB
? Select driver: hyperkit

jx-create-cluster-minikube-fail.txt

Operating system / Environment

  • Mac OS X 10.14.6
  • GNU bash, version 5.0.11(1)-release (x86_64-apple-darwin18.6.0)
  • Used brew to install minikube, kubernetes-cli, kubernetes-helm
  • Docker Desktop for Mac v2.1.0.3, stable, which provides Hyperkit
areminikube kinbug prioritimportant-longterm

Most helpful comment

You're deprecating minikube support? Doesn't that mean there's no easy way to have a development environment? GKE is a paid cloud service, isn't it?

All 11 comments

jx was updated this AM... same error though with:

NAME               VERSION
jx                 2.0.821
jenkins x platform 2.0.1383
Kubernetes cluster v1.16.0
kubectl            v1.16.1
helm client        Client: v2.14.3+g0e7f3b6
git                2.23.0
Operating System   Mac OS X 10.14.6 build 18G95

Hmmmm... this could be related... https://github.com/helm/helm/issues/6374

We are in the process of deprecating Minishift/Minikube support, so we recommend to switch to GKE.

Would this be an issue with any K8s 1.16 implementation?

I forced k8s to v1.15.4 via a Minikube config command ( minikube config set kubernetes-version v1.15.4 ), prior to the jx create cluster.
This allows jx to install correctly.

I expect that jx creation files have to change their api methods to work correctly on k8s v1.16

Check:
https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/

Already in process with issue #5675

https://github.com/jenkins-x/jx/issues/5675

You're deprecating minikube support? Doesn't that mean there's no easy way to have a development environment? GKE is a paid cloud service, isn't it?

all clouds have a free tier so folks can try Jenkins X in a realistic environment for free

Why can't everyone understand that there is a free tier in every cloud these days? Some software just won't work on your local machine, this is not a flaw.

@jstrachan The free tier on GKE for example only works for a certain period of time or until the $300 free credit is used up. Most of us (except for starters) have used up the trial. So for me and I imagine most other people, in order to test this out, or have a dev environment, we'll have to pay.

Was this page helpful?
0 / 5 - 0 ratings