Installing on Windows
SET GIT_REPO=https://github.com/Pwera/argocd-notes
SET GIT_TOKEN=<token>
scoop install argocd-autopilot
scoop install argocd
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -dCreate project
argocd-autopilot project create testing
argocd-autopilot app create hello-world --app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ -p testing --wait-timeout 2m
argocd-autopilot app create hello-world2 --app github.com/argoproj-labs/argocd-autopilot/examples/demo-app/ -p testing --wait-timeout 2mList accounts
argocd account list
NAME ENABLED CAPABILITIES
admin true loginCreating the backup
argocd admin export -n argocd > backup-$(date +"%Y-%m-%d_%H:%M").ymlRestoring the backup
argocd admin import - < backup-2021-09-15_18:16.ymlPort forward
kubectl port-forward pod/argocd-server-5df56f89ff-642c5 -n argocd 8080:8080Monitor argocd
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install [RELEASE_NAME] prometheus-community/kube-prometheus-stackapiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: argocd-metrics
labels:
release: prometheus-operator
spec:
selector:
matchLabels:
app.kubernetes.io/name: argocd-metrics
namespaceSelector:
any: true
endpoints:
- port: metricsargocd app create nginx --repo https://charts.bitnami.com/bitnami --helm-chart nginx --revision 13.2.10 --dest-server https://kubernetes.default.svc --dest-namespace nginx
ヾ(⌐■_■)ノ♪