2022-01-16
Provide a name and select cluster group for this management cluster.



root@photon-machine [ ~ ]# k get ns
NAME STATUS AGE
default Active 13h
kube-node-lease Active 13h
kube-public Active 13h
kube-system Active 13h
s**vc-tmc-c61 Active 13h**
vmc-dzhang Active 17m
vmware-system-appplatform-operator-system Active 13h
vmware-system-capw Active 13h
vmware-system-cert-manager Active 13h
vmware-system-csi Active 13h
vmware-system-kubeimage Active 13h
vmware-system-license-operator Active 13h
vmware-system-logging Active 13h
vmware-system-monitoring Active 13h
vmware-system-nsop Active 13h
vmware-system-nsx Active 13h
vmware-system-registry Active 13h
vmware-system-supervisor-services Active 13h
vmware-system-tkg Active 13h
vmware-system-ucs Active 13h
vmware-system-vmop Active 13h
root@photon-machine [ ~ ]#
apiVersion: installers.tmc.cloud.vmware.com/v1alpha1
kind: AgentInstall
metadata:
name: tmc-agent-installer-config
**namespace: svc-tmc-c61**
spec:
operation: INSTALL
**registrationLink: <https://vmcpsa.tmc.cloud.vmware.com/installer?id=db68cf022a8e852xxxxxf1c42dad994269dcec4679fe19fe5be19ec2130c920&source=registration&type=tkgs**>
root@photon-machine [ ~ ]# k create -f register-to-tmc.yaml
agentinstall.installers.tmc.cloud.vmware.com/tmc-agent-installer-config created
root@photon-machine [ ~ ]# kubectl -n svc-tmc-c61 describe agentinstall tmc-agent-installer-config
Name: tmc-agent-installer-config
Namespace: svc-tmc-c61
Labels: <none>
Annotations: <none>
API Version: installers.tmc.cloud.vmware.com/v1alpha1
Kind: AgentInstall
Metadata:
Creation Timestamp: 2021-11-16T10:52:48Z
Generation: 1
Managed Fields:
API Version: installers.tmc.cloud.vmware.com/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:spec:
.:
f:operation:
f:registrationLink:
Manager: kubectl-create
Operation: Update
Time: 2021-11-16T10:52:48Z
API Version: installers.tmc.cloud.vmware.com/v1alpha1
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:message:
f:status:
Manager: tmc-agent-installer
Operation: Update
Time: 2021-11-16T10:53:07Z
Resource Version: 413177
Self Link: /apis/installers.tmc.cloud.vmware.com/v1alpha1/namespaces/svc-tmc-c61/agentinstalls/tmc-agent-installer-config
UID: b208a834-3392-4d07-8225-3c54e1a98e39
Spec:
Operation: INSTALL
Registration Link: <https://vmcpsa.tmc.cloud.vmware.com/installer?id=db68cf022a8e852xxxxxf1c42dad994269dcec4679fe19fe5be19ec2130c920&source=registration&type=tkgs>
Status:
**Message: successfully applied registration link**
Status: INSTALLED
Events: <none>
root@photon-machine [ ~ ]# k get pod -n svc-tmc-c61
NAME READY STATUS RESTARTS AGE
agent-updater-68cd48c45f-kkjdf 1/1 Running 0 13m
agentupdater-workload-27284346-8fck5 0/1 Completed 0 33s
cluster-health-extension-86b4f69f9b-nl9bg 1/1 Running 0 12m
extension-manager-6c649b57fb-9d67n 1/1 Running 0 13m
extension-updater-779bb96cbb-xd6bn 1/1 Running 0 13m
intent-agent-66857b84f4-gx4gw 1/1 Running 0 12m
sync-agent-886444877-6ln62 1/1 Running 0 12m
tmc-agent-installer-27284346-9kcbr 0/1 Completed 0 33s
tmc-auto-attach-794dd4cf67-h45ks 1/1 Running 0 12m
vsphere-resource-retriever-65f5667d75-mwsvk 1/1 Running 0 12m
In VMC, we should be able to see the supervisor cluster.
