|
|
@ -40,7 +40,6 @@ spec: |
|
|
|
image: bitnami/kubectl:1.22.0 |
|
|
|
image: bitnami/kubectl:1.22.0 |
|
|
|
imagePullPolicy: IfNotPresent |
|
|
|
imagePullPolicy: IfNotPresent |
|
|
|
tty: true |
|
|
|
tty: true |
|
|
|
args: ["get","pod","-A"] |
|
|
|
|
|
|
|
volumeMounts: |
|
|
|
volumeMounts: |
|
|
|
- mountPath: "/etc/localtime" |
|
|
|
- mountPath: "/etc/localtime" |
|
|
|
name: "volume-2" |
|
|
|
name: "volume-2" |
|
|
@ -102,5 +101,13 @@ spec: |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
stage('Check Kubernetes ENV') { |
|
|
|
|
|
|
|
steps { |
|
|
|
|
|
|
|
container(name: 'kubectl', shell: 'echo') { |
|
|
|
|
|
|
|
sh 'sleep 10' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|