DevOps Classroom notes 22/Oct/2024

Phippy Goes to Zoo


Deployments

  • Refer Here for official docs
  • Deployments create replica sets, replicasets create pods which in turn runs the containers
  • Deployments are suitable for stateless applications
  • Deployments come with two strategies
    • Recreate
    • RollingUpdates (Default)
  • In Rolling updates
    • We can rollout New versions
    • undo rollout (rollbacks)

To understand Deployments

  • Lets use image shaikkhajaibrahim/dmtest
  • Application runs of /app on port 80
  • tag 1.0
  • tag 2.0
  • tag 3.0
  • Lets create a Deployment with 4 replicas of version 1.0 with a service exposed to external world
  • Refer Here for the manifests to deploy version 1.0
  • For deployment to record the change cause lets use the annotation Refer Here
  • Refer Here for changes done to add change cause
  • To find the deployment status we use kubeclt rollout
  • To access the application externally use nodeport or loadbalancer
  • To deploy the new version change the tag and change cause annotation
  • Exercise:
    • Convert
      • users-service from replicaset to deployment
      • books-service from replicaset to deployment
      • library-web-store from replicaset to deployment

Annotations

  • Refer Here for official docs
  • Annotations add metadata to objects which are generally used by tools
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%