diff --git a/Jenkinsfile b/Jenkinsfile index 6af369c..e510d8d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,6 +81,21 @@ spec: } } + stage('Debug Kubernetes') { + steps { + container('kubectl') { + withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) { + sh ''' + kubectl cluster-info + kubectl get nodes + kubectl get pods --all-namespaces + ''' + } + } + } + } + + stage('Deploy to Kubernetes') { steps { container('kubectl') { // ✅ Ensures `kubectl` runs in the correct container