mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 01:28:11 -03:30
upgrade k8s vers, and add a script for future upgrades
This commit is contained in:
@@ -30,4 +30,4 @@
|
||||
port: 22
|
||||
timeout: 300
|
||||
state: started
|
||||
with_items: ec2.instances
|
||||
with_items: "{{ec2.instances}}"
|
||||
|
||||
@@ -30,4 +30,4 @@
|
||||
|
||||
- name: Wait for SSH to come up
|
||||
wait_for: host={{item.public_ip}} port=22 delay=10 timeout=180 state=started
|
||||
with_items: gce.instance_data
|
||||
with_items: "{{gce.instance_data}}"
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
- name: Pods are running
|
||||
shell: "/usr/local/bin/kubectl get pods --no-headers -o json"
|
||||
register: run_pods_log
|
||||
until: (run_pods_log.stdout | from_json)['items'] | map(attribute = 'status.phase') | join(',') == "Running,Running"
|
||||
until: [ '(run_pods_log.stdout | from_json)["items"] | map(attribute = "status.phase") | join(",") == "Running,Running"' ]
|
||||
retries: 24
|
||||
delay: 5
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
- name: Check pods IP are in correct network
|
||||
assert:
|
||||
that: item | ipaddr(kube_pods_subnet)
|
||||
with_items: pod_ips
|
||||
with_items: "{{pod_ips}}"
|
||||
|
||||
|
||||
- name: Ping between pods is working
|
||||
|
||||
Reference in New Issue
Block a user