From 199190c91a20b9894c284e3f805dda7c00c5f908 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:43:54 -0700 Subject: [PATCH 1/8] Update deployment-service.yml --- deployment-service.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/deployment-service.yml b/deployment-service.yml index cafc1711..5320f8e0 100644 --- a/deployment-service.yml +++ b/deployment-service.yml @@ -28,7 +28,7 @@ spec: - ALL privileged: false readOnlyRootFilesystem: true - image: adijaiswal/emailservice:latest + image: rohithreddy10/emailservice:latest ports: - containerPort: 8080 env: @@ -81,7 +81,7 @@ spec: serviceAccountName: default containers: - name: server - image: adijaiswal/checkoutservice:latest + image: rohithreddy10/checkoutservice:latest ports: - containerPort: 5050 readinessProbe: @@ -143,7 +143,7 @@ spec: terminationGracePeriodSeconds: 5 containers: - name: server - image: adijaiswal/recommendationservice:latest + image: rohithreddy10/recommendationservice:latest ports: - containerPort: 8080 readinessProbe: @@ -200,7 +200,7 @@ spec: serviceAccountName: default containers: - name: server - image: adijaiswal/frontend:latest + image: rohithreddy10/frontend:latest ports: - containerPort: 8080 readinessProbe: @@ -297,7 +297,7 @@ spec: terminationGracePeriodSeconds: 5 containers: - name: server - image: adijaiswal/paymentservice:latest + image: rohithreddy10/paymentservice:latest ports: - containerPort: 50051 env: @@ -349,7 +349,7 @@ spec: terminationGracePeriodSeconds: 5 containers: - name: server - image: adijaiswal/productcatalogservice:latest + image: rohithreddy10/productcatalogservice:latest ports: - containerPort: 3550 env: @@ -401,7 +401,7 @@ spec: terminationGracePeriodSeconds: 5 containers: - name: server - image: adijaiswal/cartservice:latest + image: rohithreddy10/cartservice:latest ports: - containerPort: 7070 env: @@ -465,7 +465,7 @@ spec: - ALL privileged: false readOnlyRootFilesystem: true - image: adijaiswal/loadgenerator:latest + image: rohithreddy10/loadgenerator:latest env: - name: FRONTEND_ADDR value: "frontend:80" @@ -496,7 +496,7 @@ spec: terminationGracePeriodSeconds: 5 containers: - name: server - image: adijaiswal/currencyservice:latest + image: rohithreddy10/currencyservice:latest ports: - name: grpc containerPort: 7000 @@ -548,7 +548,7 @@ spec: serviceAccountName: default containers: - name: server - image: adijaiswal/shippingservice:latest + image: rohithreddy10/shippingservice:latest ports: - containerPort: 50051 env: @@ -654,7 +654,7 @@ spec: terminationGracePeriodSeconds: 5 containers: - name: server - image: adijaiswal/adservice:latest + image: rohithreddy10/adservice:latest ports: - containerPort: 9555 env: From ea04922d1e3666255e638d2aec1a0bdd9a9684a6 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:20:47 -0700 Subject: [PATCH 2/8] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93629907..5ef13cbd 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://9F39F577334FF23706994135261985F2.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-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://9F39F577334FF23706994135261985F2.gr7.ap-south-1.eks.amazonaws.com']]) { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { sh "kubectl get svc -n webapps" } } From 51f185c8ff3d77fbaeeb1c9a0354eaaf790fdc57 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:31:32 -0700 Subject: [PATCH 3/8] Delete Jenkinsfile --- Jenkinsfile | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 5ef13cbd..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,22 +0,0 @@ -pipeline { - agent any - - stages { - stage('Deploy To Kubernetes') { - steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { - sh "kubectl apply -f deployment-service.yml" - - } - } - } - - stage('verify Deployment') { - steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { - sh "kubectl get svc -n webapps" - } - } - } - } -} From bbe689bea8b1ca60e7622a78cd3a3ef2d707f9c9 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:32:58 -0700 Subject: [PATCH 4/8] Create Jenkinsfile --- Jenkinsfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..5ef13cbd --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +pipeline { + agent any + + stages { + stage('Deploy To Kubernetes') { + steps { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { + sh "kubectl apply -f deployment-service.yml" + + } + } + } + + stage('verify Deployment') { + steps { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { + sh "kubectl get svc -n webapps" + } + } + } + } +} From 214855e0eb2664838c1123ccccc6525f6558eb77 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:45:02 -0700 Subject: [PATCH 5/8] Delete Jenkinsfile --- Jenkinsfile | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 5ef13cbd..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,22 +0,0 @@ -pipeline { - agent any - - stages { - stage('Deploy To Kubernetes') { - steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { - sh "kubectl apply -f deployment-service.yml" - - } - } - } - - stage('verify Deployment') { - steps { - withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { - sh "kubectl get svc -n webapps" - } - } - } - } -} From 4587e45c7b0edb8889ed6289a990036bd81e5378 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:46:01 -0700 Subject: [PATCH 6/8] Create Jenkinsfile --- Jenkinsfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..34178ef8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent any + + stages { + stage('Deploy To Kubernetes') { + steps { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { + sh "kubectl apply -f deployment-service.yml" + } + } + } + + + stage('verify Deployment') { + steps { + withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { + + sh "kubectl get svc -n webapps" + } + } + } + } +} From 05d643887eefd9af05d849b294d0bafdf07e5f96 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:52:41 -0700 Subject: [PATCH 7/8] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 34178ef8..f0da00e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { steps { withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { sh "kubectl apply -f deployment-service.yml" + sleep 60 } } } @@ -15,7 +16,7 @@ pipeline { steps { withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { - sh "kubectl get svc -n webapps" + sh "kubectl get all -n webapps" } } } From c77d7e923d372e77fbbd076a7114151ef0c0d058 Mon Sep 17 00:00:00 2001 From: Rohith-1996 <80640145+Rohith-1996@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:54:45 -0700 Subject: [PATCH 8/8] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f0da00e1..f0255c49 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline { steps { withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { sh "kubectl apply -f deployment-service.yml" - sleep 60 + } } } @@ -16,7 +16,7 @@ pipeline { steps { withKubeCredentials(kubectlCredentials: [[caCertificate: '', clusterName: 'EKS-1', contextName: '', credentialsId: 'k8-token', namespace: 'webapps', serverUrl: 'https://F820C0D89E72B0F8FE53A0299ABD5085.gr7.us-east-1.eks.amazonaws.com']]) { - sh "kubectl get all -n webapps" + sh "kubectl get svc -n webapps" } } }