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
2badbda0a0
commit
302191eb4a
|
|
@ -7,16 +7,15 @@ jobs:
|
|||
steps:
|
||||
- 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: |
|
||||
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
|
||||
|
||||
echo "=> Menjalankan kubectl dengan konfigurasi yang tepat..."
|
||||
./kubectl get nodes
|
||||
./kubectl apply -f dashdot-deploy.yaml
|
||||
./kubectl rollout status deployment/dashdot
|
||||
Loading…
Reference in New Issue