3.2
TCA 3.2 does not support Airgap trusted certificate updates for the v1.24.10 management cluster.
NOTE: Updating the Airgap trusted certificate of the management cluster will trigger a cluster node rolling-update
[root@tca-m /home/admin]# tar vxfz update-ca-v3.3.tar.gz
# python update_ca.py update-cert-db --fqdn <airgap server fqdn> --cafile <ca certificate file>
[root@tca-m /home/admin/update-ca ]# python update_ca.py update-cert-db --fqdn <airgap server fqdn> --cafile <ca certificate file>
update_ca[INFO]: airgap repo: <airgap server fqdn> is valid
update_ca[INFO]: ########## Quering <airgap server fqdn>'s id,val in Postgres ##########
update_ca[INFO]: ########## Updating <airgap server fqdn>'s val by id in Postgres ##########
update_ca[INFO]: the interfaceInfo is {'fqdn': <airgap server fqdn>', 'caCert':'<Certificate Hash>'}
update_ca[INFO]: Successfully update cert db
[root@tca-cp /home/admin]# tar vxfz update-ca-v3.3.tar.gz
# python update_ca.py update-mgmtcluster --cafile <ca certificate file> --name <management cluster name>
Following output is an example:
[root@tca-cp /home/admin/update-ca/v3.3 ]# python update_ca.py update-mgmtcluster --cafile <ca certificate file> --name <management cluster name>
client[INFO]: Successfully get TkgContext
update_ca[INFO]: airgap repo: <airgap server fqdn> is valid
client[INFO]: Updated tkgcontext ########-####-####-####-############ with response
client[INFO]: Successfully get management cluster Kubeconfig
client[INFO]: update cluster kapp-controller-config successfully
client[INFO]: update secret [tkg-pkg-tkg-system-values] in namespace [tkg-system] successfully
client[INFO]: update secret [tkr-source-controller-values] in namespace [tkg-system] successfully
client[INFO]: update secret [tkr-vsphere-resolver-values] in namespace [tkg-system] successfully
client[INFO]: update management cluster tkr-controller-config successfully
client[INFO]: update clusterclass mgmt cluster [<management cluster name>] in namespace tkg-system successfully
update_ca[INFO]: Updated management cluster
Run the `update-ca.py show-state-mgmtcluster` command to display the status of updating the Airgap trusted certificate of the specified management cluster
# python update_ca.py show-state-mgmtcluster --name <management cluster name>
Following output is an example:
[root@tca-cp /home/admin/update-ca/v3.3 ]# python update_ca.py show-state-mgmtcluster --name <management cluster name>
client[INFO]: Successfully get TkgContext
update_ca[INFO]: airgap repo: <airgap server fqdn> is valid
client[INFO]: Successfully get management cluster Kubeconfig
client[INFO]: nodeConfig [update-airgap-certs] is updated successuflly
client[INFO]: configmap kapp-controller-config/tkg-system: up to date
client[INFO]: secret tkg-pkg-tkg-system-values/tkg-system: up to date
client[INFO]: secret [tkr-source-controller-values] in namespace [tkg-system]: up to date
client[INFO]: caCerts doesn't exist in secret [tkr-vsphere-resolver-values] in namespace [tkg-system]
client[INFO]: configmap tkr-controller-config: up to date
client[INFO]: cluster [<management cluster name>] in namespace tkg-system: up to date
client[INFO]: cluster nodes: up to date