fix(suc/talos): k8s wait Ceph cluster

if all Ceph clusters are healthy, surely k8s will also be healthy... right?
This commit is contained in:
JJGadgets
2024-02-08 11:00:27 +08:00
parent c2767d3918
commit 5baae2bac6

View File

@@ -22,7 +22,13 @@ spec:
kubernetes.io/os: "linux"
prepare: &prepare
image: "registry.k8s.io/kubectl:v1.29.1@sha256:59b3035b8826b0a1d5d950588ecc3f33cbc3bb9b5a70735245691a211821a22f"
args: ["wait", "--for=jsonpath='{.status.ceph.health}'='HEALTH_OK'", "cephcluster", "--all", "--all-namespaces"] # if Ceph is completely healthy, surely k8s is healthy, right?
args: # if Ceph is completely healthy, surely k8s is healthy, right?
- "wait"
- |
--for=jsonpath='{.status.ceph.health}'='HEALTH_OK'
- "cephcluster"
- "--all"
- "--all-namespaces"
#image: "ghcr.io/siderolabs/talosctl:${TALOS_VERSION}"
#envs:
# - name: NODE_IP