Closed gmacario closed 6 years ago
Locally testing on nemo (Ubuntu 18.04.1 64-bit LTS)
cd $HOME/github/gmacario/easy-jenkins
git fetch --all --prune
git checkout feature/install-kube-plugins
git pull
docker-compose pull && docker-compose build --pull --no-cache
docker-compose down
./runme.sh
Browse ${JENKINS_URL}
, login as user admin
Jenkins > Manage Jenkins > Configure System
minikube
~/.minikube/apiserver.crt
)~/.minikube/client.key
)~/.minikube/client.crt
)~/.minikube/ca.crt
)Click "Test Connection"
==> ERROR
Error testing connection https://192.168.99.100:8443: Failure executing: GET at: https://192.168.99.100:8443/api/v1/namespaces/default/pods. Message: pods is forbidden: User "system:anonymous" cannot list pods in the namespace "default". Received status: Status(apiVersion=v1, code=403, details=StatusDetails(causes=[], group=null, kind=pods, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=pods is forbidden: User "system:anonymous" cannot list pods in the namespace "default", metadata=ListMeta(_continue=null, resourceVersion=null, selfLink=null, additionalProperties={}), reason=Forbidden, status=Failure, additionalProperties={}).
A good explanation about how to configure the Jenkins plugin for Kubernetes can be found at https://cloud.google.com/solutions/configuring-jenkins-kubernetes-engine
Apart from the configuration of the Kubernetes plugin, LGTM.
Merging PR
Fix https://github.com/gmacario/easy-jenkins/issues/288
Signed-off-by: Gianpaolo Macario gianpaolo.macario@solarma.it