From e79d23c022ba0f44502e2110cb4467d98efec95a Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 30 Oct 2024 17:47:06 -0500 Subject: [PATCH] clean up k8s task --- .taskfiles/k8s/Taskfile.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.taskfiles/k8s/Taskfile.yaml b/.taskfiles/k8s/Taskfile.yaml index 49847843..c162d1d9 100644 --- a/.taskfiles/k8s/Taskfile.yaml +++ b/.taskfiles/k8s/Taskfile.yaml @@ -2,14 +2,13 @@ version: "3" tasks: - hubble: - desc: forward the hubble relay + cleanup-pods: + desc: Clean up leftover Pods cmds: - - cilium hubble port-forward & - hubble-ui: - desc: port-forward hubble to 8888 - cmds: - - kubectl port-forward -n kube-system svc/hubble-ui 8888:80 + - for: + matrix: + PHASE: [Failed, Succeeded, Pending] + cmd: kubectl delete pods --field-selector status.phase={{.ITEM.PHASE}} -A --ignore-not-found=true sync-secrets: desc: Sync ExternalSecret resources vars: