testing kubernetes without kubeconfig
This commit is contained in:
parent
328643bdf9
commit
06d69ca388
|
|
@ -84,13 +84,11 @@ spec:
|
||||||
stage('Debug Kubernetes') {
|
stage('Debug Kubernetes') {
|
||||||
steps {
|
steps {
|
||||||
container('kubectl') {
|
container('kubectl') {
|
||||||
withKubeConfig([credentialsId: '1c8bd8d9-1590-468c-afc7-24495d4330dc']) {
|
sh '''
|
||||||
sh '''
|
kubectl cluster-info
|
||||||
kubectl cluster-info
|
kubectl get nodes
|
||||||
kubectl get nodes
|
kubectl get pods --all-namespaces
|
||||||
kubectl get pods --all-namespaces
|
'''
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue