Introduction to Kubernetes
Agenda
In this session, you will learn about:
• Introduction to Kubernetes
• What is Kubernetes?
• Why Kubernetes?
• Getting to know YAML
What is Kubernetes?
• Open source platform designed to automate Deploying, Scaling, and Operating
applications.
• Deploy applications quickly and predictably
• Scale applications on the fly
• Roll out new features seamlessly
• Limit hardware usage
Why Kubernetes?
• At minimum Kubernetes can Schedule and Run application containers on clusters
of Physical or Virtual Servers.
Why Kubernetes?
Kubernetes satisfies common needs for an Applications in Production
• Authentication and Authorization • Rolling updates
• Naming and Discovery of Services • Mounting Storage
• Load Balancing • Secrets and ConfigMaps
• Checking Application Health • Monitoring Resources
• Replicating Application Instances • Accessing and Ingesting Logs
• Horizontal Pod Auto-scaling • Debugging Applications
What does Kubernetes means?
• The name Kubernetes originates from Greek, Meaning Helmsman or Pilot.
• K8s is an abbreviation derived by replacing the 8 letters “kubernetes” with “8”.
Kubernetes is
• Portable
• Extensible
• Self-healing
Kubernetes is
• Portable
• Physical Servers
• Virtual Servers
• Public Cloud
• Private Cloud
• Hybrid Cloud
• Multi Cloud
Kubernetes is
• Extensible
• Modular
• Pluggable
• Hookable
• Composable
Kubernetes is
• Self-healing
• Auto-placement
• Auto-restart
• Auto-replication
• Auto-scaling
What Kubernetes Is Not?
• Kubernetes provides Containerized IaaS but not a complete PaaS!
What is YAML?
• YAML Ain’t Markup Language (depending who you ask) is a human-
readable text-based format for specifying configuration-type
information
• Ex: Kubernetes, SDN, SDS, OpenStack and OpenShift
12
YAML Basic Rules – Syntax
• YAML files extension is .yml or .yaml
• YAML is case sensitive
• YAML does not allow the use of tabs instead it uses 2 spaces
• List members are denoted by a leading hyphen (-)
• Associative arrays are represented using the colon space (:) in the
form key: value
13
Why is YAML in k8s?
• Convenience: You’ll no longer have to add all of your parameters to
the command line
• Maintenance: YAML files can be added to source control, so you can
track changes
• Flexibility: You’ll be able to create much more complex structures
using YAML than you can on the command line
14
Building blocks
One Points