Closed anshul07 closed 1 year ago
@codytrey
Hi Anshul,
I work for Control-M Solutions Marketing and have seen your posts here. I'm wondering if you would be willing to work more directly with me and possibly other BMC resources, to help you make quicker progress?
Some issues I may be able to help directly while for others, I'll have to rely on others, but may be able to get you responses more quickly.
I found your comments very interesting and about the approach you are taking to install an agent to avoid requiring credentials at build time. I think there are several approaches that can optimize that process both for images as well as for Linux VMs. As an example, look at the "run_register.sh" script I published in the same repo (https://github.com/controlm/automation-api-community-solutions/blob/master/3-infrastructure-as-code-examples/kubernetes-agent-application-pods/Misc/ctmContainer/run_register_controlm.sh). The example there reads credentials from conventional external files mounted in the container. That is meant to be a proxy for using tags/labels and a vaulting/secrets facility to store the credentials and have the container bind to the appropriate environment at run time to address the exact concern you have about baking credentials in at build time..
My contact info is joe_goldberg@bmc.com and I would be happy to connect with you directly to help in any way I can.
Will be resolved with the release of a supported containerized agent.
Hi,
I'm working on the installation of control-m agent on a docker container and using the pattern where control-m agent has kubernetes service object attached to it which provides a static IP to the agent for incoming connections from the server.
Please note, for the installation of control-m agent on the docker image, I am executing the steps that we will perform on any Linux VM i.e. downloading the DRKAI package, unzipping and running setup.sh command. I didn't use ctm cli as it requires the EM endpoint and credentials at the build time which means that if you have got multiple environments each having its own EM then you need to build different image for each of them and that I believe is an anti-pattern in container world.
Also, I am running the setup.sh at the build time with a placeholder for server name in silent config file. Later during start up time, I replace that placeholder in ctm/data/CONFIG.dat with the actual server name. (I still need to handle authorised servers in case of HA).
Following is the snippet of my docker file
run.sh (start up script)
install-controlm-silent-config.xml
Can you please provide the feedback on this approach?
Also, I want to use persistent volume claim to persist the logs and output for troubleshooting if the pod goes down. So far I understand that I should definitely persist proclog and output directory, but are there some other folders we should persist?