Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pwera/argocd-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argocd notes

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 -d

Create 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 2m

List accounts

argocd account list
NAME   ENABLED  CAPABILITIES
admin  true     login

Creating the backup

argocd admin export -n argocd > backup-$(date +"%Y-%m-%d_%H:%M").yml

Restoring the backup

argocd admin import - < backup-2021-09-15_18:16.yml

Port forward

kubectl port-forward pod/argocd-server-5df56f89ff-642c5 -n argocd 8080:8080

Monitor argocd

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install [RELEASE_NAME] prometheus-community/kube-prometheus-stack
apiVersion: 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: metrics

argocd 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

ヾ(⌐■_■)ノ♪

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published