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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Deploy via SSH Lokal
|
- name: Deploy Tanpa SSH Tanpa Secrets
|
||||||
run: |
|
run: |
|
||||||
# SSH ke localhost dan jalankan perintah kubectl langsung di VPS
|
echo "=> Mengambil konfigurasi langsung dari host..."
|
||||||
# Ini mem-bypass masalah Secrets dan Kubeconfig Base64
|
# Langsung menggunakan file asli dari VPS
|
||||||
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl apply -f dashdot-deploy.yaml"
|
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||||
ssh -o StrictHostKeyChecking=no root@localhost "KUBECONFIG=/etc/rancher/k3s/k3s.yaml rollout status deployment/dashdot"
|
|
||||||
|
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