After the certificate expires, you can update the SSL certificate used by AOC by following this section.
Prerequisite
.crt) and private key file (.key)./home/arcfra/ directory on the AOC node.Procedure
Log in to the AOC node over SSH, and run the following command to delete the Secret of the original certificate:
kubectl delete secrets -n cloudtower-system cloudtower-tlsNo output is displayed after the command is successfully run.
Run the following commands to create a Secret that contains the new certificate:
kubectl -n cloudtower-system create secret tls cloudtower-tls \
--cert <new_certificate_file_name>.crt \
--key <new_private_key_file_name>.keyAfter the command is successfully run, secret/cloudtower-tls created is displayed.
Run the following command to obtain the name of the current Ingress Nginx Pod:
kubectl get pods -n ingress-nginxRun the following command to restart the Ingress Nginx Pod. The Pod is automatically re-created after it is deleted.
kubectl delete pod -n ingress-nginx <Pod_name>After the command is successfully run, pod/<Pod_name> deleted is displayed.
Log in to the AOC web interface and verify that the new certificate has taken effect.