Add k8s config and credential
Fix gerrit-trigger and credentials
Change-Id: I038cf98717d7617eb7baf25cd2caceccc1a93908
diff --git a/clouds/kubernetes.yaml b/clouds/kubernetes.yaml
new file mode 100644
index 0000000..54a0447
--- /dev/null
+++ b/clouds/kubernetes.yaml
@@ -0,0 +1,67 @@
+---
+jenkins:
+ clouds:
+ - kubernetes:
+ name: "k8s-sandbox"
+ connectTimeout: 5
+ containerCapStr: "10"
+ credentialsId: "k8s-sandbox-token"
+ maxRequestsPerHostStr: "32"
+ readTimeout: 15
+ serverUrl: ${K8S_SERVICE_URL}
+ skipTlsVerify: true
+ webSocket: true
+ templates:
+ - name: "dind1"
+ showRawYaml: true
+ containers:
+ - name: "docker"
+ args: "99d"
+ command: "sleep"
+ envVars:
+ - envVar:
+ key: "DOCKER_HOST"
+ value: "tcp://localhost:2375"
+ image: "docker:19.03.1"
+ livenessProbe:
+ failureThreshold: 0
+ initialDelaySeconds: 0
+ periodSeconds: 0
+ successThreshold: 0
+ timeoutSeconds: 0
+ workingDir: "/home/jenkins/agent"
+ - name: "docker-daemon"
+ envVars:
+ - envVar:
+ key: "DOCKER_TLS_CERTDIR"
+ image: "docker:19.03.1-dind"
+ livenessProbe:
+ failureThreshold: 0
+ initialDelaySeconds: 0
+ periodSeconds: 0
+ successThreshold: 0
+ timeoutSeconds: 0
+ privileged: true
+ - name: "dind2"
+ showRawYaml: false
+ yaml: |
+ apiVersion: v1
+ kind: Pod
+ spec:
+ containers:
+ - name: docker
+ image: docker:19.03.1
+ command:
+ - sleep
+ args:
+ - 99d
+ env:
+ - name: DOCKER_HOST
+ value: tcp://localhost:2375
+ - name: docker-daemon
+ image: docker:19.03.1-dind
+ securityContext:
+ privileged: true
+ env:
+ - name: DOCKER_TLS_CERTDIR
+ value: ""