Skip to content

Instantly share code, notes, and snippets.

@rohancme
Created July 15, 2017 01:37
Show Gist options
  • Save rohancme/7e695cb6175b724ae3d0d4b9404cdb71 to your computer and use it in GitHub Desktop.
Save rohancme/7e695cb6175b724ae3d0d4b9404cdb71 to your computer and use it in GitHub Desktop.
Jenkins master Kubernetes deployment file
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: jenkins-master
namespace: ci
spec:
template:
metadata:
labels:
name: jenkins-master
spec:
securityContext:
fsGroup: 1000
containers:
- name: jenkins-master
image: jenkins
ports:
- containerPort: 8080
- containerPort: 50000
volumeMounts:
- name: jenkins-master-vol
mountPath: /var/jenkins_home
volumes:
- name: jenkins-master-vol
persistentVolumeClaim:
claimName: jenkins-master-claim
nodeSelector:
beta.kubernetes.io/os: linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment