How to deploy Operator with ArgoCD and Kustomize - cniackz/public GitHub Wiki

Objective:

To deploy Operator with ArgoCD and Kustomize

Links:

Steps:

  1. Create cluster:
createcluster nodeport
  1. Install ArgoCD:
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
echo "a"
  1. Expose ArgoCD externally, so you can manage apps with Argo, I suggest NodePort because it is more stable that port-forward but feel free to use any method as long as it works:
  1. Login to ArgoCD:
# To get the password from the k8s Secret
argocd admin initial-password -n argocd
argocd login localhost:30081

Expected:

$ argocd login localhost:30081
WARNING: server certificate had error: tls: failed to verify certificate: x509: certificate signed by unknown authority. Proceed insecurely (y/n)? y 
Username: admin
Password: 
'admin:login' logged in successfully
Context 'localhost:30081' updated
  1. Update password:
argocd account update-password

Expected:

$ argocd account update-password
*** Enter password of currently logged in user (admin): 
*** Enter new password for user admin: 
*** Confirm new password for user admin: 
Password updated
Context 'localhost:30081' updated
  1. Set kind cluster to be used:
argocd cluster add kind-kind --in-cluster

Expected:

$ argocd cluster add kind-kind --in-cluster
WARNING: This will create a service account `argocd-manager` on the cluster referenced by context `kind-kind` with full cluster level privileges. Do you want to continue [y/N]? y
INFO[0002] ServiceAccount "argocd-manager" created in namespace "kube-system" 
INFO[0002] ClusterRole "argocd-manager-role" created    
INFO[0002] ClusterRoleBinding "argocd-manager-role-binding" created 
INFO[0007] Created bearer token secret for ServiceAccount "argocd-manager" 
Cluster 'https://kubernetes.default.svc' added
  1. Create MinIO Operator App:
kubectl create namespace minio-operator
argocd app create minio-operator \
--repo https://github.com/minio/operator.git \
--path resources \
--dest-namespace minio-operator \
--dest-server https://kubernetes.default.svc \
--insecure \
--upsert

Screenshot 2023-10-12 at 5 47 26 PM

Screenshot 2023-10-12 at 5 47 50 PM

Screenshot 2023-10-12 at 5 48 06 PM