Intro to Kubernetes
Jock Reed, Lead Developer Advocate Cloud Technologies
@JockDaRock
DEVNET-1487
• Introduction
• The Why and What of Kubernetes
• Basic Kubernetes
Agenda • Kubernetes in action
• Resources for Learning
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 2
Jock Reed –
a.k.a.
JockDaRock
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
The Why and
What of
Kubernetes?
1. Easily run lots of
apps/services at the same
time and make sure each one
has all the resources it needs.
2. Quickly move apps to other
compute resources
3. Improve agile software
processes
4. reduce resource waste -
Scale your programs up or
down as needed
5. Large community of support
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 5
1. Containers – Application
Isolation
2. Computer Segmentation /
Infra as Code
3. Internal DNS
4. Database
5. Scaling
6. K8s APIs – Automation for
your further Kubernetes
control
7. K8s likes Microservices
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Basics -
Workloads
1. Pods – Basic Resource Unit
2. Pods – One or Many – Same
STUF Resources
Replication – More is Better
F 3.
and so is less
4. Deployments – Load Balanced
Pods
5. Other Types – StatefulSets,
DaemonSets, etc.
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Basics -
Services
1. Exposes pods/deployments –
to other pods/deployments or
outside access
2. ClusterIP – IntraCluster
Access
3. IntraCluster Access is limited
to namespace
4. NodePort – Ephemeral Port
External Access
5. LoadBalancer – External
Access from IP Pool
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Basics - Ingress
1. Provides access to internal
apps external to k8s cluster
2. Ingress Controller is accessed
as a LoadBalancer service
3. Only http based on standard
ports (80/443)
4. Needs DNS to point to
ingress IP address
5. Ingress Controllers – Nginx,
Traefik, Istio, etc.
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Basics -
Namespaces
1. App groupings
2. Creates Isolation from other
namespaces
3. Sort of like a VLAN
4. Restricted Access
5. Don’t let it be why your
Cluster is Ginormous!
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Basics -
Autoscaling
1. + / - Pods automagically
2. Resource Driven – CPU, Mem
– Know Thy App
3. Define Max and Min
4. Plugins
5. Scale to Zero
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
1. Workloads = App
deployments
2. Services = Exposure
Seven tips 3. Ingress = DNS based access
to Apps
for better
Namespace = Isolation
presentations 4.
5. Autoscaling = The real magic
behind Kubernetes –
Resource Management and
Automation
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
Kubernetes in
action
Resources for Learning
https://go.darock.io/intro2k8s
Seven tips
for better
presentations
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
Cisco Webex App
Questions?
Use Cisco Webex App to chat
with the speaker after the session
How
1 Find this session in the Cisco Live Mobile App
2 Click “Join the Discussion”
3 Install the Webex App or go directly to the Webex space Enter your personal notes here
4 Enter messages/questions in the Webex space
Webex spaces will be moderated
until February 24, 2023.
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Complete your Session Survey
• Please complete your session survey
after each session. Your feedback
is very important.
• Complete a minimum of 4 session
surveys and the Overall Conference
survey (open from Thursday) to
receive your Cisco Live t-shirt.
• All surveys can be taken in the Cisco Events Mobile App or by
logging in to the Session Catalog and clicking the "Attendee
Dashboard” at
https://www.ciscolive.com/emea/learn/sessions/session-
catalog.html
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Continue Your Education
Visit the Cisco Showcase for related demos.
Book your one-on-one Meet the Engineer meeting.
Attend any of the related sessions at the DevNet,
Capture the Flag, and Walk-in Labs zones.
Visit the On-Demand Library for more sessions
at ciscolive.com/on-demand.
DEVNET-1487 © 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public 24
Thank you