Fixed pods variable

This commit is contained in:
GeorgeRaven
2025-05-15 22:33:13 +01:00
parent a254918e16
commit 410524a5da

View File

@@ -58,8 +58,8 @@ tasks:
rook-tools:
desc: "Exec rook-tools container"
cmds:
- kubectl -n rook-ceph exec -it ${PODS} -- ceph status
- kubectl -n rook-ceph exec -it ${PODS} -- bash
- kubectl -n rook-ceph exec -it {{ .PODS }} -- ceph status
- kubectl -n rook-ceph exec -it {{ .PODS }} -- bash
vars:
PODS:
sh: kubectl -n rook-ceph get pod -l "app=rook-ceph-tools" -o jsonpath='{.items[*].metadata.name}'