Update .gitea/workflows/deploy.yaml
Deploy Dashboard Monitor ke K3s / deploy (push) Failing after 7s Details

This commit is contained in:
Administrator 2026-06-22 17:43:20 +08:00
parent 2badbda0a0
commit 302191eb4a
1 changed files with 6 additions and 7 deletions

View File

@ -7,16 +7,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Deploy Tanpa SSH Tanpa Secrets - name: Deploy dengan Konfigurasi Mount
env:
# Memaksa kubectl membaca file yang kita mount di docker-compose
KUBECONFIG: /root/.kube/config
run: | run: |
echo "=> Mengambil konfigurasi langsung dari host..."
# Langsung menggunakan file asli dari VPS
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
echo "=> Menjalankan perintah kubectl..."
# Gunakan path absolut ke kubectl yang terinstal di VPS atau download baru
curl -LO "https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl" curl -LO "https://dl.k8s.io/release/v1.28.2/bin/linux/amd64/kubectl"
chmod +x ./kubectl chmod +x ./kubectl
echo "=> Menjalankan kubectl dengan konfigurasi yang tepat..."
./kubectl get nodes
./kubectl apply -f dashdot-deploy.yaml ./kubectl apply -f dashdot-deploy.yaml
./kubectl rollout status deployment/dashdot ./kubectl rollout status deployment/dashdot