Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deployment-service.yml #30

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ 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"

}
}
}


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"
}
}
Expand Down
22 changes: 11 additions & 11 deletions deployment-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
- ALL
privileged: false
readOnlyRootFilesystem: true
image: adijaiswal/emailservice:latest
image: rohithreddy10/emailservice:latest
ports:
- containerPort: 8080
env:
Expand Down Expand Up @@ -81,7 +81,7 @@ spec:
serviceAccountName: default
containers:
- name: server
image: adijaiswal/checkoutservice:latest
image: rohithreddy10/checkoutservice:latest
ports:
- containerPort: 5050
readinessProbe:
Expand Down Expand Up @@ -143,7 +143,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: adijaiswal/recommendationservice:latest
image: rohithreddy10/recommendationservice:latest
ports:
- containerPort: 8080
readinessProbe:
Expand Down Expand Up @@ -200,7 +200,7 @@ spec:
serviceAccountName: default
containers:
- name: server
image: adijaiswal/frontend:latest
image: rohithreddy10/frontend:latest
ports:
- containerPort: 8080
readinessProbe:
Expand Down Expand Up @@ -297,7 +297,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: adijaiswal/paymentservice:latest
image: rohithreddy10/paymentservice:latest
ports:
- containerPort: 50051
env:
Expand Down Expand Up @@ -349,7 +349,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: adijaiswal/productcatalogservice:latest
image: rohithreddy10/productcatalogservice:latest
ports:
- containerPort: 3550
env:
Expand Down Expand Up @@ -401,7 +401,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: adijaiswal/cartservice:latest
image: rohithreddy10/cartservice:latest
ports:
- containerPort: 7070
env:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -496,7 +496,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: adijaiswal/currencyservice:latest
image: rohithreddy10/currencyservice:latest
ports:
- name: grpc
containerPort: 7000
Expand Down Expand Up @@ -548,7 +548,7 @@ spec:
serviceAccountName: default
containers:
- name: server
image: adijaiswal/shippingservice:latest
image: rohithreddy10/shippingservice:latest
ports:
- containerPort: 50051
env:
Expand Down Expand Up @@ -654,7 +654,7 @@ spec:
terminationGracePeriodSeconds: 5
containers:
- name: server
image: adijaiswal/adservice:latest
image: rohithreddy10/adservice:latest
ports:
- containerPort: 9555
env:
Expand Down