You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Verify alb-ingress-controller pod running in namespace kube-system
kubectl get pods -n kube-system
# Verify external-dns pod running in default namespace
kubectl get pods
Step-03: Pre-requisite-2: Create Simple Email Service - SES SMTP Credentials
SMTP Credentials
Go to Services -> Simple Email Service
SMTP Settings --> Create My SMTP Credentials
IAM User Name: append the default generated name with microservice or something so we have a reference of this IAM user created for our ECS Microservice deployment
Download the credentials and update the same for below environment variables which you are going to provide in kubernetes manifest 04-NotificationMicroservice-Deployment.yml
# List Pods
kubectl get pods
# User Management Microservice Logs
kubectl logs -f $(kubectl get po | egrep -o 'usermgmt-microservice-[A-Za-z0-9-]+')
# Notification Microservice Logs
kubectl logs -f $(kubectl get po | egrep -o 'notification-microservice-[A-Za-z0-9-]+')
# External DNS Logs
kubectl logs -f $(kubectl get po | egrep -o 'external-dns-[A-Za-z0-9-]+')
# List Ingress
kubectl get ingress
Step-11: Verify Microservices health-status via browser
# User Management Service Health-Status
https://services.kubeoncloud.com/usermgmt/health-status
# Notification Microservice Health-Status via User Management
https://services.kubeoncloud.com/usermgmt/notification-health-status
https://services.kubeoncloud.com/usermgmt/notification-service-info
Step-12: Import postman project to Postman client on our desktop.
Verify the email id to confirm account creation email received.
List User
Verify if newly created user got listed.
Step-14: Rollout New Deployment - Set Image Option
# Rollout New Deployment using Set Image
kubectl set image deployment/notification-microservice notification-service=stacksimplify/kube-notifications-microservice:2.0.0 --record=true
# Verify Rollout Status
kubectl rollout status deployment/notification-microservice
# Verify ReplicaSets
kubectl get rs
# Verify Rollout History
kubectl rollout history deployment/notification-microservice
# Access Application (Should see V2)
https://services.kubeoncloud.com/usermgmt/notification-health-status
# Roll back to Previous Version
kubectl rollout undo deployment/notification-microservice
# Access Application (Should see V1)
https://services.kubeoncloud.com/usermgmt/notification-health-status
Step-15: Rollout New Deployment - kubectl Edit
# Rollout New Deployment using kubectl edit, change image version to 2.0.0
kubectl edit deployment/notification-microservice
# Verify Rollout Status
kubectl rollout status deployment/notification-microservice
# Verify ReplicaSets
kubectl get rs
# Verify Rollout History
kubectl rollout history deployment/notification-microservice
# Access Application (Should see V2)
https://services.kubeoncloud.com/usermgmt/notification-health-status
# Roll back to Previous Version
kubectl rollout undo deployment/notification-microservice
# Access Application (Should see V1)
https://services.kubeoncloud.com/usermgmt/notification-health-status
Step-16: Rollout New Deployment - Update manifest & kubectl apply
# Rollout New Deployment by updating yaml manifest 2.0.0
kubectl apply -f kube-manifests/
# Verify Rollout Status
kubectl rollout status deployment/notification-microservice
# Verify ReplicaSets
kubectl get rs
# Verify Rollout History
kubectl rollout history deployment/notification-microservice
# Access Application (Should see V2)
https://services.kubeoncloud.com/usermgmt/notification-health-status
# Roll back to Previous Version
kubectl rollout undo deployment/notification-microservice
# Access Application (Should see V1)
https://services.kubeoncloud.com/usermgmt/notification-health-status