SlideShare une entreprise Scribd logo
1  sur  26
DevOps
Open House III
Thursday 22nd
October 7-8 pm
Agenda
•Introductions
•Overview of DevOps
•Kubernetes (YAML)
•Questions
Prashant Beniwal
• 20 Years experience in IT Telecom Industry in variety of roles including
Development, Support and Quality Assurance.
• Extremely conversant with Telecom Domain and keen interest in multiple tools
technologies
• Certified DevOps Trainer and Coach.
• AI and Machine Learning Enthusiast
• Micro Services using Cloud, Docker and Kubernetes
• Training Assignments: India – Amdocs, Cyprus –Amdocs, Ireland – BriteBill,
Spain – BriteBill, India – Qualitest, Edureka – Devops, StarAgile, Vinsys, Excendo
• Avid Public Speaker at multiple conferences
• Visiting faculty at various universities
www.linkedin.com/in/prashant-beniwal+91-9850979757
pbeniwal@yahoo.com
Last Open house we saw the
DevOps Pipeline in action.
Lets quickly see it running once
again..
CPDOF CI-CD Pipeline
Running your application
on GKE
About GKE
• Google Kubernetes Engine is a managed, production-ready environment for
deploying containerized applications
• Kubernetes Engine allows you to get up and running with Kubernetes in no
time, by completely eliminating the need to install, manage, and operate
your own Kubernetes clusters.
• Managed Kubernetes Engine feature allows you to handle increased user
demand for your services, keeping them available when it matters most
Ref:
https://cloud.google.co
m/kubernetes-engine/
1. Package your app into a Docker image
2. Upload the image to a registry
3. Deploy your app to the cluster
4. Expose your app to the Internet
5. Deploy a new version of your app
To package and deploy your application on GKE:
Flow of Demo on GKE:
Load BalancerChrome
External Load balancer Service
Deployment
Replica Set
POD
Container
Control Node
Worker Node
Imperative vs Declarative
Imperative vs Declarative
Declarative
• Describe what you want to have
• e.g. I would like a cup of coffee
• Writing Manifest file for performing operation in Kubernetes
• Follows principle of Infrastructure as Code (IaC)
Imperative
• Tell me what to do
• e.g. Boil water, Pour it in a pot, Put coffee powder ...
• In Kubernetest giving kubectl command from Command line
YAML Basics
Basics of YAML
• YAML is serialization language
• Human readable and intuitive
• Key Value Pair using syntax:
• <key>: <value>
• Indentation and line seperation denotes
the structure
• Members of List begin with –
• Used by popular tools like:
• Docker
• Kubernetes
• Ansible
• Prometheus
Service:
- app: my-web
port: 9090
version: 1.0 <Services>
<Service>
<app>my-web</app>
<port> 9090</port>
<version>1.0 </version>
</Service>
</Services>
YAML
XML
{
Services: [
{
app: “my-web”
port: 9090
version: “1.0”
}
]
}
JSON
Sample POD YAML Manifest file
• Main four sections
• apiVersion
• kind
• metadata
• spec
• apiVersion is as per Kubernetes API
version
• Kind could have values like Pod,
Deployment, Services etc. which are
Kubernetes Objects
• Metadata is informaiton about the
Kubernetes objects
• Spec is all details about specification of
Kubernetes object
apiVersion:
kind:
metadata:
spec:
YAML
apiVersion: v1
kind:
metadata:
spec:
apiVersion: v1
kind: Pod
metadata:
spec:
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: web
image: tomcat
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
kubectl run my-pod --image=tomcat
Imperative
kubectl create deploy helloworld --image=pbeniwal/helloworld:v1 --port=8080 –replicas=2
Create Deployment
Imperative
Declarative
kubectl expose deployment helloworld --type LoadBalancer --port 80 --target-port 8080
Create Service
Imperative
Declarative
Access Application
5. Deploy a new version of your app
New changes deployment flow
Webhook
Deployment
Replica Set
POD
Container
Worker Node
External Load balancer Service
Control Node
About CP-DOF
(Certified Professional-DevOps Foundation)
https://cpdof.devopsppalliance.org/
https://cpdof.devopsppalliance.org/
CP-DOF Testimonials
https://cpdof.dev
opsppalliance.org
/testimonials
Upcoming CP-DOF program
You are all entitled for a special 10% off on the early bird price
Questions ?
Thanks for being a part of
DevOps Open house III

Contenu connexe

Tendances

What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
Simplilearn
 

Tendances (20)

Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
 
Docker Networking Overview
Docker Networking OverviewDocker Networking Overview
Docker Networking Overview
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Kubernetes - introduction
Kubernetes - introductionKubernetes - introduction
Kubernetes - introduction
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Hands-On Introduction to Kubernetes at LISA17
Hands-On Introduction to Kubernetes at LISA17Hands-On Introduction to Kubernetes at LISA17
Hands-On Introduction to Kubernetes at LISA17
 
Docker Kubernetes Istio
Docker Kubernetes IstioDocker Kubernetes Istio
Docker Kubernetes Istio
 
Kubernetes Monitoring & Best Practices
Kubernetes Monitoring & Best PracticesKubernetes Monitoring & Best Practices
Kubernetes Monitoring & Best Practices
 
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
 
(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview(Draft) Kubernetes - A Comprehensive Overview
(Draft) Kubernetes - A Comprehensive Overview
 
Kubernetes #1 intro
Kubernetes #1   introKubernetes #1   intro
Kubernetes #1 intro
 
Kubernetes
KubernetesKubernetes
Kubernetes
 
Getting Started with Kubernetes
Getting Started with Kubernetes Getting Started with Kubernetes
Getting Started with Kubernetes
 
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
 
An Introduction to Kubernetes
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to Kubernetes
 
Kubernetes: A Short Introduction (2019)
Kubernetes: A Short Introduction (2019)Kubernetes: A Short Introduction (2019)
Kubernetes: A Short Introduction (2019)
 
Intro to containerization
Intro to containerizationIntro to containerization
Intro to containerization
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
Kubernetes PPT.pptx
Kubernetes PPT.pptxKubernetes PPT.pptx
Kubernetes PPT.pptx
 
OpenStack Architecture
OpenStack ArchitectureOpenStack Architecture
OpenStack Architecture
 

Similaire à DevOps Open House III - Kubernetes using YAML

Similaire à DevOps Open House III - Kubernetes using YAML (20)

DockerCon 15 Keynote - Day 2
DockerCon 15 Keynote - Day 2DockerCon 15 Keynote - Day 2
DockerCon 15 Keynote - Day 2
 
Containers, Serverless and Functions in a nutshell
Containers, Serverless and Functions in a nutshellContainers, Serverless and Functions in a nutshell
Containers, Serverless and Functions in a nutshell
 
Serverless brewbox
Serverless   brewboxServerless   brewbox
Serverless brewbox
 
2019-06 - Goto Amsterdam - Microservices
2019-06 - Goto Amsterdam - Microservices2019-06 - Goto Amsterdam - Microservices
2019-06 - Goto Amsterdam - Microservices
 
Containers, microservices and serverless for realists
Containers, microservices and serverless for realistsContainers, microservices and serverless for realists
Containers, microservices and serverless for realists
 
Adf with docker
Adf with dockerAdf with docker
Adf with docker
 
Dockerizing OpenStack for High Availability
Dockerizing OpenStack for High AvailabilityDockerizing OpenStack for High Availability
Dockerizing OpenStack for High Availability
 
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
 
DevOps Openhouse II - Kubernetes in Action part 1
DevOps Openhouse II - Kubernetes in Action part 1DevOps Openhouse II - Kubernetes in Action part 1
DevOps Openhouse II - Kubernetes in Action part 1
 
Evénement Docker Paris: Anticipez les nouveaux business model et réduisez vos...
Evénement Docker Paris: Anticipez les nouveaux business model et réduisez vos...Evénement Docker Paris: Anticipez les nouveaux business model et réduisez vos...
Evénement Docker Paris: Anticipez les nouveaux business model et réduisez vos...
 
Ansible Tower | Docker | Cisco ACI
Ansible Tower | Docker | Cisco ACIAnsible Tower | Docker | Cisco ACI
Ansible Tower | Docker | Cisco ACI
 
PaaSVSContainerization
PaaSVSContainerizationPaaSVSContainerization
PaaSVSContainerization
 
IBM Open Cloud Update XCITE Fall 2014
IBM Open Cloud Update   XCITE Fall 2014IBM Open Cloud Update   XCITE Fall 2014
IBM Open Cloud Update XCITE Fall 2014
 
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...OSDC 2018 | Three years running containers with Kubernetes in Production by T...
OSDC 2018 | Three years running containers with Kubernetes in Production by T...
 
Creating a Kubernetes Operator in Java
Creating a Kubernetes Operator in JavaCreating a Kubernetes Operator in Java
Creating a Kubernetes Operator in Java
 
Containerized architectures for deep learning
Containerized architectures for deep learningContainerized architectures for deep learning
Containerized architectures for deep learning
 
Containers and Microservices for Realists
Containers and Microservices for RealistsContainers and Microservices for Realists
Containers and Microservices for Realists
 
Containers and microservices for realists
Containers and microservices for realistsContainers and microservices for realists
Containers and microservices for realists
 
Why kubernetes matters
Why kubernetes mattersWhy kubernetes matters
Why kubernetes matters
 
AWS ECS Copilot DevOps Presentation
AWS ECS Copilot DevOps PresentationAWS ECS Copilot DevOps Presentation
AWS ECS Copilot DevOps Presentation
 

Plus de Agile Testing Alliance

Plus de Agile Testing Alliance (20)

#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
 
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
#Interactive Session by  Ajay Balamurugadas, "Where Are The Real Testers In T...#Interactive Session by  Ajay Balamurugadas, "Where Are The Real Testers In T...
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
 
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
#Interactive Session by  Jishnu Nambiar and  Mayur Ovhal, "Monitoring Web Per...#Interactive Session by  Jishnu Nambiar and  Mayur Ovhal, "Monitoring Web Per...
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
 
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
 
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
 
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
 
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
 
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
 
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
 
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
 
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
 
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
 
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
 
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
 
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
#Interactive Session by  Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...#Interactive Session by  Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
 
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
 
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
 
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
 
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
#Interactive Session by Aniket Diwakar Kadukar and  Padimiti Vaidik Eswar Dat...#Interactive Session by Aniket Diwakar Kadukar and  Padimiti Vaidik Eswar Dat...
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
 
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

DevOps Open House III - Kubernetes using YAML

  • 1. DevOps Open House III Thursday 22nd October 7-8 pm
  • 3. Prashant Beniwal • 20 Years experience in IT Telecom Industry in variety of roles including Development, Support and Quality Assurance. • Extremely conversant with Telecom Domain and keen interest in multiple tools technologies • Certified DevOps Trainer and Coach. • AI and Machine Learning Enthusiast • Micro Services using Cloud, Docker and Kubernetes • Training Assignments: India – Amdocs, Cyprus –Amdocs, Ireland – BriteBill, Spain – BriteBill, India – Qualitest, Edureka – Devops, StarAgile, Vinsys, Excendo • Avid Public Speaker at multiple conferences • Visiting faculty at various universities www.linkedin.com/in/prashant-beniwal+91-9850979757 pbeniwal@yahoo.com
  • 4. Last Open house we saw the DevOps Pipeline in action. Lets quickly see it running once again..
  • 5.
  • 8. About GKE • Google Kubernetes Engine is a managed, production-ready environment for deploying containerized applications • Kubernetes Engine allows you to get up and running with Kubernetes in no time, by completely eliminating the need to install, manage, and operate your own Kubernetes clusters. • Managed Kubernetes Engine feature allows you to handle increased user demand for your services, keeping them available when it matters most Ref: https://cloud.google.co m/kubernetes-engine/
  • 9. 1. Package your app into a Docker image 2. Upload the image to a registry 3. Deploy your app to the cluster 4. Expose your app to the Internet 5. Deploy a new version of your app To package and deploy your application on GKE:
  • 10. Flow of Demo on GKE: Load BalancerChrome External Load balancer Service Deployment Replica Set POD Container Control Node Worker Node
  • 12. Imperative vs Declarative Declarative • Describe what you want to have • e.g. I would like a cup of coffee • Writing Manifest file for performing operation in Kubernetes • Follows principle of Infrastructure as Code (IaC) Imperative • Tell me what to do • e.g. Boil water, Pour it in a pot, Put coffee powder ... • In Kubernetest giving kubectl command from Command line
  • 14. Basics of YAML • YAML is serialization language • Human readable and intuitive • Key Value Pair using syntax: • <key>: <value> • Indentation and line seperation denotes the structure • Members of List begin with – • Used by popular tools like: • Docker • Kubernetes • Ansible • Prometheus Service: - app: my-web port: 9090 version: 1.0 <Services> <Service> <app>my-web</app> <port> 9090</port> <version>1.0 </version> </Service> </Services> YAML XML { Services: [ { app: “my-web” port: 9090 version: “1.0” } ] } JSON
  • 15. Sample POD YAML Manifest file • Main four sections • apiVersion • kind • metadata • spec • apiVersion is as per Kubernetes API version • Kind could have values like Pod, Deployment, Services etc. which are Kubernetes Objects • Metadata is informaiton about the Kubernetes objects • Spec is all details about specification of Kubernetes object apiVersion: kind: metadata: spec: YAML apiVersion: v1 kind: metadata: spec: apiVersion: v1 kind: Pod metadata: spec: apiVersion: v1 kind: Pod metadata: name: my-pod spec: containers: - name: web image: tomcat apiVersion: v1 kind: Pod metadata: name: my-pod spec: kubectl run my-pod --image=tomcat Imperative
  • 16. kubectl create deploy helloworld --image=pbeniwal/helloworld:v1 --port=8080 –replicas=2 Create Deployment Imperative Declarative
  • 17. kubectl expose deployment helloworld --type LoadBalancer --port 80 --target-port 8080 Create Service Imperative Declarative
  • 19. 5. Deploy a new version of your app
  • 20. New changes deployment flow Webhook Deployment Replica Set POD Container Worker Node External Load balancer Service Control Node
  • 21. About CP-DOF (Certified Professional-DevOps Foundation) https://cpdof.devopsppalliance.org/
  • 24. Upcoming CP-DOF program You are all entitled for a special 10% off on the early bird price
  • 26. Thanks for being a part of DevOps Open house III