kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
brew install argocd
curl -sSL -o argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
chmod +x argocd
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
kubectl port-forward svc/argocd-server -n argocd 8080:443
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
Open your UI on 127.0.0.1:8080, and type:
- account: admin
- password: decoded password you get in previous instruction.
- Press
NEW APP
button - Press
EDIT AS YAML
button - add setting
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: tsmc
spec:
destination:
name: ''
namespace: default
server: 'https://kubernetes.default.svc'
source:
path: tsmc
repoURL: 'https://github.com/gamerslouis/cloudnative_helm_charts.git'
targetRevision: HEAD
project: default
syncPolicy:
automated:
prune: false
selfHeal: false
- Done. (You can check your k8s)
- Get
password
kubectl get secret tsmc-grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
- port forward
kubectl port-forward service/tsmc-grafana 3000:80
- Login with admin and
password