Skip to content

Instantly share code, notes, and snippets.

@Zauxst
Last active May 3, 2019 19:17
Show Gist options
  • Save Zauxst/80b58b70d47bd5c4d624524cb68fbdc8 to your computer and use it in GitHub Desktop.
Save Zauxst/80b58b70d47bd5c4d624524cb68fbdc8 to your computer and use it in GitHub Desktop.
issue when loading the yaml or yamls in different formats.
clouds:
- kubernetes:
containerCapStr: "40"
credentialsId: "kube"
jenkinsTunnel: "jenkins-discovery.default.svc.cluster.local:50000"
jenkinsUrl: "http://jenkins-ui.default.svc.cluster.local:8080"
maxRequestsPerHostStr: "32"
name: "kubernetes"
namespace: "default"
serverUrl: "https://private"
skipTlsVerify: true
templates:
- name: "test-template"
namespace: "default"
label: "test"
yaml: |
---
apiVersion: v1
kind: Pod
metadata:
name: dind
spec:
containers:
- name: builder
image: docker:18.06.1-git
imagePullPolicy: Always
command: ['cat']
tty: true
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: dind
image: docker:18.06.1-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