testing
This commit is contained in:
parent
9448633a29
commit
cba046cf66
|
|
@ -4,19 +4,16 @@ pipeline {
|
||||||
yaml '''
|
yaml '''
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: my-pod
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
|
|
||||||
- name: kubectl
|
- name: kubectl
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
command:
|
command:
|
||||||
- cat
|
- cat
|
||||||
tty: true
|
tty: true
|
||||||
volumes:
|
|
||||||
- name: docker-sock
|
|
||||||
hostPath:
|
|
||||||
path: /var/run/docker.sock
|
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
command:
|
command:
|
||||||
|
|
@ -25,6 +22,12 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: docker-sock
|
||||||
|
hostPath:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue