configuration-as-code-plugin/demos/kubernetes
Carlos Sanchez f0c8ac8735 Add kubernetes template configuration example 2018-02-06 14:09:00 +01:00
..
README.md Kubernetes configuration as code 2018-02-05 16:23:53 +01:00
config.yml Add kubernetes template configuration example 2018-02-06 14:09:00 +01:00
jenkins.yml Kubernetes configuration as code 2018-02-05 16:23:53 +01:00
service-account.yml Kubernetes configuration as code 2018-02-05 16:23:53 +01:00

README.md

Configure Kubernetes plugin

Jenkins can be installed in Kubernetes and preconfigured to run jobs (and other options) in the Kubernetes cluster, using yaml stored in a ConfigMap. See config.yml for the ConfigMap definition.

Example installation on Kubernetes:

kubectl apply -f service-account.yml
kubectl apply -f config.yml
kubectl apply -f jenkins.yml

Sample configuration

jenkins:
  location:
    url: http://jenkins/
  clouds:
    - kubernetes:
        name: kubernetes
        containerCapStr: 100