blob: ee327dd28609ba29568d379e8c8f86655396bff3 [file] [log] [blame]
parameters:
_param:
jenkins_slave_extra_opts: ""
jenkins_master_url: http://jenkins:8080/jenkins
kubernetes:
control:
service:
jenkins_slave01:
create: true
service: slave01
namespace: drivetrain
apiVersion: extensions/v1beta1
kind: Deployment
replicas: 1
container:
jenkins-slave:
image: ${_param:docker_image_jenkins_slave}
image_pull_policy: IfNotPresent
variables:
- name: JENKINS_URL
value: ${_param:jenkins_master_url}
- name: JENKINS_AGENT_NAME
value: slave01
- name: JENKINS_UPDATE_SLAVE
value: "'true'"
- name: JENKINS_LOGIN
value: ${_param:jenkins_client_user}
- name: JENKINS_PASSWORD
value: ${_param:jenkins_client_password}
- name: JAVA_OPTS
value: "-Dhttp.proxyHost=${_param:kdt_http_proxy} -Dhttp.nonProxyHosts=|jenkins ${_param:jenkins_slave_extra_opts}"
- name: https_proxy
value: ${_param:kdt_https_proxy}
- name: http_proxy
value: ${_param:kdt_http_proxy}
- name: no_proxy
value: ${_param:kdt_no_proxy}
volumes:
- name: jenkins-slave01
mount: /srv/volumes/jenkins_slaves/slave01
read_only: false
- name: docker-sock-volume
mount: /var/run/docker.sock
read_only: false
- name: entropy-volume
mount: /dev/random
read_only: true
volume:
jenkins-slave01:
type: glusterfs
endpoints: glusterfs
path: jenkins_slave01
read_only: false
docker-sock-volume:
type: hostPath
path: /var/run/docker.sock
entropy-volume:
type: hostPath
path: /dev/urandom