Skip to content

Instantly share code, notes, and snippets.

@dzintars
Created August 13, 2020 20:50
Show Gist options
  • Save dzintars/1a19c5e9069cb6b336f4311dc3b682aa to your computer and use it in GitHub Desktop.
Save dzintars/1a19c5e9069cb6b336f4311dc3b682aa to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: jenkins
labels:
app: jenkins
spec:
restartPolicy: Always
containers:
- name: jenkins-server
image: docker.io/jenkins/jenkins:latest
resources: {}
ports:
- containerPort: 8080
hostPort: 9093
protocol: TCP
- containerPort: 50000
hostPort: 50000
protocol: TCP
securityContext:
privileged: true
runAsUser: 10001
# allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
volumeMounts:
- mountPath: /var/jenkins_home
name: jenkins
volumes:
- name: jenkins
hostPath:
path: ./volumes/jenkins_home
type: Directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment