gmacario / easy-jenkins

Easily deploy a Jenkins CI/CD infrastructure via docker-compose
MIT License
35 stars 9 forks source link

myjenkins: Install Kubernetes plugins #289

Closed gmacario closed 6 years ago

gmacario commented 6 years ago

Fix https://github.com/gmacario/easy-jenkins/issues/288

Signed-off-by: Gianpaolo Macario gianpaolo.macario@solarma.it

gmacario commented 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
gmacario commented 6 years ago

Browse ${JENKINS_URL}, login as user admin

Jenkins > Manage Jenkins > Configure System

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={}).

gmacario commented 6 years ago

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

gmacario commented 6 years ago

Apart from the configuration of the Kubernetes plugin, LGTM.

Merging PR