Update .gitea/workflows/deploy.yaml
Deploy Dashboard Monitor ke K3s / deploy (push) Failing after 7s
Details
Deploy Dashboard Monitor ke K3s / deploy (push) Failing after 7s
Details
This commit is contained in:
parent
716307d7f5
commit
2badbda0a0
|
|
@ -7,9 +7,16 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Deploy via SSH Lokal
|
||||
- name: Deploy Tanpa SSH Tanpa Secrets
|
||||
run: |
|
||||
# SSH ke localhost dan jalankan perintah kubectl langsung di VPS
|
||||
# Ini mem-bypass masalah Secrets dan Kubeconfig Base64
|
||||
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl apply -f dashdot-deploy.yaml"
|
||||
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml rollout status deployment/dashdot"
|
||||
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"
|
||||
chmod +x ./kubectl
|
||||
|
||||
./kubectl apply -f dashdot-deploy.yaml
|
||||
./kubectl rollout status deployment/dashdot
|
||||
Loading…
Reference in New Issue