Basic usage: k8s-wait-full Deployment my-deployment -f - < deployment-filter.yaml
Run k8s-wait-full --help
for more options.
Example state filter:
status:
availableReplicas: 4
spec:
replicas: 4
selector:
matchLabels:
my-label: label-value
template:
spec:
containers:
- name: my-container
image: my-image
When applied to a deployment, it will match when all following conditions are met:
- Deployment has 4 available replicas,
- Deployment is configured to have 4 replicas,
- Deployment is has label
my-label
with valuelabel-value
, - Deployment has a container named
my-container
that runs imagemy-image
.