fix: add hr-restart task
This commit is contained in:
1 parent
482a5a3afe
commit
6d22dfdb33
1 file changed
+6
@@ -28,6 +28,12 @@ tasks:
|
|||||||
- flux reconcile -n flux-system source git flux-cluster
|
- flux reconcile -n flux-system source git flux-cluster
|
||||||
- flux reconcile -n flux-system kustomization flux-cluster
|
- flux reconcile -n flux-system kustomization flux-cluster
|
||||||
|
|
||||||
|
hr-restart:
|
||||||
|
desc: Restart all failed Helm Releases
|
||||||
|
cmds:
|
||||||
|
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -l bash -c 'flux suspend hr $0 -n $1'
|
||||||
|
- kubectl get hr --all-namespaces | grep False | awk '{print $2, $1}' | xargs -l bash -c 'flux resume hr $0 -n $1'
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
desc: List all the nodes in your cluster
|
desc: List all the nodes in your cluster
|
||||||
cmds:
|
cmds:
|
||||||
|
|||||||
Reference in new issue
Block a user