Compare commits
No commits in common. "8c29462db6a547d83ac4ad44e6025ff18e6aa076" and "f0a1ca5445e0cce6dfd7241cfea2bc19525f076a" have entirely different histories.
8c29462db6
...
f0a1ca5445
2 changed files with 2 additions and 50 deletions
|
|
@ -48,39 +48,17 @@ jobs:
|
||||||
kubectl rollout status deployment/sealed-secrets-controller -n kube-system --timeout=60s
|
kubectl rollout status deployment/sealed-secrets-controller -n kube-system --timeout=60s
|
||||||
|
|
||||||
- name: Apply ArgoCD apps
|
- name: Apply ArgoCD apps
|
||||||
run: |
|
run: kubectl apply -f apps/
|
||||||
for f in apps/*.yaml; do
|
|
||||||
case "$f" in
|
|
||||||
apps/longhorn.yaml) echo "Skipping $f" ;;
|
|
||||||
*) kubectl apply -f "$f" ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Wait for ArgoCD sync
|
- name: Wait for ArgoCD sync
|
||||||
run: |
|
run: |
|
||||||
|
sleep 10
|
||||||
kubectl wait applications \
|
kubectl wait applications \
|
||||||
--all \
|
--all \
|
||||||
--namespace argocd \
|
--namespace argocd \
|
||||||
--for=jsonpath='{.status.health.status}'=Healthy \
|
--for=jsonpath='{.status.health.status}'=Healthy \
|
||||||
--timeout=300s
|
--timeout=300s
|
||||||
|
|
||||||
- name: Debug on failure
|
|
||||||
if: failure()
|
|
||||||
run: |
|
|
||||||
echo "=== Applications ==="
|
|
||||||
kubectl get applications -n argocd
|
|
||||||
echo "=== Pods (all namespaces) ==="
|
|
||||||
kubectl get pods --all-namespaces
|
|
||||||
echo "=== Failed pods logs ==="
|
|
||||||
kubectl get pods --all-namespaces --field-selector=status.phase!=Running,status.phase!=Succeeded \
|
|
||||||
-o jsonpath='{range .items[*]}{.metadata.namespace}{" "}{.metadata.name}{"\n"}{end}' | \
|
|
||||||
while read ns pod; do
|
|
||||||
echo "--- $ns/$pod ---"
|
|
||||||
kubectl logs -n $ns $pod --all-containers --tail=50 2>/dev/null || true
|
|
||||||
done
|
|
||||||
echo "=== Events ==="
|
|
||||||
kubectl get events --all-namespaces --sort-by='.lastTimestamp' | tail -50
|
|
||||||
|
|
||||||
- name: Wait for all deployments
|
- name: Wait for all deployments
|
||||||
run: kubectl wait --for=condition=available --timeout=300s deployment --all --all-namespaces
|
run: kubectl wait --for=condition=available --timeout=300s deployment --all --all-namespaces
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: longhorn
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://charts.longhorn.io
|
|
||||||
chart: longhorn
|
|
||||||
targetRevision: 1.12.0
|
|
||||||
helm:
|
|
||||||
values: |
|
|
||||||
preUpgradeChecker:
|
|
||||||
jobEnabled: false
|
|
||||||
defaultSettings:
|
|
||||||
defaultReplicaCount: 3
|
|
||||||
destination:
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
namespace: longhorn-system
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
Loading…
Add table
Reference in a new issue