Default Pdb Support
Note
This example is a replication of an Argo Workflow example in Hera.
The upstream example can be found here.
| from hera.workflows import (
Container,
Workflow,
models as m,
)
with Workflow(
generate_name="default-pdb-support-",
entrypoint="pdbcreate",
service_account_name="default",
pod_disruption_budget=m.PodDisruptionBudgetSpec(min_available=9999),
) as w:
Container(
name="pdbcreate",
image="alpine:latest",
command=["sh", "-c"],
args=["sleep 10"],
)
|
| apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: default-pdb-support-
spec:
entrypoint: pdbcreate
serviceAccountName: default
templates:
- name: pdbcreate
container:
image: alpine:latest
args:
- sleep 10
command:
- sh
- -c
podDisruptionBudget:
minAvailable: 9999
|