Member-only story
Argo CD Metrics Collection with Kubernetes KIND Cluster
This is a tutorial for how to collect Argo CD metrics with Kubernetes KIND Cluster. The demo is trying to use argocd
UI.
For UI, the tutorial is using NodePort
with Kubernetes KIND Cluster to enable end user can login to the Argo CD UI.
Create a KIND Cluster
First we need create a Cluster config for KIND with extraPortMappings
, this can enable NodePort
for this KIND cluster for future access of Argo CD UI.
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 31923
hostPort: 8080
- containerPort: 31925
hostPort: 8082
Save above file as cluster.yaml
and run the following command to deploy the KIND cluster:
kind create cluster --config cluster.yaml --name argocd
The output of the above command can be as follows:
root@gyliu-dev21:~/kind# kind create cluster --config cluster.yaml --name argocd
Creating cluster "argocd" ...
✓ Ensuring node image (kindest/node:v1.21.1) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
Set kubectl context to "kind-argocd"
You can now use your cluster with:
kubectl cluster-info --context kind-argocd
Thanks for using kind! 😊
After the kind create
finished, check all nodes are ready: