SlideShare a Scribd company logo
Kubernetes basics
Kubernetes basics
1. Cluster
2. Namespaces
3. Working with a cluster
4. Everything runs on Nodes
5. Pod
6. Service / Deployment
7. Horizontal Pod Autoscaler
8. Deployment strategy
9. Ingress
10. Persistent Volume Claim
11. Configmap
12. Statefullset
13. Job
14. Cron
15. Loadtesting
16. Monitoring
17. Logs
Blogpost
with some o
this content
Clusters
4
Cluster creation
Manual in Code
5
Working with clusters
Tools for the job
Namespaces
Everything runs on Nodes
Pod
Real life example:
Pod - Service - Deployment - Autoscaling
Pod - Service - Deployment - Autoscaling
NEED TO KNOW: HPA needs resource limitations set on
pods & CPU < 1 will throttle your system.
11
Kubernetes - autoscaling
The cool stuff
Describe the
HPA
Defined the pods as a deployment
With resources
✨ cool stuff 💫
12
Kubernetes - Deployment strategy
✨ more cool stuff 💫
13
Drupal & Zero downtime deploys
Schema updates
No Schema updates
14
Drupal Zero downtime deploys
15
Ingress
16
Persistent Volume Claim
Pod
Pod
PVC
Volume
Claim
Volume
eg:
/sites/default/files
/tmp
/private
17
Configmap
MAIN USE
Especially practical if you want to use an
external docker container image (eg memcache or varnish)
with your specific config (without creating your own images)
18
Configmap
PRACTICAL FOR DEBUGGING
Also super practical to add php.ini or nginx or apache config to your
custom images.
This adds the possibility to fiddle on an (obviously not production)
environment with the config without a full build + deployment (which is
slow).
Change configmap + delete pod (triggers recreate with new config)
19
StatefullSet
Statefullset
State
POD 2
POD 1
time
20
StatefullSet
eg: memcache or redis
21
Job
PHP-Pod
Job
PHP-Pod
22
Cron
Cronjob
Job
Pod
Job
Pod
Every X, create
23
Cron
24
Loadtesting (job)
Put some traffic into it
Rolling deploys
Autoscaling
Filemounts
Reverse proxy cache
Object Cache
Cron
Deployment
K6 Loadtesting
Monitoring sidecar
25
Monitoring
⚠ ⚠ ⚠ Sidecars Prevent killing of pods.
https://medium.com/finnovate-io/how-to-prevent-kubernetes-cron-jobs-with-sidecar-containers-from-getting-
stuck-912c0f1497a3
26
Logs
Infra as code
Infra as code
This is the representation of the above kubernetes concept specifically for (normal) drupal
drupal-helm-charts-k8s
Pitfalls
W
a
r
n
i
n
g
Fix your version
All of a sudden you’re running a newer version of varnish in your cluster
, this is something you want to test!
Pitfalls
W
a
r
n
i
n
g
# Validate helm to not leave a broken state.
- name: DRY RUN
run: |
cd helm
helm upgrade --dry-run --timeout 15m --install -n ${{
inputs.app_key }}-${{ inputs.environment }} -f values-${{
inputs.environment }}.yaml --set deploy.runid=${{ github.run_id }}
--set image.tag=${{ inputs.version }} --set image.version=${{
inputs.version }} ${{ inputs.app_key }} .
It’s not always correct (sometimes deploys still fail) but will fail if your
syntax is wrong in your overrides and will prevent you bringing
everything down.
Do this before the actual deploy!
Pitfalls
W
a
r
n
i
n
g
- name: DRY RUN
run: |
cd helm
helm upgrade --dry-run --timeout 15m --install -n ${{
inputs.app_key }}-${{ inputs.environment }} -f values-${{
inputs.environment }}.yaml --set deploy.runid=${{ github.run_id }}
--set image.tag=${{ inputs.version }} --set image.version=${{
inputs.version }} ${{ inputs.app_key }} .
Pitfalls
W
a
r
n
i
n
g
The first month in PRD
The CPU’s were throttling, even with not much load on the
systems.
Only after checking Dynatrace and tweaking the CPU from
500m to 1 the throttling disappeared (response time decrease
& performance increase).
Pitfalls
W
a
r
n
i
n
g
regular POD <VS> Deployment
Use a Deployment if you want the pods to be there after
a cluster rebuild (eg. global outage).
Obviously we learned this the hard way.

More Related Content

PDF
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
PPTX
Dayta AI Seminar - Kubernetes, Docker and AI on Cloud
PPTX
Deploying Foreman in Enterprise Environments
PDF
DCEU 18: Developing with Docker Containers
PDF
Using Docker For Development
PDF
Master your java_applications_in_kubernetes
PDF
OpenNebula, the foreman and CentOS play nice, too
PDF
Scaling docker with kubernetes
Drupaljam 2017 - Deploying Drupal 8 onto Hosted Kubernetes in Google Cloud
Dayta AI Seminar - Kubernetes, Docker and AI on Cloud
Deploying Foreman in Enterprise Environments
DCEU 18: Developing with Docker Containers
Using Docker For Development
Master your java_applications_in_kubernetes
OpenNebula, the foreman and CentOS play nice, too
Scaling docker with kubernetes

Similar to [k8s] Kubernetes terminology (1).pdf (20)

PPTX
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
PPTX
Uri Cohen & Dan Kilman, GigaSpaces - Orchestration Tool Roundup - OpenStack l...
PDF
PDF
reBuy on Kubernetes
PDF
Ansible & Salt - Vincent Boon
PPTX
Start tracking your ruby infrastructure
PPTX
Production Grade Kubernetes Applications
PDF
Deploying PostgreSQL on Kubernetes
PPTX
Ultimate Survival - React-Native edition
PDF
Smoking docker
PPTX
Kubernetes Navigation Stories – DevOpsStage 2019, Kyiv
PDF
[HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes]
PDF
Docker and DevOps --- new IT culture
PDF
Docker 進階實務班
PPTX
K8s in 3h - Kubernetes Fundamentals Training
PDF
Trust, but verify | Testing with Docker Containers
PDF
廣宣學堂: 容器進階實務 - Docker進深研究班
PPTX
Toolbox of a Ruby Team
PDF
PDXPortland - Dockerize Django
PDF
Kubernetes: training micro-dragons for a serious battle
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
Uri Cohen & Dan Kilman, GigaSpaces - Orchestration Tool Roundup - OpenStack l...
reBuy on Kubernetes
Ansible & Salt - Vincent Boon
Start tracking your ruby infrastructure
Production Grade Kubernetes Applications
Deploying PostgreSQL on Kubernetes
Ultimate Survival - React-Native edition
Smoking docker
Kubernetes Navigation Stories – DevOpsStage 2019, Kyiv
[HKOSCon x COSCUP 2020][20200801][Ansible: From VM to Kubernetes]
Docker and DevOps --- new IT culture
Docker 進階實務班
K8s in 3h - Kubernetes Fundamentals Training
Trust, but verify | Testing with Docker Containers
廣宣學堂: 容器進階實務 - Docker進深研究班
Toolbox of a Ruby Team
PDXPortland - Dockerize Django
Kubernetes: training micro-dragons for a serious battle
Ad

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Modernizing your data center with Dell and AMD
PPTX
Big Data Technologies - Introduction.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Cloud computing and distributed systems.
A Presentation on Artificial Intelligence
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Review of recent advances in non-invasive hemoglobin estimation
Understanding_Digital_Forensics_Presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Monthly Chronicles - July 2025
Modernizing your data center with Dell and AMD
Big Data Technologies - Introduction.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Cloud computing and distributed systems.
Ad

[k8s] Kubernetes terminology (1).pdf