Mapping of host URL with agent-grpc service
Follow the instruction below to map a host URL with agent-grpc service.
Get the load balancer IP of controller agent in the ISD installed namespace using the below command.
kubectl get svc -n isd | grep agent-grpcIn this example the Load Balancer IP address is 34.172.225.153 Refer to the below output.
$ kubectl get svc -n isd | grep agent-grpc agent-grpc LoadBalancer 10.68.9.229 34.172.225.153 9001:31016/TCP 2d21hYou need to map this Load Balancer IP to any of the DNS providers. Check the DNS entry using the nslookup command as shown below.
nslookup isdcontroller.agent.opsmx.netRefer the below output
Server: 127.0.0.53 Address: 127.0.0.53#53 Non-authoritative answer: Name: isdcontroller.agent.opsmx.net Address: 34.172.225.153Run the below command to edit the controller config map “opsmx-controller-controller1”.
kubectl edit cm opsmx-controller-controller1 -n isdReplace the agentHostname and remoteCommandHostname in the config map under “data” section as mentioned below and save it.
apiVersion: v1 data: configFile: | serviceHostname: opsmx-controller-controller1 agentHostname: isdcontroller.agent.opsmx.net remoteCommandHostname: isdcontroller.agent.opsmx.net controlHostname: opsmx-controller-controller1 #agentAdvertisePort: "443"Delete the controller pod using the below command.
kubectl delete po -l app=opsmx-controller-controller1 -n isdNow you are done with the Controller configuration. This DNS can be used while configuring the agent with Argo.
Last updated