Mapping of host URL with agent-grpc service

Follow the instruction below to map a host URL with agent-grpc service.

  1. Get the load balancer IP of controller agent in the ISD installed namespace using the below command.

    kubectl get svc -n opsmx-argo | grep agent-grpc
  2. In this example the Load Balancer IP address is Refer to the below output.

    $ kubectl get svc -n opsmx-argo | grep agent-grpc
    agent-grpc                               LoadBalancer   9001:31016/TCP               2d21h
  3. Choose the agent host URL as per your domain name [For eg: if your domain name is ending with: *, the corresponding agent host URL should be: <YOUR-CHOICE_OF_Controller-Name>]. In this example, we are using the host URL as

  4. You need to map this Load Balancer IP to any of the DNS providers. Check the DNS entry using the nslookup command as shown below.


    Refer the below output

    Non-authoritative answer:

  5. Run the below command to edit the controller config map “opsmx-controller-controller1”.

    kubectl edit cm opsmx-controller-controller1 -n opsmx-argo

    Replace the agentHostname and remoteCommandHostname in the config map under “data” section as mentioned below and save it.

    apiVersion: v1
      configFile: |
        serviceHostname: opsmx-controller-controller1
        controlHostname: opsmx-controller-controller1
        #agentAdvertisePort: "443"
          - agent-grpc

  6. Restart the controller pod using the command below.

    kubectl rollout restart deploy opsmx-controller-controller1 -n opsmx-argo
  7. Now you are done with Controller configuration. This DNS can be used while configuring the agent with Argo.

Last updated