Created
January 12, 2018 12:07
-
-
Save satyamz/e4055a088d3bf4314972f63aa8d2d8e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: jenkins-claim | |
annotations: | |
volume.beta.kubernetes.io/storage-class: openebs-standard | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5G | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: jenkins | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: jenkins-app | |
spec: | |
securityContext: | |
fsGroup: 1000 | |
containers: | |
- name: jenkins | |
imagePullPolicy: IfNotPresent | |
image: jenkins/jenkins:lts | |
ports: | |
- containerPort: 8080 | |
volumeMounts: | |
- mountPath: /var/jenkins_home | |
name: jenkins-home | |
volumes: | |
- name: jenkins-home | |
persistentVolumeClaim: | |
claimName: jenkins-claim | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: jenkins-svc | |
spec: | |
ports: | |
- port: 5678 | |
targetPort: 8080 | |
selector: | |
app: jenkins-app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment