SlideShare a Scribd company logo
Getting the Jobs Done With
Kubernetes / OpenShift
Maciej Szulik, KubeCon 2016
1 / 20
soltysh @    
maszulik@redhat.com
https://github.com/soltysh/talks/
2 / 20
3 / 20
Job
4 / 20
Job apiVersion: batch/v1
kind: Job
metadata:
name: hello
spec:
template:
metadata:
name: hello
spec:
containers:
- name: hello
image: python:3.5.1
command: ["python", "-c",
"print('Hello world!')"]
restartPolicy: Never
5 / 20
Job
- api
->apiVersion:batch/v1
kind: Job
metadata:
name: job
spec:
template:
metadata:
name: job
spec:
containers:
- name: job
image: python:3.5.1
command: ["python", "-c",
"print('Hello world!')"]
restartPolicy: Never
6 / 20
Job
- api
- command
apiVersion: batch/v1
kind: Job
metadata:
name: job
spec:
template:
metadata:
name: job
spec:
containers:
-> -name:job
image:python:3.5.1
command:["python","-c",
"print('Helloworld!')"]
restartPolicy: Never
7 / 20
Job
- api
- command
- restart policy
apiVersion: batch/v1
kind: Job
metadata:
name: job
spec:
template:
metadata:
name: job
spec:
containers:
- name: job
image: python:3.5.1
command: ["python", "-c",
"print('Hello world!')"]
-> restartPolicy:Never
8 / 20
Job
- api
- command
- restart policy
Always
OnFailure
Never
9 / 20
Job
- api
- command
- restart policy
Always
OnFailure
Never
10 / 20
Job
- api
- command
- restart policy
- pod selector?
apiVersion: batch/v1
kind: Job
metadata:
name: job
spec:
template:
metadata:
name: job
spec:
containers:
- name: job
image: python:3.5.1
command: ["python", "-c",
"print('Hello world!')"]
restartPolicy: Never
11 / 20
Job
- api
- command
- restart policy
- pod selector?
- parallelism /
completions
single jobs
.spec.completions: 1
.spec.parallelism: 1
12 / 20
Job
- api
- command
- restart policy
- pod selector?
- parallelism /
completions
single jobs
.spec.completions: 1
.spec.parallelism: 1
parallel job with a fixed completions count
.spec.completions: 8
.spec.parallelism: 4
13 / 20
Job
- api
- command
- restart policy
- pod selector?
- parallelism /
completions
single jobs
.spec.completions: 1
.spec.parallelism: 1
parallel job with a fixed completions count
.spec.completions: 8
.spec.parallelism: 4
parallel job with a work queue
.spec.completions: <unset>
.spec.parallelism: 4
14 / 20
Use Cases
- data calculations
- image rendering
etc.
15 / 20
Rendering
16 / 20
Render demo
17 / 20
Future
workflow by @sdminonne
indexed jobs by @erictune
scheduled jobs by @soltysh
18 / 20
http://commons.openshift.org/join
19 / 20
Links
soltysh @    
maszulik@redhat.com
http://releases.k8s.io/master/docs/proposals/job.md
http://releases.k8s.io/master/docs/user-guide/jobs.md
20 / 20

More Related Content

PDF
KubeCon EU 2016: Leveraging ephemeral namespaces in a CI/CD pipeline
PDF
KubeCon EU 2016: Using Traffic Control to Test Apps in Kubernetes
PDF
KubeCon EU 2016: Templatized Application Configuration on OpenShift and Kuber...
PPTX
KubeCon EU 2016: Transforming the Government
PPTX
Lifecycle of a pod
PDF
KubeCon EU 2016: Kubernetes and the Potential for Higher Level Interfaces
PDF
A Kong retrospective: from 0.10 to 0.13
PDF
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
KubeCon EU 2016: Leveraging ephemeral namespaces in a CI/CD pipeline
KubeCon EU 2016: Using Traffic Control to Test Apps in Kubernetes
KubeCon EU 2016: Templatized Application Configuration on OpenShift and Kuber...
KubeCon EU 2016: Transforming the Government
Lifecycle of a pod
KubeCon EU 2016: Kubernetes and the Potential for Higher Level Interfaces
A Kong retrospective: from 0.10 to 0.13
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境

What's hot (20)

PDF
Kubernetes debug like a pro
PDF
Drone CI/CD 自動化測試及部署
PDF
Build Your Own CaaS (Container as a Service)
PDF
Introduction of eBPF - 時下最夯的Linux Technology
PDF
Making kubernetes simple for developers
PDF
Istio Playground
PDF
Introduction to CircleCI
PDF
[231] the simplicity of cluster apps with circuit
PDF
Chaos Engineering for Docker
PDF
From a cluster to the Cloud
PDF
Prometheus Everything, Observing Kubernetes in the Cloud
PDF
Monitoring Kubernetes with Prometheus
PDF
Microservices on Kubernetes - The simple way
PDF
Web scale infrastructures with kubernetes and flannel
PDF
KubeCon EU 2016: Creating an Advanced Load Balancing Solution for Kubernetes ...
PDF
TDC2017 | São Paulo - Trilha Containers How we figured out we had a SRE team ...
PPTX
Prometheus: infrastructure and application monitoring in kubernetes cluster
PDF
Kubernetes the Very Hard Way. Lisa Portland 2019
PDF
How the OOM Killer Deleted My Namespace
PDF
gRPC & Kubernetes
Kubernetes debug like a pro
Drone CI/CD 自動化測試及部署
Build Your Own CaaS (Container as a Service)
Introduction of eBPF - 時下最夯的Linux Technology
Making kubernetes simple for developers
Istio Playground
Introduction to CircleCI
[231] the simplicity of cluster apps with circuit
Chaos Engineering for Docker
From a cluster to the Cloud
Prometheus Everything, Observing Kubernetes in the Cloud
Monitoring Kubernetes with Prometheus
Microservices on Kubernetes - The simple way
Web scale infrastructures with kubernetes and flannel
KubeCon EU 2016: Creating an Advanced Load Balancing Solution for Kubernetes ...
TDC2017 | São Paulo - Trilha Containers How we figured out we had a SRE team ...
Prometheus: infrastructure and application monitoring in kubernetes cluster
Kubernetes the Very Hard Way. Lisa Portland 2019
How the OOM Killer Deleted My Namespace
gRPC & Kubernetes
Ad

Viewers also liked (12)

PDF
KubeCon EU 2016: A Practical Guide to Container Scheduling
PDF
KubeCon EU 2016:
PDF
KubeCon EU 2016: Distributed containers in the physical world
PDF
How to Thrive on REST/WebSocket-Based Microservices
PDF
Using kubernetes to lose your fear of using containers
PDF
What's new in Kubernetes
PDF
Secrets in Kubernetes
PPTX
DevOps with Kubernetes
PPTX
Intro to Project Calico: a pure layer 3 approach to scale-out networking
PPTX
KubeCon EU 2016: Secure, Cloud-Native Networking with Project Calico
PDF
WSO2Con US 2015 Kubernetes: a platform for automating deployment, scaling, an...
PDF
Teaching Elephants to Dance (and Fly!) A Developer's Journey to Digital Trans...
KubeCon EU 2016: A Practical Guide to Container Scheduling
KubeCon EU 2016:
KubeCon EU 2016: Distributed containers in the physical world
How to Thrive on REST/WebSocket-Based Microservices
Using kubernetes to lose your fear of using containers
What's new in Kubernetes
Secrets in Kubernetes
DevOps with Kubernetes
Intro to Project Calico: a pure layer 3 approach to scale-out networking
KubeCon EU 2016: Secure, Cloud-Native Networking with Project Calico
WSO2Con US 2015 Kubernetes: a platform for automating deployment, scaling, an...
Teaching Elephants to Dance (and Fly!) A Developer's Journey to Digital Trans...
Ad

Similar to KubeCon EU 2016: Getting the Jobs Done With Kubernetes (20)

KEY
Plack perl superglue for web frameworks and servers
PDF
Automated Image Builds in OpenShift and Kubernetes
PDF
Building Serverless applications with Python
PDF
[2019 south bay meetup] Building more contextual message with Block Kit
PDF
Python Flask app deployed to OPenShift using Wercker CI
PDF
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
PDF
Kube Your Enthusiasm - Paul Czarkowski
PDF
Kube Your Enthusiasm
PDF
Princeton Wintersession: Software Quality Assurance Tooling
PDF
Software Quality Assurance Tooling 2023
PDF
OpenFaaS KubeCon Zero to Serverless in 60 seconds anywhere
PDF
Creating a modern web application using Symfony API Platform Atlanta
PDF
Meetup - Principles of the kube api and how to extend it
PDF
PSGI REST API
PDF
Building applications with Serverless Framework and AWS Lambda - JavaZone 2019
PDF
Cloud Foundry Meetup Stuttgart 2017 - Spring Cloud Development
KEY
LvivPy - Flask in details
PDF
Denys Serhiienko "ASGI in depth"
PDF
Collaboration hack with slackbot - PyCon HK 2018 - 2018.11.24
PDF
Kubernetes - from sketch to production
Plack perl superglue for web frameworks and servers
Automated Image Builds in OpenShift and Kubernetes
Building Serverless applications with Python
[2019 south bay meetup] Building more contextual message with Block Kit
Python Flask app deployed to OPenShift using Wercker CI
Package a PyApp as a Flatpak Package: An HTTP Server for Example @ PyCon APAC...
Kube Your Enthusiasm - Paul Czarkowski
Kube Your Enthusiasm
Princeton Wintersession: Software Quality Assurance Tooling
Software Quality Assurance Tooling 2023
OpenFaaS KubeCon Zero to Serverless in 60 seconds anywhere
Creating a modern web application using Symfony API Platform Atlanta
Meetup - Principles of the kube api and how to extend it
PSGI REST API
Building applications with Serverless Framework and AWS Lambda - JavaZone 2019
Cloud Foundry Meetup Stuttgart 2017 - Spring Cloud Development
LvivPy - Flask in details
Denys Serhiienko "ASGI in depth"
Collaboration hack with slackbot - PyCon HK 2018 - 2018.11.24
Kubernetes - from sketch to production

More from KubeAcademy (20)

PDF
KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes
PDF
KubeCon EU 2016: Trading in the Kube
ODP
KubeCon EU 2016: Integrated trusted computing in Kubernetes
PDF
KubeCon EU 2016: Heroku to Kubernetes
PDF
KubeCon EU 2016: Kubernetes Storage 101
PDF
KubeCon EU 2016: Kubernetes in Production in The New York Times newsroom
PDF
KubeCon EU 2016: ITNW (If This Now What): Orchestrating an Enterprise
PDF
KubeCon EU 2016: SmartCity IoT on Kubernetes
PDF
KubeCon EU 2016 Keynote: Pushing Kubernetes Forward
PDF
KubeCon EU 2016: Killing containers to make weather beautiful
PPTX
KubeCon EU 2016: Multi-Tenant Kubernetes
PDF
KubeCon EU 2016: Bringing an open source Containerized Container Platform to ...
PDF
KubeCon EU 2016: "rktnetes": what's new with container runtimes and Kubernetes
PDF
KubeCon EU 2016: Full Automatic Database: PostgreSQL HA with Kubernetes
PDF
KubeCon EU 2016: A lightweight deployment system for appops
PDF
KubeCon EU 2016: Scaling Open edX with Kubernetes
PDF
KubeCon EU 2016: Custom Volume Plugins
PDF
KubeCon EU 2016: What is OpenStack's role in a Kubernetes world?
PDF
KubeCon EU 2016: Kubernetes meets Finagle for Resilient Microservices
PDF
KubeCon EU 2016 Keynote: Kubernetes State of the Union
KubeCon EU 2016: ChatOps and Automatic Deployment on Kubernetes
KubeCon EU 2016: Trading in the Kube
KubeCon EU 2016: Integrated trusted computing in Kubernetes
KubeCon EU 2016: Heroku to Kubernetes
KubeCon EU 2016: Kubernetes Storage 101
KubeCon EU 2016: Kubernetes in Production in The New York Times newsroom
KubeCon EU 2016: ITNW (If This Now What): Orchestrating an Enterprise
KubeCon EU 2016: SmartCity IoT on Kubernetes
KubeCon EU 2016 Keynote: Pushing Kubernetes Forward
KubeCon EU 2016: Killing containers to make weather beautiful
KubeCon EU 2016: Multi-Tenant Kubernetes
KubeCon EU 2016: Bringing an open source Containerized Container Platform to ...
KubeCon EU 2016: "rktnetes": what's new with container runtimes and Kubernetes
KubeCon EU 2016: Full Automatic Database: PostgreSQL HA with Kubernetes
KubeCon EU 2016: A lightweight deployment system for appops
KubeCon EU 2016: Scaling Open edX with Kubernetes
KubeCon EU 2016: Custom Volume Plugins
KubeCon EU 2016: What is OpenStack's role in a Kubernetes world?
KubeCon EU 2016: Kubernetes meets Finagle for Resilient Microservices
KubeCon EU 2016 Keynote: Kubernetes State of the Union

Recently uploaded (20)

PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Modernizing your data center with Dell and AMD
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
KodekX | Application Modernization Development
PDF
Advanced IT Governance
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The AUB Centre for AI in Media Proposal.docx
MYSQL Presentation for SQL database connectivity
GamePlan Trading System Review: Professional Trader's Honest Take
Review of recent advances in non-invasive hemoglobin estimation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Modernizing your data center with Dell and AMD
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
KodekX | Application Modernization Development
Advanced IT Governance
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation

KubeCon EU 2016: Getting the Jobs Done With Kubernetes

  • 1. Getting the Jobs Done With Kubernetes / OpenShift Maciej Szulik, KubeCon 2016 1 / 20
  • 2. soltysh @     maszulik@redhat.com https://github.com/soltysh/talks/ 2 / 20
  • 5. Job apiVersion: batch/v1 kind: Job metadata: name: hello spec: template: metadata: name: hello spec: containers: - name: hello image: python:3.5.1 command: ["python", "-c", "print('Hello world!')"] restartPolicy: Never 5 / 20
  • 6. Job - api ->apiVersion:batch/v1 kind: Job metadata: name: job spec: template: metadata: name: job spec: containers: - name: job image: python:3.5.1 command: ["python", "-c", "print('Hello world!')"] restartPolicy: Never 6 / 20
  • 7. Job - api - command apiVersion: batch/v1 kind: Job metadata: name: job spec: template: metadata: name: job spec: containers: -> -name:job image:python:3.5.1 command:["python","-c", "print('Helloworld!')"] restartPolicy: Never 7 / 20
  • 8. Job - api - command - restart policy apiVersion: batch/v1 kind: Job metadata: name: job spec: template: metadata: name: job spec: containers: - name: job image: python:3.5.1 command: ["python", "-c", "print('Hello world!')"] -> restartPolicy:Never 8 / 20
  • 9. Job - api - command - restart policy Always OnFailure Never 9 / 20
  • 10. Job - api - command - restart policy Always OnFailure Never 10 / 20
  • 11. Job - api - command - restart policy - pod selector? apiVersion: batch/v1 kind: Job metadata: name: job spec: template: metadata: name: job spec: containers: - name: job image: python:3.5.1 command: ["python", "-c", "print('Hello world!')"] restartPolicy: Never 11 / 20
  • 12. Job - api - command - restart policy - pod selector? - parallelism / completions single jobs .spec.completions: 1 .spec.parallelism: 1 12 / 20
  • 13. Job - api - command - restart policy - pod selector? - parallelism / completions single jobs .spec.completions: 1 .spec.parallelism: 1 parallel job with a fixed completions count .spec.completions: 8 .spec.parallelism: 4 13 / 20
  • 14. Job - api - command - restart policy - pod selector? - parallelism / completions single jobs .spec.completions: 1 .spec.parallelism: 1 parallel job with a fixed completions count .spec.completions: 8 .spec.parallelism: 4 parallel job with a work queue .spec.completions: <unset> .spec.parallelism: 4 14 / 20
  • 15. Use Cases - data calculations - image rendering etc. 15 / 20
  • 18. Future workflow by @sdminonne indexed jobs by @erictune scheduled jobs by @soltysh 18 / 20
  • 20. Links soltysh @     maszulik@redhat.com http://releases.k8s.io/master/docs/proposals/job.md http://releases.k8s.io/master/docs/user-guide/jobs.md 20 / 20