- Kubernetes Design Patterns and Extensions
- Onur Yilmaz
- 161字
- 2021-07-23 16:57:38
Job Pattern
The general use case of pods in Kubernetes is that they are used for long-running processes that are always up. To this aim, Kubernetes provides higher-level resources such as replication sets or deployments. These high-level resources manage the life cycles of pods by creating replicas, checking for health statuses, and controlling update mechanisms. On the other hand, there is a need for microservices that do one job and successfully exit upon completion. For instance, database initializations, backups, or converting a video should run once and exit without consuming any extra resources. For this requirement, Kubernetes provides a higher-level resource named Job. Kubernetes jobs represent an isolated work run until completion and are ideal for use cases that are required to only run once.
- For always running pods, the restartPolicy is set to Always
- For jobs, the restartPolicy could be set as OnFailure or Never
- Oracle SOA Governance 11g Implementation
- Hands-On Internet of Things with MQTT
- 協作機器人技術及應用
- 空間機器人遙操作系統及控制
- Learning Social Media Analytics with R
- 自動檢測與傳感技術
- Apache Hive Essentials
- STM32G4入門與電機控制實戰:基于X-CUBE-MCSDK的無刷直流電機與永磁同步電機控制實現
- INSTANT Drools Starter
- Linux:Powerful Server Administration
- 西門子變頻器技術入門及實踐
- SMS 2003部署與操作深入指南
- Apache源代碼全景分析(第1卷):體系結構與核心模塊
- INSTANT VMware vCloud Starter
- 智慧未來