From 5de9c1d79a70927e970a775538ce9ea56904df97 Mon Sep 17 00:00:00 2001 From: Reddi-Jagadeesh Date: Thu, 8 Jan 2026 12:45:17 +0530 Subject: [PATCH 1/2] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3d5a4773..07c43d32 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stages { stage('Deploy To Kubernetes') { steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://99B5504F77DEA5C8909A55CC730B6CD2.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8s-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { sh "kubectl apply -f deployment-service.yml" } @@ -13,7 +13,7 @@ pipeline { stage('verify Deployment') { steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://99B5504F77DEA5C8909A55CC730B6CD2.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8s-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { sh "kubectl get svc -n webapps" } } From 1a2df5a04326842c8a343889af69fef0a151f92e Mon Sep 17 00:00:00 2001 From: Reddi-Jagadeesh Date: Thu, 8 Jan 2026 12:48:33 +0530 Subject: [PATCH 2/2] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 07c43d32..ff000bd6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stages { stage('Deploy To Kubernetes') { steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8s-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { sh "kubectl apply -f deployment-service.yml" } @@ -13,7 +13,7 @@ pipeline { stage('verify Deployment') { steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8s-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://B0D2D937177C8A71C61A491455AC8570.gr7.ap-south-1.eks.amazonaws.com']]) { sh "kubectl get svc -n webapps" } }