2 次代碼提交 68ed32da31 ... b87935ffda

作者 SHA1 備註 提交日期
  Oleg Pykhalov b87935ffda apps: base: workstation: daemonset: Delete restartPolicy. 3 周之前
  Oleg Pykhalov 61a1c2f4ec run-guix-workstation: Do not delete pod. 3 周之前
共有 2 個文件被更改,包括 0 次插入27 次删除
  1. 0 1
      apps/base/workstation/daemonset.yaml
  2. 0 26
      run-guix-workstation.sh

+ 0 - 1
apps/base/workstation/daemonset.yaml

@@ -13,7 +13,6 @@ spec:
         app.kubernetes.io/name: workstation
         app.kubernetes.io/part-of: workstation
     spec:
-      restartPolicy: Never
       automountServiceAccountToken: false
       terminationGracePeriodSeconds: 600
       initContainers:

+ 0 - 26
run-guix-workstation.sh

@@ -2,32 +2,6 @@
 
 set -o nounset -o errexit -o pipefail
 
-if kubectl -n workstation delete --wait=false pod/workstation
-then
-    :
-fi
-
-check()
-{
-    if ssh 192.168.0.192 sudo nerdctl -n k8s.io ps | grep --quiet workstation
-    then
-        return 1
-    else
-        if kubectl -n workstation delete --force pod/workstation
-        then
-            :
-        fi
-    fi
-}
-
-until check
-do
-    sleep 2
-done
-
-cd /home/oleg/.local/share/chezmoi/apps/cluster1/workstation || exit 1
-flux reconcile kustomization workstation
-
 ssh 192.168.0.192 <<'EOF'
 PATH="/home/oleg/.guix-profile/bin:/gnu/store/3q2x34wg1fff833wwzxnagnv7vbfxb0w-jc-1.25.2/bin:$PATH"
 export PATH