SlideShare a Scribd company logo
Kubernetes In 2 Hours
PhuLeTV - DevOps Lead
Agenda
• What is K8s
• Pod – Deployment – Statfulset – Service
• Namespace
• Secret TLS
• Storage
• Private Registry
• How to install and sample
What is Kubernetes
Oh no …
Today is deployment
day, again!
• K8s is an abbreviation
• Open source container cluster manager
• Cloud ready
What is Kubernetes
Oh no …
Today is deployment
day, again!
Workload
Today is deployment
day, again!
Pod = the smallest and simplest unit in the Kubernetes object model
Deployment = keep a set of pods
Service = is a REST object, is a simple Endpoints API that is updated
whenever the set of Pods in a Service changes.
StatefulSet = keep a set of pods, maintains a sticky identity for each of
their Pods.
Workload
K8s Cluster
Node
Pod
Node
Pod
Service
http://172.31.0.2:81
Deployment.
yaml
browser
kubectl
StatfulSet.yaml
Service vs StatefulSet
Today is deployment
day, again!
Namespace
Oh no …
• Kubernetes supports multiple virtual clusters backed by the same physical
cluster.
• Namespaces are intended for use in environments with many users
spread across multiple teams, or projects.
• Namespaces provide a scope for names.
• Names of resources need to be unique within a namespace, but not
across namespaces.
Secret TLS
Oh no …
Today is deployment
day, again!
apiVersion: v1
data:
ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0
ca.key: LS0tLS1CRUdJTiBQUklWQVRFIE
kind: Secret
metadata:
creationTimestamp: 2018-09-08T14:46:33Z
name: printtext-tls
namespace: default
resourceVersion: "2492112"
selfLink: /api/v1/namespaces/default/secrets/printtext-tls
uid: fae77b5e-b375-11e8-9810-02efd033106c
type: Opaque
Secret TLS
Oh no …
Today is deployment
day, again!
Or:
kubectl create secret generic printtext-
tls 
--from-file=ca.crt --from-file=ca.key
Secret TLS
Oh no …
Today is deployment
day, again!
Use secret as environment variable:
apiVersion: v1
kind: Pod
metadata:
name: secret-env-pod
spec:
containers:
- name: mycontainer
image: redis
env:
- name: SECRET_USERNAME
valueFrom:
secretKeyRef:
name: mysecret
key: username
- name: SECRET_PASSWORD
valueFrom:
secretKeyRef:
name: mysecret
key: password
restartPolicy: Never
Storage
Persistent Volume
Label A
Physical
Storage
- NFS
- AWS
EBS
Pod
Volumes:
- PVC
name
StorageClass
Persistent Volume
Claim:
Pod
Volumes:
- PVC
name
Persistent Volume
Label B
Users
Admins
selector
storageClass
Name
Private Registry
Oh no …
Today is deployment
day, again!
How To Install and Sample
Oh no …
Today is deployment
day, again!
ON AWS:
• Using Kops
ON Laptop:
1. Use “kubeadm”
2. Why not minikube ?
3. At least 4GB RAM in your virtual machine.
THANK YOU
www.nashtechglobal.com

More Related Content

PDF
Kubernetes Day 2017 - Build, Ship and Run Your APP, Production !!
PDF
Docker Summit 2016 - Kubernetes: Sweets and Bitters
PDF
Kubernetes dealing with storage and persistence
PPTX
Stateful set in kubernetes implementation & usecases
PDF
Elasticsearch on Kubernetes
PPTX
Containers and CloudStack
PDF
Kubernetes User Group: 維運 Kubernetes 的兩三事
PDF
Scheduling a Kubernetes Federation with Admiralty
Kubernetes Day 2017 - Build, Ship and Run Your APP, Production !!
Docker Summit 2016 - Kubernetes: Sweets and Bitters
Kubernetes dealing with storage and persistence
Stateful set in kubernetes implementation & usecases
Elasticsearch on Kubernetes
Containers and CloudStack
Kubernetes User Group: 維運 Kubernetes 的兩三事
Scheduling a Kubernetes Federation with Admiralty

What's hot (20)

PDF
Kubernetes scheduling and QoS
PDF
Openstack CPI cloudfoundry
PDF
On CloudStack, Docker, Kubernetes, and Big Data…Oh my ! By Sebastien Goasguen...
PDF
Kubernetes stack reliability
PDF
[OpenStack Days Korea 2016] Track4 - Deep Drive: k8s with Docker
PDF
Architecting a Cloud Native Internet Archive
PDF
Node.js and Containers Go Together Like Peanut Butter and Jelly
PPTX
實際架構實踐演化與解決方案
PDF
London Hug 19/5 - Terraform in Production
PDF
Kubernetes Summit 2021: Multi-Cluster - The Good, the Bad and the Ugly
PPTX
Building an external CPI for CloudStack
PDF
Workshop: Deploying and Scaling Node.js with Kubernetes
PDF
Kubernetes Meetup - Seattle 2017-06-01
PDF
Networking in docker
PDF
Virtual training Intro to the Tick stack and InfluxEnterprise
PDF
Web後端技術的演變
PDF
Intro into Rook and Ceph on Kubernetes
PDF
Kubernetes on the Edge / 在邊緣的K8S
PPTX
Taking Cloud to Extremes: Scaled-down, Highly Available, and Mission-critical...
PDF
Building stateful applications on Kubernetes with Rook
Kubernetes scheduling and QoS
Openstack CPI cloudfoundry
On CloudStack, Docker, Kubernetes, and Big Data…Oh my ! By Sebastien Goasguen...
Kubernetes stack reliability
[OpenStack Days Korea 2016] Track4 - Deep Drive: k8s with Docker
Architecting a Cloud Native Internet Archive
Node.js and Containers Go Together Like Peanut Butter and Jelly
實際架構實踐演化與解決方案
London Hug 19/5 - Terraform in Production
Kubernetes Summit 2021: Multi-Cluster - The Good, the Bad and the Ugly
Building an external CPI for CloudStack
Workshop: Deploying and Scaling Node.js with Kubernetes
Kubernetes Meetup - Seattle 2017-06-01
Networking in docker
Virtual training Intro to the Tick stack and InfluxEnterprise
Web後端技術的演變
Intro into Rook and Ceph on Kubernetes
Kubernetes on the Edge / 在邊緣的K8S
Taking Cloud to Extremes: Scaled-down, Highly Available, and Mission-critical...
Building stateful applications on Kubernetes with Rook
Ad

Similar to K8s in 2hours (20)

PDF
What is POD and Kubernetes details Like as
PDF
DevOps in AWS with Kubernetes
PDF
Kubernetes Intro
PPTX
Kubernetes Internals
PDF
Kubernetes From Scratch .pdf
PPTX
DevOps with Kubernetes
PDF
Getting started with kubernetes
PDF
kubernetes.pdf
PDF
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
PPTX
Introduction to Kubernetes
PDF
Kubernetes Basics - ICP Workshop Batch II
PDF
OMG Namespaces! | Raffaele Di Fazio
PPTX
Understanding Kubernetes.pptx
PDF
Deploying PostgreSQL on Kubernetes
PDF
Intro to Kubernetes
PDF
Hands-On Introduction to Kubernetes at LISA17
PPT
Google does containers: Hello Kubernetes - Steve Wong and Vladimir Vivien - D...
PDF
Free GitOps Workshop + Intro to Kubernetes & GitOps
PDF
Kubernetes - Starting with 1.2
PPTX
Introduction kubernetes 2017_12_24
What is POD and Kubernetes details Like as
DevOps in AWS with Kubernetes
Kubernetes Intro
Kubernetes Internals
Kubernetes From Scratch .pdf
DevOps with Kubernetes
Getting started with kubernetes
kubernetes.pdf
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
Introduction to Kubernetes
Kubernetes Basics - ICP Workshop Batch II
OMG Namespaces! | Raffaele Di Fazio
Understanding Kubernetes.pptx
Deploying PostgreSQL on Kubernetes
Intro to Kubernetes
Hands-On Introduction to Kubernetes at LISA17
Google does containers: Hello Kubernetes - Steve Wong and Vladimir Vivien - D...
Free GitOps Workshop + Intro to Kubernetes & GitOps
Kubernetes - Starting with 1.2
Introduction kubernetes 2017_12_24
Ad

Recently uploaded (20)

PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
L1 - Introduction to python Backend.pptx
PDF
Digital Strategies for Manufacturing Companies
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
top salesforce developer skills in 2025.pdf
PPTX
history of c programming in notes for students .pptx
PDF
System and Network Administration Chapter 2
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
ai tools demonstartion for schools and inter college
PDF
AI in Product Development-omnex systems
PDF
How Creative Agencies Leverage Project Management Software.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
How to Choose the Right IT Partner for Your Business in Malaysia
2025 Textile ERP Trends: SAP, Odoo & Oracle
Odoo POS Development Services by CandidRoot Solutions
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Design an Analysis of Algorithms I-SECS-1021-03
How to Migrate SBCGlobal Email to Yahoo Easily
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
L1 - Introduction to python Backend.pptx
Digital Strategies for Manufacturing Companies
Design an Analysis of Algorithms II-SECS-1021-03
wealthsignaloriginal-com-DS-text-... (1).pdf
top salesforce developer skills in 2025.pdf
history of c programming in notes for students .pptx
System and Network Administration Chapter 2
Wondershare Filmora 15 Crack With Activation Key [2025
ai tools demonstartion for schools and inter college
AI in Product Development-omnex systems
How Creative Agencies Leverage Project Management Software.pdf

K8s in 2hours

  • 1. Kubernetes In 2 Hours PhuLeTV - DevOps Lead
  • 2. Agenda • What is K8s • Pod – Deployment – Statfulset – Service • Namespace • Secret TLS • Storage • Private Registry • How to install and sample
  • 3. What is Kubernetes Oh no … Today is deployment day, again! • K8s is an abbreviation • Open source container cluster manager • Cloud ready
  • 4. What is Kubernetes Oh no … Today is deployment day, again!
  • 5. Workload Today is deployment day, again! Pod = the smallest and simplest unit in the Kubernetes object model Deployment = keep a set of pods Service = is a REST object, is a simple Endpoints API that is updated whenever the set of Pods in a Service changes. StatefulSet = keep a set of pods, maintains a sticky identity for each of their Pods.
  • 7. Service vs StatefulSet Today is deployment day, again!
  • 8. Namespace Oh no … • Kubernetes supports multiple virtual clusters backed by the same physical cluster. • Namespaces are intended for use in environments with many users spread across multiple teams, or projects. • Namespaces provide a scope for names. • Names of resources need to be unique within a namespace, but not across namespaces.
  • 9. Secret TLS Oh no … Today is deployment day, again! apiVersion: v1 data: ca.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0 ca.key: LS0tLS1CRUdJTiBQUklWQVRFIE kind: Secret metadata: creationTimestamp: 2018-09-08T14:46:33Z name: printtext-tls namespace: default resourceVersion: "2492112" selfLink: /api/v1/namespaces/default/secrets/printtext-tls uid: fae77b5e-b375-11e8-9810-02efd033106c type: Opaque
  • 10. Secret TLS Oh no … Today is deployment day, again! Or: kubectl create secret generic printtext- tls --from-file=ca.crt --from-file=ca.key
  • 11. Secret TLS Oh no … Today is deployment day, again! Use secret as environment variable: apiVersion: v1 kind: Pod metadata: name: secret-env-pod spec: containers: - name: mycontainer image: redis env: - name: SECRET_USERNAME valueFrom: secretKeyRef: name: mysecret key: username - name: SECRET_PASSWORD valueFrom: secretKeyRef: name: mysecret key: password restartPolicy: Never
  • 12. Storage Persistent Volume Label A Physical Storage - NFS - AWS EBS Pod Volumes: - PVC name StorageClass Persistent Volume Claim: Pod Volumes: - PVC name Persistent Volume Label B Users Admins selector storageClass Name
  • 13. Private Registry Oh no … Today is deployment day, again!
  • 14. How To Install and Sample Oh no … Today is deployment day, again! ON AWS: • Using Kops ON Laptop: 1. Use “kubeadm” 2. Why not minikube ? 3. At least 4GB RAM in your virtual machine.