SlideShare a Scribd company logo
1 of 17
Download to read offline
What you have to know about
Certified Kubernetes Administrator
Jirayut Nimsaeng (Dear)
CEO/Founder Opsta
GDG Cloud Bangkok 2nd Meetup @ Tencent
November 21, 2017
GDG Cloud
Bangkok
2GDG Cloud Bangkok
● Jirayut Nimsaeng (Dear)
● Interested in Cloud and Open Source
● Agile Practitioner with DevOps Driven
● CEO and Founder Opsta
● First Certified Kubernetes Administrator
in Thailand
#whoami
3GDG Cloud Bangkok
Facts
• Created by Cloud Native Computing Foundation (CNCF)
• Cost $300 with one free retake
• Online performance-based exam with proctor
• Use Kubernetes version 1.6.2 on Ubuntu 16.04
• Exam expected to take 3-4 hours to complete
• Passing score is 74%
• Certification valid for 2 years
• Register here https://www.cncf.io/certification/expert/
4GDG Cloud Bangkok
Preparation
• PC or Laptop
• Clean surface
• Windows, MacOS or Linux
• Chrome or Chromium Browser
• Reliable Internet
• Webcam
• Microphone
• Private space
• Passport or ID card
• Need 1-3 days for exam reservation
5GDG Cloud Bangkok
Exam Panel
6GDG Cloud Bangkok
While Exam
• You can browse for anything
• No K8s dashboard. You can use only command-line
• You can not note down anything except included Notepad
• Proctor has an ultimate timer
• You can reboot exam server
• Use Ctrl+Alt+W instead of Ctrl+W
• Copy & Paste key
• Linux: select text to copy and paste with middle mouse
• Mac: ⌘+C to copy and ⌘+V to paste
• Windows: Ctrl+Insert to copy and Shift+Insert to paste
• You can use Screen or tmux
7GDG Cloud Bangkok
CKA Exam Environment
Cluster Members CNI Description
k8s 1 CA, 1 etcd, 1 master, 2 worker flannel non-HA k8s cluster
Hk8s 1 CA, 3 etcd, 3 master, 1 loadbalancer, 2 worker calico HA k8s cluster
bk8s 1 CA, 1 etcd, 1 master, 1 worker flannel non-HA k8s cluster
wk8s 1 CA, 1 etcd, 1 master, 2 worker flannel non-HA k8s cluster
ek8s 1 CA, 1 etcd, 1 master, 2 worker flannel non-HA k8s cluster
fk8s 1 CA, 1 etcd, 1 base node none k8s cluster none missing master node
ik8s 1 CA, 1 etcd, 1 master, 1 base node flannel k8s cluster - missing worker node
tk8s 1 CA, 1 etcd, 1 master, 1 worker flannel non-HA k8s cluster
8GDG Cloud Bangkok
Curriculum
• 5% Scheduling
• 5% Logging/Monitoring
• 8% Application Lifecycle Management
• 11% Cluster Maintenance
• 12% Security
• 7% Storage
• 10% Troubleshooting
• 19% Core Concepts
• 11% Networking
• 12% Installation, Configuration & Validation
9GDG Cloud Bangkok
Core Concepts
• Master Components
• kube-api-server
• kube-controller-manager
• kube-scheduler
• Non-master components
• kubelet
• kube-proxy
• Kubernetes Objects
• Pod
• Service
• Ingress
• Volume
• Namespace
• ReplicaSet
• Deployment
• Job
• [CronJob]
• [StatefulSet]
• [DaemonSet]
10GDG Cloud Bangkok
Core Concepts
• Namespace is use a lot
• Label and Selector
• Create multiple containers in Pod with Init Container
https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
• Control output
https://kubernetes.io/docs/user-guide/kubectl-overview/
• Job
https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
• Update and Scaling Deployment
• History and Rollback Deployment
11GDG Cloud Bangkok
Installation, Configuration and Validation
• Create K8s cluster from binaries
• Must use token and certificates
• Configure to start K8s components with systemd
• Use systemctl to enable/disable services
• Troubleshooting with K8s log files
• Backup and restore etcd
• https://github.com/kelseyhightower/kubernetes-the-hard-way
12GDG Cloud Bangkok
Networking
• Understand the service concept with NodePort type
• Find service IP address
https://kubernetes.io/docs/concepts/services-networking/service/
• Ingress
https://kubernetes.io/docs/concepts/services-networking/ingress/
13GDG Cloud Bangkok
Volume
• Volume
https://kubernetes.io/docs/concepts/storage/volumes/
• Persistent Volume and Persistent Volume Claim
https://kubernetes.io/docs/concepts/storage/persistent-volumes/
• Storage Class
https://kubernetes.io/docs/concepts/storage/storage-classes/
14GDG Cloud Bangkok
Security
• Network Policy
https://ahmet.im/blog/kubernetes-network-policy/
• Secret both file and env
https://kubernetes.io/docs/concepts/configuration/secret/
15GDG Cloud Bangkok
Troubleshooting, Monitoring/Logging
• Debug with kubectl describe
https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application-introspection/
• Logging with kubectl logs
16GDG Cloud Bangkok
Tips
• Practice, practice and practice
• Question 60% is for developer and 40% is for administrator
• Kubernetes version is 1.6.2 so watch out for compatibility and apiVersion
• kubectl explain is your friend
• Questions is an independent task so you can go back and forward
• Create manifest file for each question
• Challege yourself with
https://github.com/kelseyhightower/kubernetes-the-hard-way
17GDG Cloud Bangkok

More Related Content

What's hot

The Power of GitOps with Flux & GitOps Toolkit
The Power of GitOps with Flux & GitOps ToolkitThe Power of GitOps with Flux & GitOps Toolkit
The Power of GitOps with Flux & GitOps Toolkit
Weaveworks
 

What's hot (20)

Ansible presentation
Ansible presentationAnsible presentation
Ansible presentation
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
The Power of GitOps with Flux & GitOps Toolkit
The Power of GitOps with Flux & GitOps ToolkitThe Power of GitOps with Flux & GitOps Toolkit
The Power of GitOps with Flux & GitOps Toolkit
 
Introduction to Kubernetes with demo
Introduction to Kubernetes with demoIntroduction to Kubernetes with demo
Introduction to Kubernetes with demo
 
Kubernetes Architecture
 Kubernetes Architecture Kubernetes Architecture
Kubernetes Architecture
 
Kubernetes 101
Kubernetes 101Kubernetes 101
Kubernetes 101
 
Kubernetes - introduction
Kubernetes - introductionKubernetes - introduction
Kubernetes - introduction
 
Introduction of Kubernetes - Trang Nguyen
Introduction of Kubernetes - Trang NguyenIntroduction of Kubernetes - Trang Nguyen
Introduction of Kubernetes - Trang Nguyen
 
Kubernetes Architecture and Introduction
Kubernetes Architecture and IntroductionKubernetes Architecture and Introduction
Kubernetes Architecture and Introduction
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
Helm - Application deployment management for Kubernetes
Helm - Application deployment management for KubernetesHelm - Application deployment management for Kubernetes
Helm - Application deployment management for Kubernetes
 
Kubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory GuideKubernetes for Beginners: An Introductory Guide
Kubernetes for Beginners: An Introductory Guide
 
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
 
Kubernetes - Security Journey
Kubernetes - Security JourneyKubernetes - Security Journey
Kubernetes - Security Journey
 
Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...
Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...
Kubernetes Interview Questions And Answers | Kubernetes Tutorial | Kubernetes...
 
Getting Started with Kubernetes
Getting Started with Kubernetes Getting Started with Kubernetes
Getting Started with Kubernetes
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Introduce to Terraform
Introduce to TerraformIntroduce to Terraform
Introduce to Terraform
 
Introduction to kubernetes
Introduction to kubernetesIntroduction to kubernetes
Introduction to kubernetes
 
Helm 3
Helm 3Helm 3
Helm 3
 

Similar to What you have to know about Certified Kubernetes Administrator (CKA)

Similar to What you have to know about Certified Kubernetes Administrator (CKA) (20)

Container orchestration and microservices world
Container orchestration and microservices worldContainer orchestration and microservices world
Container orchestration and microservices world
 
Kubernetes at (Organizational) Scale
Kubernetes at (Organizational) ScaleKubernetes at (Organizational) Scale
Kubernetes at (Organizational) Scale
 
Kubernetes Problem-Solving
Kubernetes Problem-SolvingKubernetes Problem-Solving
Kubernetes Problem-Solving
 
Bootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptxBootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptx
 
Scalable Clusters On Demand
Scalable Clusters On DemandScalable Clusters On Demand
Scalable Clusters On Demand
 
Kubecon seattle 2018 workshop slides
Kubecon seattle 2018 workshop slidesKubecon seattle 2018 workshop slides
Kubecon seattle 2018 workshop slides
 
Deploy 22 microservices from scratch in 30 mins with GitOps
Deploy 22 microservices from scratch in 30 mins with GitOpsDeploy 22 microservices from scratch in 30 mins with GitOps
Deploy 22 microservices from scratch in 30 mins with GitOps
 
6 Months Sailing with Docker in Production
6 Months Sailing with Docker in Production 6 Months Sailing with Docker in Production
6 Months Sailing with Docker in Production
 
Kubernetes Forum Seoul 2019: Re-architecting Data Platform with Kubernetes
Kubernetes Forum Seoul 2019: Re-architecting Data Platform with KubernetesKubernetes Forum Seoul 2019: Re-architecting Data Platform with Kubernetes
Kubernetes Forum Seoul 2019: Re-architecting Data Platform with Kubernetes
 
Kubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containersKubernetes - how to orchestrate containers
Kubernetes - how to orchestrate containers
 
Docker Enterprise Workshop - Technical
Docker Enterprise Workshop - TechnicalDocker Enterprise Workshop - Technical
Docker Enterprise Workshop - Technical
 
Kubernetes20151017a
Kubernetes20151017aKubernetes20151017a
Kubernetes20151017a
 
[WSO2Con EU 2018] Deploying Applications in K8S and Docker
[WSO2Con EU 2018] Deploying Applications in K8S and Docker[WSO2Con EU 2018] Deploying Applications in K8S and Docker
[WSO2Con EU 2018] Deploying Applications in K8S and Docker
 
reBuy on Kubernetes
reBuy on KubernetesreBuy on Kubernetes
reBuy on Kubernetes
 
What's coming in Airflow 2.0? - NYC Apache Airflow Meetup
What's coming in Airflow 2.0? - NYC Apache Airflow MeetupWhat's coming in Airflow 2.0? - NYC Apache Airflow Meetup
What's coming in Airflow 2.0? - NYC Apache Airflow Meetup
 
DevNexus 2015: Kubernetes & Container Engine
DevNexus 2015: Kubernetes & Container EngineDevNexus 2015: Kubernetes & Container Engine
DevNexus 2015: Kubernetes & Container Engine
 
How to Puppetize Google Cloud Platform - PuppetConf 2014
How to Puppetize Google Cloud Platform - PuppetConf 2014How to Puppetize Google Cloud Platform - PuppetConf 2014
How to Puppetize Google Cloud Platform - PuppetConf 2014
 
Kubernetes the deltatre way the basics - introduction to containers and orc...
Kubernetes the deltatre way   the basics - introduction to containers and orc...Kubernetes the deltatre way   the basics - introduction to containers and orc...
Kubernetes the deltatre way the basics - introduction to containers and orc...
 
Netflix Container Scheduling and Execution - QCon New York 2016
Netflix Container Scheduling and Execution - QCon New York 2016Netflix Container Scheduling and Execution - QCon New York 2016
Netflix Container Scheduling and Execution - QCon New York 2016
 
Scheduling a fuller house - Talk at QCon NY 2016
Scheduling a fuller house - Talk at QCon NY 2016Scheduling a fuller house - Talk at QCon NY 2016
Scheduling a fuller house - Talk at QCon NY 2016
 

More from Opsta

More from Opsta (20)

Let's build Developer Portal with Backstage
Let's build Developer Portal with BackstageLet's build Developer Portal with Backstage
Let's build Developer Portal with Backstage
 
Kubernetes Secrets Management on Production with Demo
Kubernetes Secrets Management on Production with DemoKubernetes Secrets Management on Production with Demo
Kubernetes Secrets Management on Production with Demo
 
Introduction of CCE and DevCloud
Introduction of CCE and DevCloudIntroduction of CCE and DevCloud
Introduction of CCE and DevCloud
 
How to build DevSecOps Platform on Huawei Cloud
How to build DevSecOps Platform on Huawei CloudHow to build DevSecOps Platform on Huawei Cloud
How to build DevSecOps Platform on Huawei Cloud
 
Make a better DevOps with GitOps
Make a better DevOps with GitOpsMake a better DevOps with GitOps
Make a better DevOps with GitOps
 
Platform Engineering
Platform EngineeringPlatform Engineering
Platform Engineering
 
Manage Kubernetes Clusters with Cluster API and ArgoCD
Manage Kubernetes Clusters with Cluster API and ArgoCDManage Kubernetes Clusters with Cluster API and ArgoCD
Manage Kubernetes Clusters with Cluster API and ArgoCD
 
Security Process in DevSecOps
Security Process in DevSecOpsSecurity Process in DevSecOps
Security Process in DevSecOps
 
How we can do Multi-Tenancy on Kubernetes
How we can do Multi-Tenancy on KubernetesHow we can do Multi-Tenancy on Kubernetes
How we can do Multi-Tenancy on Kubernetes
 
Scaling DevSecOps Culture for Enterprise
Scaling DevSecOps Culture for EnterpriseScaling DevSecOps Culture for Enterprise
Scaling DevSecOps Culture for Enterprise
 
Introduction to Kubernetes and GKE
Introduction to Kubernetes and GKEIntroduction to Kubernetes and GKE
Introduction to Kubernetes and GKE
 
Introduction to Google Cloud Platform
Introduction to Google Cloud PlatformIntroduction to Google Cloud Platform
Introduction to Google Cloud Platform
 
Managing traffic routing with istio and envoy workshop
Managing traffic routing with istio and envoy workshopManaging traffic routing with istio and envoy workshop
Managing traffic routing with istio and envoy workshop
 
How to pass the Google Certification Exams
How to pass the Google Certification ExamsHow to pass the Google Certification Exams
How to pass the Google Certification Exams
 
How to Become DevOps
How to Become DevOpsHow to Become DevOps
How to Become DevOps
 
DevOps: The Future of Software Development
DevOps: The Future of Software DevelopmentDevOps: The Future of Software Development
DevOps: The Future of Software Development
 
Real World CI/CD with Kubernetes
Real World CI/CD with KubernetesReal World CI/CD with Kubernetes
Real World CI/CD with Kubernetes
 
Journey of Kubernetes Scaling
Journey of Kubernetes ScalingJourney of Kubernetes Scaling
Journey of Kubernetes Scaling
 
DevOps Transformation in Technical
DevOps Transformation in TechnicalDevOps Transformation in Technical
DevOps Transformation in Technical
 
Performance Testing with Tsung
Performance Testing with TsungPerformance Testing with Tsung
Performance Testing with Tsung
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
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
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
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
 

What you have to know about Certified Kubernetes Administrator (CKA)

  • 1. What you have to know about Certified Kubernetes Administrator Jirayut Nimsaeng (Dear) CEO/Founder Opsta GDG Cloud Bangkok 2nd Meetup @ Tencent November 21, 2017 GDG Cloud Bangkok
  • 2. 2GDG Cloud Bangkok ● Jirayut Nimsaeng (Dear) ● Interested in Cloud and Open Source ● Agile Practitioner with DevOps Driven ● CEO and Founder Opsta ● First Certified Kubernetes Administrator in Thailand #whoami
  • 3. 3GDG Cloud Bangkok Facts • Created by Cloud Native Computing Foundation (CNCF) • Cost $300 with one free retake • Online performance-based exam with proctor • Use Kubernetes version 1.6.2 on Ubuntu 16.04 • Exam expected to take 3-4 hours to complete • Passing score is 74% • Certification valid for 2 years • Register here https://www.cncf.io/certification/expert/
  • 4. 4GDG Cloud Bangkok Preparation • PC or Laptop • Clean surface • Windows, MacOS or Linux • Chrome or Chromium Browser • Reliable Internet • Webcam • Microphone • Private space • Passport or ID card • Need 1-3 days for exam reservation
  • 6. 6GDG Cloud Bangkok While Exam • You can browse for anything • No K8s dashboard. You can use only command-line • You can not note down anything except included Notepad • Proctor has an ultimate timer • You can reboot exam server • Use Ctrl+Alt+W instead of Ctrl+W • Copy & Paste key • Linux: select text to copy and paste with middle mouse • Mac: ⌘+C to copy and ⌘+V to paste • Windows: Ctrl+Insert to copy and Shift+Insert to paste • You can use Screen or tmux
  • 7. 7GDG Cloud Bangkok CKA Exam Environment Cluster Members CNI Description k8s 1 CA, 1 etcd, 1 master, 2 worker flannel non-HA k8s cluster Hk8s 1 CA, 3 etcd, 3 master, 1 loadbalancer, 2 worker calico HA k8s cluster bk8s 1 CA, 1 etcd, 1 master, 1 worker flannel non-HA k8s cluster wk8s 1 CA, 1 etcd, 1 master, 2 worker flannel non-HA k8s cluster ek8s 1 CA, 1 etcd, 1 master, 2 worker flannel non-HA k8s cluster fk8s 1 CA, 1 etcd, 1 base node none k8s cluster none missing master node ik8s 1 CA, 1 etcd, 1 master, 1 base node flannel k8s cluster - missing worker node tk8s 1 CA, 1 etcd, 1 master, 1 worker flannel non-HA k8s cluster
  • 8. 8GDG Cloud Bangkok Curriculum • 5% Scheduling • 5% Logging/Monitoring • 8% Application Lifecycle Management • 11% Cluster Maintenance • 12% Security • 7% Storage • 10% Troubleshooting • 19% Core Concepts • 11% Networking • 12% Installation, Configuration & Validation
  • 9. 9GDG Cloud Bangkok Core Concepts • Master Components • kube-api-server • kube-controller-manager • kube-scheduler • Non-master components • kubelet • kube-proxy • Kubernetes Objects • Pod • Service • Ingress • Volume • Namespace • ReplicaSet • Deployment • Job • [CronJob] • [StatefulSet] • [DaemonSet]
  • 10. 10GDG Cloud Bangkok Core Concepts • Namespace is use a lot • Label and Selector • Create multiple containers in Pod with Init Container https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ • Control output https://kubernetes.io/docs/user-guide/kubectl-overview/ • Job https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ • Update and Scaling Deployment • History and Rollback Deployment
  • 11. 11GDG Cloud Bangkok Installation, Configuration and Validation • Create K8s cluster from binaries • Must use token and certificates • Configure to start K8s components with systemd • Use systemctl to enable/disable services • Troubleshooting with K8s log files • Backup and restore etcd • https://github.com/kelseyhightower/kubernetes-the-hard-way
  • 12. 12GDG Cloud Bangkok Networking • Understand the service concept with NodePort type • Find service IP address https://kubernetes.io/docs/concepts/services-networking/service/ • Ingress https://kubernetes.io/docs/concepts/services-networking/ingress/
  • 13. 13GDG Cloud Bangkok Volume • Volume https://kubernetes.io/docs/concepts/storage/volumes/ • Persistent Volume and Persistent Volume Claim https://kubernetes.io/docs/concepts/storage/persistent-volumes/ • Storage Class https://kubernetes.io/docs/concepts/storage/storage-classes/
  • 14. 14GDG Cloud Bangkok Security • Network Policy https://ahmet.im/blog/kubernetes-network-policy/ • Secret both file and env https://kubernetes.io/docs/concepts/configuration/secret/
  • 15. 15GDG Cloud Bangkok Troubleshooting, Monitoring/Logging • Debug with kubectl describe https://kubernetes.io/docs/tasks/debug-application-cluster/debug-application-introspection/ • Logging with kubectl logs
  • 16. 16GDG Cloud Bangkok Tips • Practice, practice and practice • Question 60% is for developer and 40% is for administrator • Kubernetes version is 1.6.2 so watch out for compatibility and apiVersion • kubectl explain is your friend • Questions is an independent task so you can go back and forward • Create manifest file for each question • Challege yourself with https://github.com/kelseyhightower/kubernetes-the-hard-way