How to host Site24x7 docker image into my private container registry
To host Site24x7 docker image into your private container registry,
use the following steps:
-
Log into your
Cloud Container Registry
in the terminal using the below command:
docker login <ur_container_registry_login_server>
-
Enter your username and password when prompted.
-
Pull the
site24x7 docker
image using the following commands:
docker pull site24x7/docker-agent:release1920
docker tag site24x7/docker-agent:release1920 <ur_container_registry_login_server>/kubeagent:private
-
Then push the image to your
Cloud Container Registry using:
docker push <ur_container_registry_login_server>/kubeagent:private
-
Once the image is pushed, download the Site24x7 agent using the
site24x7-agent.yaml
file.
-
Change the image name under the
Containers
section
from
- image: /site24x7/docker-agent:release1920
to
- image: <ur_container_registry_login_server>/kubeagent:private
-
Create a
secret
:
kubectl create secret docker-registry kubeagentsecret --docker-server=<ur_container_registry_login_server> --docker-username=<user_name> --docker-password=<password> --docker-email=<email_id>
-
Now use this '
kubeagentsecret
' in your
site24x7-agent.yaml
file.
-
Create one more section named '
imagePullSecrets'
under the
spec
section of the
DameonSet
kind parallel to the container and volumes section as:
imagePullSecrets:
- name: kubeagentsecret
10. After making these changes, deploy the
site24x7-agent.yaml
file using the below command:
kubectl apply -f site24x7-agent.yaml
Once this setup works, repeat the same steps for the
kubestate metrics
image:
registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.9.2
Related Articles
Licensing for Kubernetes monitoring
The main Kubernetes cluster is considered one basic monitor. For the other components, licensing is done as follows: Each node will consume 2 host licenses. The first 10 containers on each host are free. After that, every 10 additional containers ...
Licensing for Docker (old)
This article contains the licensing model for the customers who signed up before August 2024. Check out this article for more information on the new licensing pattern. Note that the new licensing model applies to users who signed up after August ...
Unable to see my Docker containers on the monitor list page
This case is applicable when your Docker container monitor is listed on the Docker Monitor page instead of the Monitor Status page. Site24x7 will not list the Docker containers along with the other monitors on the home page (the Monitor Status list ...
How to deploy the Site24x7 PHP agent in a Kubernetes environment?
For PHP version 7.0 and above The PHP agent (PHP version 7.0 and above) can be deployed in a Kubernetes environment using any of the following methods. You can also keep the license keys in a configmap to avoid using them in the deployment files. The ...
How does Site24x7 Kubernetes monitor calculate the memory and CPU utilization for pods?
Site24x7 Kubernetes Monitor uses the kubelet API and kube-state-metrics API to collect the metrics related to memory and CPU utilization. For memory utilization, the calculation works as follows: Working set size (WSS) memory usage ...