unable to parse kubernetes as
root@k8s-node1:~/jenkins-x-boot-config/env# jx boot
WARNING: there was a problem obtaining the boot config repository git configuration, falling back to defaults
No Jenkins X pipeline file jenkins-x.yml found. You are not running this command from inside a Jenkins X Boot git clone
To continue we will clone https://github.com/jenkins-x/jenkins-x-boot-config.git @ 1.0.13 to jenkins-x-boot-config
? Do you want to clone the Jenkins X Boot Git repository? No
error: Please run this command again inside a git clone from a Jenkins X Boot repository
root@k8s-node1:~/jenkins-x-boot-config/env# jx boot
WARNING: there was a problem obtaining the boot config repository git configuration, falling back to defaults
No Jenkins X pipeline file jenkins-x.yml found. You are not running this command from inside a Jenkins X Boot git clone
To continue we will clone https://github.com/jenkins-x/jenkins-x-boot-config.git @ 1.0.13 to jenkins-x-boot-config
? Do you want to clone the Jenkins X Boot Git repository? Yes
Cloning https://github.com/jenkins-x/jenkins-x-boot-config.git @ 1.0.13 to jenkins-x-boot-config
booting up Jenkins X
STEP: validate-git command: /bin/sh -c jx step git validate in dir: /root/jenkins-x-boot-config/env/jenkins-x-boot-config/env
Git configured for user: xxx and email [email protected]
STEP: verify-preinstall command: /bin/sh -c jx step verify preinstall in dir: /root/jenkins-x-boot-config/env/jenkins-x-boot-config/env
error: : unable to parse kubernetes as <project id>_<zone>_<cluster name>
error: failed to interpret pipeline file /root/jenkins-x-boot-config/env/jenkins-x-boot-config/jenkins-x.yml: failed to run '/bin/sh -c jx step verify preinstall' command in directory '/root/jenkins-x-boot-config/env/jenkins-x-boot-config/env', output: ''
boot success
boot failed
The output of jx version is:
root@k8s-node1:~/jenkins-x-boot-config/env# jx version
NAME VERSION
jx 2.0.696
jenkins x platform 2.0.1059
Kubernetes cluster v1.15.0
kubectl v1.15.0
helm client Client: v2.14.3+g0e7f3b6
git 2.7.4
Operating System Ubuntu 16.04.6 LTS
The cluster is created by ansible
jx install --provider=kubernetes --on-premise
root@k8s-node1:~/jenkins-x-boot-config/env# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
try changing the provider in jx-requirements.yaml to kubernetes? It defaults to GKE
/kind bug
/area boot
@garethjevans thanks for your help. One more question, I am following the guide. git clone https://github.com/jenkins-x/jenkins-x-boot-config.git my-jx-config
but i can't find the values.yaml. Any suggestion would be very helpful
Any help here, even i am getting same error-
$ sudo jx boot
booting up Jenkins X
STEP: validate-git command: /bin/sh -c jx step git validate in dir: env
Git configured for user: XXX and email [email protected]
STEP: verify-preinstall command: /bin/sh -c jx step verify preinstall --provider-values-dir="kubeProviders" in dir: .
error: : unable to parse kubernetes as
error: failed to interpret pipeline file jenkins-x.yml: failed to run '/bin/sh -c jx step verify preinstall --provider-values-dir="kubeProviders"' command in directory '.', output: ''
$ jx version
NAME VERSION
jx 2.0.905
Kubernetes cluster v1.14.8
kubectl v1.14.0
helm client v2.15.0+gc244026
helm server v2.15.0+gc244026
git 2.17.1
Operating System Ubuntu 18.04.3 LTS
Any help here, even i am getting same error-
$ sudo jx boot
booting up Jenkins XSTEP: validate-git command: /bin/sh -c jx step git validate in dir: env
Git configured for user: XXX and email [email protected]
STEP: verify-preinstall command: /bin/sh -c jx step verify preinstall --provider-values-dir="kubeProviders" in dir: .
error: : unable to parse kubernetes as
error: failed to interpret pipeline file jenkins-x.yml: failed to run '/bin/sh -c jx step verify preinstall --provider-values-dir="kubeProviders"' command in directory '.', output: ''$ jx version
NAME VERSION
jx 2.0.905
Kubernetes cluster v1.14.8
kubectl v1.14.0
helm client v2.15.0+gc244026
helm server v2.15.0+gc244026
git 2.17.1
Operating System Ubuntu 18.04.3 LTS
Changing provider in jx-requirements.yaml to kubernetes did resolve the error
sounds like the workaround is to use provider: kubernetes in the jx-requirements.yml
I get this from a clean install. Not very friendly to get this at
jx boot
What if I'm using Azure, do I put provider: azure in there?
@cannibal-kush
try: aks => Jenkins X Boot configuration for Azure Container Engine
jx install --provider=aks ... or at the set jx-requirements.yml provider to aks"
list providers:
jx install --help
...
--provider='': Cloud service providing the Kubernetes cluster. Supported providers: aks, alibaba, aws, eks, gke, icp, iks, jx-infra, kubernetes, minikube, minishift, oke, openshift, pks
...
jx boot has only been validated on GKE and EKS, we'd love feedback and contributions for other Kubernetes providers ??
well it definitely doesn't work w/ aks! i get the same error.
It doesn't work with DigitalOcean ¯\_(ツ)_/¯
for Linode Kubernetes Engine, this error is discussed here:
Most helpful comment
try changing the provider in
jx-requirements.yamltokubernetes? It defaults to GKE