Skip to content

Instantly share code, notes, and snippets.

@robertBrem
Created November 11, 2016 00:17
Show Gist options
  • Save robertBrem/77e7a97b57565921792631f70088c706 to your computer and use it in GitHub Desktop.
Save robertBrem/77e7a97b57565921792631f70088c706 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jenkins
spec:
replicas: 1
template:
metadata:
labels:
name: jenkins
spec:
containers:
- resources:
name: jenkins
image: robertbrem/jenkins:1.0.2
ports:
- name: ui
containerPort: 8080
- name: hooks
containerPort: 50000
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-socket
- mountPath: /var/jenkins_home
name: jenkins-home
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
- name: jenkins-home
hostPath:
path: /home/admin/jenkins-home/
nodeSelector:
name: node5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment