-
Notifications
You must be signed in to change notification settings - Fork 0
How to deploy Operator with ArgoCD and Kustomize
Cesar Celis Hernandez edited this page Oct 12, 2023
·
1 revision
To deploy Operator with ArgoCD and Kustomize
- https://github.com/cniackz/public/wiki/How-to-deploy-MinIO-with-ArgoCD-in-k8s
- https://kubebyexample.com/learning-paths/argo-cd/argo-cd-working-kustomize
- https://subnet.min.io/issues/9690
- Create cluster:
createcluster nodeport
- Install ArgoCD:
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
echo "a"
- Expose ArgoCD externally, so you can manage apps with Argo, I suggest
NodePort
because it is more stable thatport-forward
but feel free to use any method as long as it works:
- 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
- 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
- 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
- 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