How to host Site24x7 docker image into my private container registry

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:

  1. Log into your Cloud Container Registry in the terminal using the below command:
    docker login <ur_container_registry_login_server>

  2. Enter your username and password when prompted.

  3. 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
  4. Then push the image to your Cloud Container Registry using:
    docker push <ur_container_registry_login_server>/kubeagent:private

  5. Once the image is pushed, download the Site24x7 agent using the site24x7-agent.yaml file.

  6. Change the image name under the Containers section  
    from
    - image: /site24x7/docker-agent:release1920
    to
    - image: <ur_container_registry_login_server>/kubeagent:private
  1. 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>

  2. Now use this ' kubeagentsecret ' in your site24x7-agent.yaml file.

  3. 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 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 ...
    • Add Node.js agent in Kubernetes via InitContainers (using prebuilt agent image)

      To integrate the APM Insight Node.js agent into your Kubernetes applications using InitContainers, follow the steps given below: Step 1: Create an empty volume that will be used to copy the agent files during the initContainers process. Example: ...
    • How do I monitor an Oracle database hosted in a Docker container in the same machine?

      To monitor your Oracle Database hosted in a Docker container, follow these steps: Log in to Site24x7 and install the Site24x7 Linux monitoring agent. Execute the following command in your terminal and enter your Oracle Database instance's username ...
    • How to uninstall the Site24x7 Windows Server Monitoring Agent

      Method 1: To uninstall the Site24x7 Windows Server Monitoring Agent, click the link below: https://staticdownloads.site24x7.com/server/Site24x7WindowsAgentUninstall.zip Unzip and execute the Uninstall.bat file in the Command Prompt as an ...
    • Monitors that require On-Premise Pollers in Site24x7

      Certain monitor types in Site24x7 require the use of On-Premise Pollers for data collection, especially when monitoring internal, firewall-restricted, or private resources. Depending on the type of monitoring, additional modules like the Network ...