Skip to content

Instantly share code, notes, and snippets.

@fakoli
Created December 26, 2019 22:28
Show Gist options
  • Save fakoli/1ab4bf6666cc9c00b7a3d3b570885df3 to your computer and use it in GitHub Desktop.
Save fakoli/1ab4bf6666cc9c00b7a3d3b570885df3 to your computer and use it in GitHub Desktop.
apiVersion: "v1"
kind: "Pod"
metadata:
name: "sekou-test"
spec:
containers:
- command:
- "/bin/sh"
args: ["sleep", "99999"]
env:
- name: "MY_NODE_NAME"
valueFrom:
fieldRef:
fieldPath: "spec.nodeName"
image: "014468678568.dkr.ecr.us-west-2.amazonaws.com/devel3.7:32"
name: "devel3"
resources:
limits:
cpu: "1"
memory: "1Gi"
tty: true
volumeMounts:
- mountPath: "/pvc"
name: "workspace"
- mountPath: "/cache"
name: "cache"
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
- env:
- name: "JENKINS_SECRET"
value: "********"
- name: "JENKINS_TUNNEL"
value: "jenkins-agent:50000"
- name: "JENKINS_AGENT_NAME"
value: "server-smoke-tests-vd8b5-m8cm3"
- name: "JENKINS_NAME"
value: "server-smoke-tests-vd8b5-m8cm3"
- name: "JENKINS_AGENT_WORKDIR"
value: "/home/jenkins/agent"
- name: "JENKINS_URL"
value: "http://jenkins:8080/jenkins-8/"
image: "jenkins/jnlp-slave:3.29-1-alpine"
name: "jnlp"
volumeMounts:
- mountPath: "/pvc"
name: "workspace"
- mountPath: "/cache"
name: "cache"
- mountPath: "/home/jenkins/agent"
name: "workspace-volume"
readOnly: false
nodeSelector: {}
restartPolicy: "Never"
volumes:
- hostPath:
path: "/cache"
type: "DirectoryOrCreate"
name: "cache"
- name: "workspace"
persistentVolumeClaim:
claimName: "test-000-pvc"
- emptyDir: {}
name: "workspace-volume"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment