Repository files navigation Helm chart to build a simple metrics exporter for external URLs status and latency
Docker hub account.
Kubernetes cluster, you can create test cluster with minikube .
Create docker image, and tag it with your username prefix.
docker build -t infra-task .
docker tag infra-task:latest < your-username> /infra-task
Login to your docker hub account using command.
```docker login````
Verify docker login config
cat ~ /.docker/config.json
Create kubernetes Secret based on existing Docker credentials.
kubectl create secret generic regcred \
--from-file=.dockerconfigjson=< path/to/.docker/config.json> \
--type=kubernetes.io/dockerconfigjson
Verify secret existence.
kubectl get secret regcred --output=yaml
Push docker image to docker hub
docker push < your-username> /infra-task:latest
Add your docker repo url and secret to Chart values
image :
repository : <your-username>/infra-task
pullPolicy : IfNotPresent
tag : " latest"
imagePullSecrets :
- name : regcred
Install the helm chart to the kubernetes cluster
helm install infra-task ./infra-task --set service-type=NodePort
Follow helm install output instructions to get access to the service or setup appropriate ingress.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.