DevOps Classroom notes 08/Nov/2023

Azure DevOps Workshop

Stage: Building, Packaging and publishing the docker image

  • Docker contianer registry: shaikkhajaibrahim/azuredevopsnov23
  • Structure
    Preview
  • Commands
cd src
docker image build -t shaikkhajaibrahim/azuredevopsnov23:v1.0.0 .
docker image push shaikkhajaibrahim/azuredevopsnov23:v1.0.0
  • Note: every build should have a different tag value. we can use Build Id for this

Stage: Creating infrastructure using terraform

  • ensure in the node kubectl is installed az aks install-cli or Refer Here

AWS

  • Ensure AWS CLI is configured
  • commands
cd deploy/tf_aws
terraform init
terraform apply -auto-approve

Azure

  • Ensure Azure CLI is configured
  • commands
cd deploy/tf_azure
terraform init
terraform apply -auto-approve

Stage:

  • Deploy the application into kubernetes cluster
  • commands
kubectl apply -f deploy/k8s
  • Note: during manual execution this command will fail

Hints

  • Ensure your work done in this pipeline is reusable i.e. ideally you should be creating templates for every stage with parameters
  • Refer Here for the folder structure

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube