Skip to content

Instantly share code, notes, and snippets.

@vadym-martsynovskyy-hs
Last active May 26, 2020 16:39
Show Gist options
  • Save vadym-martsynovskyy-hs/c8e90252cad63acf28d17078c8753833 to your computer and use it in GitHub Desktop.
Save vadym-martsynovskyy-hs/c8e90252cad63acf28d17078c8753833 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Pod
metadata:
labels:
jenkins/kube-default: true
app: jenkins
component: agent
spec:
containers:
- name: jnlp
image: <jnlp-image-here>
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 1
memory: 2Gi
imagePullPolicy: Always
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: dind
image: docker:18.05-dind
securityContext:
privileged: true
volumeMounts:
- name: dind-storage
mountPath: /var/lib/docker
volumes:
- name: dind-storage
emptyDir: {}
@ssspandiarajan
Copy link

error: unable to decode "pod.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Labels: ReadString: expects " or n, but found t, error found in #10 byte of ...|default":true}},"spe|..., bigger context ...|kins","component":"agent","jenkins/kube-default":true}},"spec":{"containers":[{"env":[{"name":"POD_I|...

Prompted with the above error. Could you please help me here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment