SlideShare a Scribd company logo
MAKE

MONEY

MATTER.
Kubernetes Operations
By Kasper Nissen (@phennex), DevOps Engineer @thelunarway
MAKE

MONEY

MATTER.
Kubernetes Operations
By Kasper Nissen (@phennex), DevOps Engineer @thelunarway
Vision
We're living in the era of mobile/digital only – we believe
banking and commerce should to.
Therefore, our vision is to rethink the interaction with money
and defining a complete new category - by introducing a new
money app.
It’s the complex coordination between banking services and
commerce use:
– How I save money.
– How I get money.
– How I spend money.
Product “
We own
the data.
Kasper Nissen
DevOps & Infrastructure Engineer @thelunarway
Experience
DevOps & Infrastructure Engineer @ LEGO (CITMABIS) (oursourced by
IT Minds) for 5 months
Senior/Software Engineer @ IT Minds (~4 years part time)
Master thesis: KubeCloud - A Small-Scale Tangible Cloud Computing
Environment.

Interview with Software Engineering Daily: bit.ly/2paZ5lg
Blogging about Cloud Native Tech @ www.kubecloud.io
M. Eng. Computer Technology from Aarhus University - Department of
Engineering.
B. Eng. Information and Communication Technology from Aarhus
University - School of Engineering
WHAT IS
KUBERNETES?
Written by: Matt Butcher Illustrated by: Bailey Beougher
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
Kubernetes Kops - Automation Night
WHAT DOES IT DO?
Node Node Node Node Node
Node Node Node Node Node
big dataapp Bapp A database
datacenter
Cluster Manager
WHY ARE WE USING IT AT LUNAR WAY?
Freedom
Squads can deploy and more or less implement
how they see fit
Autonomous services
Squads can work independent of other squads
Continuous Delivery
Kubernetes allows us to deploy multiple times
a day. It’s easy to rollback in case something
went wrong
Flexibility
We run many different type of workloads in the
cluster. Gives us mobility to become cloud
agnostic
Scalable infrastructure
Scaling the infrastructure is easy, both on
node and container level
High availability
Kubernetes takes care of container
failures, AWS Auto Scaling groups takes
care of node failures
Easy maintenance
We are using Kubernetes Operations to
help us spin up our clusters, and maintain
them.
👍🎉
THAT’S GREAT,

BUT HOW DO I GET
STARTED? 🤓
KUBERNETES
OPERATIONS
AKA.
KOPS
WHAT IS THAT? 😱
THINK OF IT AS
KUBECTL FOR
CLUSTERS 👏
kubectl get pods
NAME READY STATUS RESTARTS AGE
dns-controller 1/1 Running 0 13d
etcd-server-events-ip 1/1 Running 0 13d
etcd-server-ip 1/1 Running 0 13d
kube-apiserver-ip 1/1 Running 0 13d
kube-controller-manager 1/1 Running 0 13d
kops get cluster
$ kops get cluster
NAME CLOUD ZONES
private-k8s-cluster aws eu-west-1a,eu-west-1b,eu-west-1c
WHAT CAN I DO
WITH IT?
kops helps you create,
destroy, upgrade and
maintain production-grade,
highly available, Kubernetes
clusters from the command
line
WHERE?
AWS (Officially supported)
GCP (alpha)
VMWARE vSPHERE (alpha)
FEATURES?
•Automates the provisioning of Kubernetes clusters in
(AWS)
•Deploys Highly Available (HA) Kubernetes Masters
•Supports upgrading from kube-up
•Built on a state-sync model for dry-runs and automatic
idempotenc
•Ability to generate configuration files for AWS
CloudFormation and Terraform configuration
•Supports custom Kubernetes add-ons
•Command line autocompletion
•Community supported!
LET’S BUILD SOME
CLUSTERS
PREREQUISUITES.
IAM USER
AmazonEC2FullAccess
AmazonRoute53FullAccess
AmazonS3FullAccess
IAMFullAccess
AmazonVPCFullAccess
ROUTE53 HOSTED ZONE
SETUP
Follow the guide:
https://github.com/kubernetes/kops/blob/
master/docs/aws.md
https://github.com/kaspernissen/kops-demo
Videos: http://bit.ly/2tmWOCF
DEMO 1:
SINGLE MASTER IN PUBLIC
ZONE
3 NODES
s3://phennex-state-store
VPC
api.public-single-master.phennex.com
kubectlkops
autoscaling group autoscaling group
eu-west-1a
public
$ kops create cluster 
--name $KOPS_NAME 
--state $KOPS_STATE_STORE 
--dns-zone $PUBLIC_HOSTED_ZONE_ID 
--node-count 3 
--zones eu-west-1a 
--master-zones eu-west-1a 
--cloud aws 
--node-size t2.medium 
--master-size t2.medium 
--yes
Kubernetes Kops - Automation Night
DEMO 2:
MULTIPLE MASTERS IN
PRIVATE ZONES
3 NODES
s3://phennex-state-store
VPC
api.private-multiple-masters.phennex.com
kubectl
kops
autoscaling group
autoscaling group autoscaling group autoscaling group
bastion.private-multiple-masters.phennex.com
eu-west-1a eu-west-1b eu-west-1c
privatepublic
$ kops create cluster 
--name $KOPS_NAME 
--state $KOPS_STATE_STORE 
--node-count 3 
--dns-zone $PRIVATE_HOSTED_ZONE_ID 
--zones eu-west-1a,eu-west-1b,eu-west-1c 
--master-zones eu-west-1a,eu-west-1b,eu-west-1c 
--cloud aws 
--node-size t2.medium 
--master-size t2.medium 
--bastion 
--topology private 
--networking weave 
--yes
Kubernetes Kops - Automation Night
AWESOME!
THAT WAS EASY… 👍
WHAT IF YOU WANT YOUR
CLUSTER TO RUN IN AN
EXISTING VPC?
http://kubecloud.io/setup-
ha-k8s-kops/
MANY MORE
CONFIGURATION OPTIONS
TO CHOOSE FROM…
--cloud-labels ”Team=Dev”
--image some-image (Ubuntu, CentOS, RHEL7, CoreOS)
--networking calico, flannel
--node-security-groups
--master-security-groups
--admin-access <SOME IP>
--ssh-public-key=/Users/..
--out=. 
--target=terraform
WHAT ABOUT UPGRADING?
$ kops upgrade cluster
YOU CAN ALWAYS EDIT YOUR
CLUSTER CONFIGURATION
$ kops edit cluster
$ kops edit ig --name=<CLUSTER> nodes
ROLLING UPDATES

(default pretty bad!) Use feature flag:


$ export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
$ kops rolling-update cluster
Kubernetes Kops - Automation Night
SCALING THE CLUSTER
$ kops edit ig --name $KOPS_NAME nodes
Kubernetes Kops - Automation Night
EXTRA…

(if we have time)
Kubernetes Kops - Automation Night
CLEAN UP!
Kubernetes Kops - Automation Night
OTHER SOLUTIONS
COREOS TECHTONIC
OPENSHIFT
KISMATIC
KUBERMATIC
Thank you!
Catch me on Twitter @phennex
Or in the Slack Community: Cloud Native DK (https://cloudnative-dk.herokuapp.com/ )

More Related Content

PDF
Lunar Way and the Cloud Native "stack"
PDF
Two Years In Production With Kubernetes - An Experience Report
PDF
Container orchestration on_aws
PDF
Should developers care about dockerfiles and kubernetes resources
PDF
Kubernetes Operations (KOPS)
PDF
Cloud native aarhus #5
PPTX
Serverless on Kubernetes
PDF
Kubernetes on AWS gone wild
Lunar Way and the Cloud Native "stack"
Two Years In Production With Kubernetes - An Experience Report
Container orchestration on_aws
Should developers care about dockerfiles and kubernetes resources
Kubernetes Operations (KOPS)
Cloud native aarhus #5
Serverless on Kubernetes
Kubernetes on AWS gone wild

What's hot (20)

PDF
Orchestrating VM & Container Deployments
PDF
"On-premises" FaaS on Kubernetes
PPTX
DevOps with Azure, Kubernetes, and Helm Webinar
PDF
KubeCon EU 2016 Keynote: Kubernetes State of the Union
PPTX
CI Implementation with Kubernetes at LivePerson by Saar Demri
PDF
AWS Connect 2017 - Container (feat. AWS)
PDF
DevOps 2015 - Dancing with Chef
PPTX
Kubernetes @ Nanit by Chen Fisher
PPTX
9 ways to consume kubernetes on open stack in 15 mins (k8s meetup)
PDF
Using source code management patterns to configure and secure your Kubernetes...
PDF
Kubernetes on AWS
PDF
CI/CD with Kubernetes, Helm & Wercker (#madScalability)
PDF
Zero downtime deployment of micro-services with Kubernetes
PDF
Autoscaling Kubernetes
PDF
Effective Building your Platform with Kubernetes == Keep it Simple
PDF
Git deep dive – chopping Kubernetes
PPTX
DevOps Days Galway 2017
PPTX
Terraform on Azure
PDF
COSCUP 2017 - infrastructure As Code
PPTX
PuppetConf 2016: Scaling Puppet on AWS ECS with Terraform and Docker – Maxime...
Orchestrating VM & Container Deployments
"On-premises" FaaS on Kubernetes
DevOps with Azure, Kubernetes, and Helm Webinar
KubeCon EU 2016 Keynote: Kubernetes State of the Union
CI Implementation with Kubernetes at LivePerson by Saar Demri
AWS Connect 2017 - Container (feat. AWS)
DevOps 2015 - Dancing with Chef
Kubernetes @ Nanit by Chen Fisher
9 ways to consume kubernetes on open stack in 15 mins (k8s meetup)
Using source code management patterns to configure and secure your Kubernetes...
Kubernetes on AWS
CI/CD with Kubernetes, Helm & Wercker (#madScalability)
Zero downtime deployment of micro-services with Kubernetes
Autoscaling Kubernetes
Effective Building your Platform with Kubernetes == Keep it Simple
Git deep dive – chopping Kubernetes
DevOps Days Galway 2017
Terraform on Azure
COSCUP 2017 - infrastructure As Code
PuppetConf 2016: Scaling Puppet on AWS ECS with Terraform and Docker – Maxime...
Ad

Similar to Kubernetes Kops - Automation Night (20)

PDF
My Learnings on Setting up a Kubernetes Cluster on AWS using Kubernetes Opera...
TXT
Introduction about Kubernates Cluster
PDF
AgileTW Feat. DevOpsTW: 維運 Kubernetes 的兩三事
PPTX
Kubernetes101 - Pune Kubernetes Meetup 6
PPTX
Introduction to Kubernetes
PDF
Kubernetes Basics - ICP Workshop Batch II
PDF
Aws + kubernetes = ❤︎
PDF
A Deeper Look Into How Kubernetes Works.pdf
PPTX
Introduction to Kubernetes
PDF
Kubernetes: Learning from Zero to Production
PDF
Managing containers at scale
PDF
Kubernetes - A Rising Hero
PDF
Introduction to kubernetes
PDF
MongoDB Ops Manager + Kubernetes
PDF
reBuy on Kubernetes
PPTX
Aws summit 2019 running kubernetes
PDF
Running kubernetes
PPTX
Data weekender deploying prod grade sql 2019 big data clusters
PDF
DevOps in AWS with Kubernetes
PDF
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
My Learnings on Setting up a Kubernetes Cluster on AWS using Kubernetes Opera...
Introduction about Kubernates Cluster
AgileTW Feat. DevOpsTW: 維運 Kubernetes 的兩三事
Kubernetes101 - Pune Kubernetes Meetup 6
Introduction to Kubernetes
Kubernetes Basics - ICP Workshop Batch II
Aws + kubernetes = ❤︎
A Deeper Look Into How Kubernetes Works.pdf
Introduction to Kubernetes
Kubernetes: Learning from Zero to Production
Managing containers at scale
Kubernetes - A Rising Hero
Introduction to kubernetes
MongoDB Ops Manager + Kubernetes
reBuy on Kubernetes
Aws summit 2019 running kubernetes
Running kubernetes
Data weekender deploying prod grade sql 2019 big data clusters
DevOps in AWS with Kubernetes
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
Ad

More from Kasper Nissen (6)

PDF
GitOps - Operation By Pull Request
PDF
Cloud Native CI/CD with GitOps
PDF
Monitoring with prometheus
PDF
IT Minds Mindblown Networking Event 2016
PDF
Google Cloud Platform and Kubernetes
PDF
Let's tak Productivity (Let's talk Apple #4)
GitOps - Operation By Pull Request
Cloud Native CI/CD with GitOps
Monitoring with prometheus
IT Minds Mindblown Networking Event 2016
Google Cloud Platform and Kubernetes
Let's tak Productivity (Let's talk Apple #4)

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
cuic standard and advanced reporting.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPT
Teaching material agriculture food technology
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
Dropbox Q2 2025 Financial Results & Investor Presentation
Reach Out and Touch Someone: Haptics and Empathic Computing
Diabetes mellitus diagnosis method based random forest with bat algorithm
NewMind AI Weekly Chronicles - August'25 Week I
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Understanding_Digital_Forensics_Presentation.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Teaching material agriculture food technology
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Kubernetes Kops - Automation Night