mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-05-14 05:22:08 +00:00
Update k8s.py
This commit is contained in:
@@ -260,13 +260,14 @@ EXAMPLES = r'''
|
|||||||
wait_property:
|
wait_property:
|
||||||
property: status.loadBalancer.ingress[*].ip
|
property: status.loadBalancer.ingress[*].ip
|
||||||
|
|
||||||
# Wait for containers inside pod to be running
|
# Wait for container inside a pod to be ready
|
||||||
- name: Create Pod and wait for containers for be running
|
- name: Create Pod and wait for containers to be ready
|
||||||
kubernetes.core.k8s:
|
kubernetes.core.k8s:
|
||||||
template: pod.yaml
|
template: pod.yaml
|
||||||
wait: yes
|
wait: yes
|
||||||
wait_property:
|
wait_property:
|
||||||
property: status.containerStatuses[*].state.running
|
property: status.containerStatuses[*].ready
|
||||||
|
value: "true"
|
||||||
|
|
||||||
# Patch existing namespace : add label
|
# Patch existing namespace : add label
|
||||||
- name: add label to existing namespace
|
- name: add label to existing namespace
|
||||||
|
|||||||
Reference in New Issue
Block a user