Last active
May 26, 2020 16:39
-
-
Save vadym-martsynovskyy-hs/c8e90252cad63acf28d17078c8753833 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
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: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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