Cannot install jenkins-x in GKE - error: object does not implement the Object interfaces
In Google Cloud Free account run this command:
jx create cluster gke -n jx --zone us-central1-a --min-num-nodes 3 --max-num-nodes 3 --default-admin-password=admin --prow --no-tiller -b
Jenkins-x is up and running, I can open the link which I get from this command:
jx open
Fails with this error:
error: object does not implement the Object interfaces
In fact i have failing this command:
error: installing the Jenkins X platform: failed to install/upgrade the jenkins-x platform chart: failed to run 'kubectl apply --recursive -f /var/folders/l6/cd8nfjx512d9xqw1yrwn2kwr0000gn/T/helm-template-workdir-050090143/jenkins-x/output -l jenkins.io/chart-release=jenkins-x --namespace jx --validate=false' command in directory '', output: 'deployment.extensions "jenkins-x-chartmuseum" configured
The output of jx version is:
NAME VERSION
jx 1.3.948
jenkins x platform 0.0.3496
Kubernetes cluster v1.11.7-gke.4
kubectl v1.10.7
helm client Client: v2.13.0+g79d0794
git git version 2.17.2 (Apple Git-113)
Operating System Mac OS X 10.14.2 build 18C54
GKE, created by using this command:
jx create cluster gke -n jx --zone us-central1-a --min-num-nodes 3 --max-num-nodes 3 --default-admin-password=admin --prow --no-tiller -b
Pods running:
kubectl -n jx get pods
NAME READY STATUS RESTARTS AGE
build-controller-677948565-tc2wp 1/1 Running 0 1h
buildnum-c5c8b9889-z6d62 1/1 Running 0 1h
crier-7b9bc4c849-sj2m9 1/1 Running 0 1h
deck-5fbbdc9478-6qv5x 1/1 Running 2 1h
deck-5fbbdc9478-q9kjf 1/1 Running 1 1h
hook-84674dfd46-9kq22 1/1 Running 0 1h
hook-84674dfd46-plmj9 1/1 Running 0 1h
horologium-65d4c68b96-cv8jc 1/1 Running 0 1h
jenkins-x-chartmuseum-5687695d57-6jb8b 1/1 Running 0 1h
jenkins-x-controllerbuild-776c6d5c-lttqg 1/1 Running 0 1h
jenkins-x-controllercommitstatus-6546b4995-g6bgh 1/1 Running 0 1h
jenkins-x-controllerrole-7fb7666454-k4bjl 1/1 Running 0 1h
jenkins-x-controllerteam-f64ff5bd5-d7sxd 1/1 Running 0 1h
jenkins-x-controllerworkflow-856954cc6f-zt5t6 1/1 Running 0 1h
jenkins-x-docker-registry-7b56b4f555-654q9 1/1 Running 0 1h
jenkins-x-gcactivities-1551702600-xmbsf 0/1 Completed 0 57m
jenkins-x-gcpods-1551702600-mtpk9 0/1 Completed 0 57m
jenkins-x-heapster-65fd697bb-d98zw 2/2 Running 0 1h
jenkins-x-mongodb-6bfd5d9c79-pjdg6 1/1 Running 1 1h
jenkins-x-monocular-api-f98b447d7-x9qdq 1/1 Running 2 1h
jenkins-x-monocular-prerender-5848c74fdc-4xwj8 1/1 Running 0 1h
jenkins-x-monocular-ui-68774c6cb8-d7r9h 1/1 Running 0 1h
jenkins-x-nexus-695cc97bd6-nv848 1/1 Running 0 1h
pipeline-66cf49b747-q8t8d 1/1 Running 0 1h
plank-79d5bcc96b-gt5lg 1/1 Running 0 1h
prow-build-56c9d49579-kjcnb 1/1 Running 0 1h
sinker-c95fc86b5-mmj6x 1/1 Running 0 1h
tide-b99fd65b6-slhhj 1/1 Running 0 1h
Also i have these kube-system pods
kubectl -n kube-system get pods
NAME READY STATUS RESTARTS AGE
event-exporter-v0.2.3-85644fcdf-4nhzq 2/2 Running 0 1h
fluentd-gcp-scaler-8b674f786-crg6s 1/1 Running 0 1h
fluentd-gcp-v3.2.0-f8z5z 2/2 Running 0 1h
fluentd-gcp-v3.2.0-qp9hv 2/2 Running 0 1h
fluentd-gcp-v3.2.0-rv899 2/2 Running 0 1h
heapster-v1.6.0-beta.1-85c9b4c958-q2dsd 3/3 Running 0 1h
jxing-nginx-ingress-controller-6f7798b5f8-qvt2m 1/1 Running 0 1h
jxing-nginx-ingress-default-backend-7f5c759f7-s9qw4 1/1 Running 0 1h
kube-dns-6b98c9c9bf-8z9jt 4/4 Running 0 1h
kube-dns-6b98c9c9bf-96qp7 4/4 Running 0 1h
kube-dns-autoscaler-67c97c87fb-fz7qj 1/1 Running 0 1h
kube-proxy-gke-jx-default-pool-00d43c81-5d66 1/1 Running 0 1h
kube-proxy-gke-jx-default-pool-00d43c81-bb10 1/1 Running 0 1h
kube-proxy-gke-jx-default-pool-00d43c81-bbpg 1/1 Running 0 1h
l7-default-backend-7ff48cffd7-kfcrp 1/1 Running 0 1h
metrics-server-v0.2.1-fd596d746-fzvzx 2/2 Running 0 1h
Operating System Mac OS X 10.14.2 build 18C54
wonder if you need to upgrade your kubectl version to 1.11.x or later?
@raghuvarmabh Are you running the latest Kubectl Version? I had the same issue and upgrading Kubectl solved the issue.
facing same issue
NAME VERSION
jx 2.0.71
jenkins x platform 2.0.177
Kubernetes cluster v1.14.0
kubectl v1.10.11
helm client Client: v2.13.1+g618447c
git git version 2.20.1 (Apple Git-117)
Upgrading to kubectl >= 1.11.x also fixed this for me. I should also mention I'm installing on minikube on windows in case anyone is seeing this issue in that same environment.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close
@jenkins-x-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue with/reopen.
Mark the issue as fresh with/remove-lifecycle rotten.
Provide feedback via https://jenkins-x.io/community.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository.
Most helpful comment
wonder if you need to upgrade your
kubectlversion to 1.11.x or later?