Troubleshooting Guide¶
This guide provides solutions to common issues you might encounter when using the release strategy, ArgoCD, and k3d.
GitHub Actions Workflow Issues¶
PR Automation Workflow Fails¶
Issue: The PR automation workflow fails when pushing a branch.
Solution:
1. Check if you have the correct branch naming convention (feat/* or fix/*)
2. Verify that the GitHub token has the necessary permissions
3. Create the PR manually if needed:
gh pr create --title "Your PR title" --body "Your PR description" --base main
Helm and ArgoCD Tests Workflow Fails¶
Issue: The Helm and ArgoCD tests workflow fails.
Solution: 1. Check if your Helm charts are valid:
helm lint ./charts/fastapi -f ./config/helm/staging.yaml
kubectl apply --dry-run=client -f config/argocd/staging.yaml
ArgoCD Issues¶
Cannot Login to ArgoCD¶
Issue: Unable to login to ArgoCD.
Solution: 1. Reset the admin password:
kubectl -n argocd patch secret argocd-initial-admin-secret \
-p '{"stringData": {"password": "admin"}}'
kubectl rollout restart deployment argocd-server -n argocd
admin and password admin
Cannot Generate ArgoCD API Key¶
Issue: Unable to generate an ArgoCD API key.
Solution: 1. Update the ArgoCD configuration to enable API key generation:
kubectl patch configmap argocd-cm -n argocd --type merge -p '{"data": {"accounts.admin": "apiKey"}}'
kubectl rollout restart deployment argocd-server -n argocd
argocd account generate-token --account admin
Application Not Syncing¶
Issue: ArgoCD application is not syncing.
Solution: 1. Check the application status:
argocd app get <app-name>
argocd app logs <app-name>
argocd app sync <app-name> --force
k3d Issues¶
Cluster Creation Fails¶
Issue: k3d cluster creation fails.
Solution: 1. Check if there are any existing clusters:
k3d cluster list
k3d cluster delete <cluster-name>
k3d cluster create argocd-cluster --servers 1 --agents 1 --port 8082:80@loadbalancer
Port Conflict¶
Issue: Port conflict when creating a k3d cluster.
Solution: 1. Find which process is using the port:
lsof -i :<port>
k3d cluster create argocd-cluster --servers 1 --agents 1 --port <different-port>:80@loadbalancer
Helm Chart Issues¶
Helm Chart Validation Fails¶
Issue: Helm chart validation fails.
Solution: 1. Check the chart for syntax errors:
helm lint ./charts/fastapi
helm lint ./charts/fastapi -f ./config/helm/staging.yaml
Chart Installation Fails¶
Issue: Helm chart installation fails.
Solution: 1. Check the chart dependencies:
helm dependency update ./charts/fastapi
helm template ./charts/fastapi -f ./config/helm/staging.yaml
Need More Help?¶
If you're still experiencing issues, please open an issue on the repository or contact the team for assistance.