Skip to content

ahmedsameh/external-urls-metrics-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm chart to build a simple metrics exporter for external URLs status and latency

Prerequisites

  1. Docker hub account.
  2. Kubernetes cluster, you can create test cluster with minikube.

Installation Steps

  1. Create docker image, and tag it with your username prefix.
    docker build -t infra-task .
    docker tag infra-task:latest <your-username>/infra-task
  2. Login to your docker hub account using command. ```docker login````
  3. Verify docker login config
    cat ~/.docker/config.json
  4. 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
  5. Verify secret existence.
    kubectl get secret regcred --output=yaml
  6. Push docker image to docker hub
    docker push <your-username>/infra-task:latest
  7. Add your docker repo url and secret to Chart values
    image:
    repository: <your-username>/infra-task
    pullPolicy: IfNotPresent
    tag: "latest"
    
    imagePullSecrets:
    - name: regcred
  8. Install the helm chart to the kubernetes cluster
    helm install infra-task ./infra-task --set service-type=NodePort
  9. 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

Releases

No releases published

Packages

No packages published