Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Creating a fast Kubernetes Development Workflow
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Bastian Hofmann
November 13, 2019
Programming
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Creating a fast Kubernetes Development Workflow
Bastian Hofmann
November 13, 2019
More Decks by Bastian Hofmann
See All by Bastian Hofmann
Monitoring in Kubernetes with Prometheus and Grafana
bastianhofmann
0
360
Highly available cross-region deployments with Kubernetes
bastianhofmann
1
170
From source to Kubernetes in 30 minutes
bastianhofmann
0
190
Introduction to Kubernetes
bastianhofmann
1
140
CI/CD with Kubernetes
bastianhofmann
0
240
Creating a fast Kubernetes Development Workflow
bastianhofmann
1
290
Deploying your first Micro-Service application to Kubernetes
bastianhofmann
2
210
Creating a fast Kubernetes Development Workflow
bastianhofmann
0
270
Dive-In-Workshop: Kubernetes
bastianhofmann
0
450
Other Decks in Programming
See All in Programming
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
400
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
260
技術的負債解消で開発者の未来を開く- AIの力でコード刷新
kmd2kmd
0
110
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.3k
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
200
Creating Composable Callables in Contemporary C++
rollbear
0
150
The ROI of Quarkus for Spring Boot Applications
hollycummins
0
120
エンジニアと一緒にテストコードの設計と実装を改善した話
mototakatsu
0
210
並列実装の現場、2ヶ月間実務でAIを使い倒したAIもPCも私も限界が近い
ming_ayami
0
130
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
170
Dataformのリポジトリを立ち上げるときにまずやること / dataform-day0-2026
snhryt
0
170
Lessons from Spec-Driven Development
simas
PRO
0
210
Featured
See All Featured
Paper Plane
katiecoart
PRO
1
51k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
630
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
AI: The stuff that nobody shows you
jnunemaker
PRO
8
720
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
200
First, design no harm
axbom
PRO
2
1.2k
30 Presentation Tips
portentint
PRO
1
330
Discover your Explorer Soul
emna__ayadi
2
1.1k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
600
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
340
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Transcript
@BastianHofmann Creating a fast Kubernetes Development Workflow Bastian Hofmann
None
Container orchestration platform
Deploy, run and scale your services in isolated containers
No vendor lock in
Runs on
Your laptop
Bare metal
Cloud Providers
And if you don't want to install and maintain Kubernetes
yourself
Managed Kubernetes
None
Standardized APIs
It works the same everywhere*
It works the same everywhere* *mostly
This talk is about how to use Kubernetes
Not only for production workloads
But in your development workflows
Goal: Development environment as close to production as possible
Kubernetes' standardized API makes this easier
Agenda
Deployment of a micro-service application
Some tools to help with local development of this application
on Kubernetes
Let's have a look at the sample application
None
OpenStack Cloud LoadBalancer NGINX Ingress Controller NGINX Ingress Controller NGINX
Ingress Controller web-application web-application MySQL Primary MySQL Secondary quote-svc quote-svc hello-svc hello-svc
external-dns to create DNS entries automatically
cert-manager to retrieve Let's Encrypt certificates automatically
Database is managed by an Operator
MySQL Operator MySQLCluster MySQL pods MySQL statefulset Kubernetes controller manager
Discovers Creates Creates Discovers Monitors and manages
If you are interested in the code and how to
set it up: https:/ /github.com/syseleven/ golem-workshop
Demo
Writing this YAML files is tedious
YAML files are tied to a specific version and a
specific environment
Production
Staging
Development
Per Development team
Per branch
Per developer
We need to maintain multiple, very similar YAML files with
slightly different versions and configuration
"Templating"
Great tools because of standardized Kubernetes API
Helm
None
Allows to install applications
So called "charts"
$ helm install stable/wordpress \ --name my-blog \ --namespace blog
Charts can depend on other charts
Multiple deployments of one chart possible
Different release names
Different namespaces
Configuration with values
None
$ helm install stable/wordpress \ --name my-blog \ --namespace blog
\ -f my-config-values.yaml
Demo
Writing your own charts is fairly easy
Scaffolding to get started
$ helm create quote-svc
Helm lint
Helm kubeval
Helm test
Demo
Alternatives: Kustomize
This works now great for production or staging or CI
Still, for development:
Make a code change
Build docker image
Push docker image
Run helm install/upgrade with new image version
Can this be quicker?
Run everything locally
docker-compose
Duplication of the definition of how to run a container
Inconsistencies
If you have a lot of services, you have to
run a lot locally
Some services locally, some remote
Service Discovery
Not every service is exposed to the Internet
Shared resources with other developers?
Other options?
Tilt
$ tilt up
Watches for code changes
Rebuilds docker image
Deploys to Kubernetes
Sets up port-forwarding
Can sync changed files directly into a running container
Demo
Alternatives: Skaffold Garden
Debugging containers
Most containers do not have all the debugging tools included
Kubectl debug
Debugging network traffic between containers
Kubectl sniff
Demo
Another approach
None
Creates a two-way proxy between the Kubernetes cluster and you
$ telepresence T: Starting proxy with method 'vpn-tcp'... @fhgbvx65xg|bash-3.2$ curl
http://quote-svc/quote | jq '.' [ { "ID": 503, "title": "stefan sagmeister", "content": "<p>...</p>\n", "link": "https://quotesondesign.com/stefan- sagmeister-2/" } ]
Swap a running deployment in the cluster with a local
process
... or a locally running docker container
$ telepresence --swap-deployment quote-svc --namespace dev-flow-demo --expose 3000 --run npm
run debug T: Starting proxy with method 'vpn-tcp',... T: Forwarding remote port 3000 to local port 3000.... >
[email protected]
debug /Users/bhofmann/forge_test/quote- svc > nodemon --inspect quote-svc.js [nodemon] watching: *.* [nodemon] starting `node --inspect quote-svc.js` Debugger listening on ws://127.0.0.1:9229/83aa27ac- d879-4b50-a228-440354cca791 quote svc listening on port 3000!
Demo
Summary
Powerful
Great tooling because of common APIs
Especially great if you have multiple services and don't want
to run everything locally
Test it 30 days For free Visit us at our
booth
[email protected]
https:/ /twitter.com/BastianHofmann http:/ /speakerdeck.com/u/bastianhofmann https:/ /github.com/syseleven/golem-workshop