When switching from an instance of TMC-SM to a new instance of TMC-SM reinstallation of the agents managing the supervisor are required.
TMC-SM 1.4+
vSphere with VKS 8.0+
Create a yaml file with the below text.
apiVersion: installers.tmc.cloud.vmware.com/v1alpha1
kind: AgentInstall
metadata:
name: tmc-agent-installer-config
spec:
operation: UNINSTALL
Delete agentinstall CRD and create new agentinstall CRD with uninstall.yaml.
Use svc-tmc namespace in place of {{SVC_TMC_NAMESPACE}} this will follow the naming convention svc-tmc-<vCenter domain>. (i.e. "svc-tmc-c1111" or "svc-tmc-c####")
kubectl -n {{SVC_TMC_NAMESPACE}} delete agentinstall tmc-agent-installer-config
kubectl -n {{SVC_TMC_NAMESPACE}} create -f uninstall.yamlkubectl -n {{SVC_TMC_NAMESPACE}} delete agentinstall tmc-agent-installer-config
kubectl -n {{SVC_TMC_NAMESPACE}} create -f uninstall.yaml
• Wait for all TMC agents are deleted and job tmc-agent-installer completed, then create the tmc-agent-config
kubectl create -f tmc-agent-config.yamlFollow below linked document to register the supervisor to the new instance of TMC-SM.