How to check for TLS Certificate is installed in AKS Cluster
Hi Kumaran,
Your error message “error: the server doesn’t have a resource type ‘certificate'” usually appears when you’re trying to use a kubectl command that either doesn’t exist or isn’t available in your Kubernetes cluster. To fix this issue in an AKS Cluster, there are a few steps you can take:
First, check that you have the correct version of kubectl installed on your system by running the “kubectl version” command. This will show you the version of kubectl client and Kubernetes cluster.
Next, verify that the certificate signing request (CSR) was approved and the certificate was issued by running “kubectl get csr” command. Look for the CSR that corresponds to the certificate you are trying to check and verify that its status is “Approved”.
Then, ensure that the certificate was created in the right namespace by using “kubectl get certificate -n <namespace>” command. Replace <namespace> with the namespace where the certificate was created.
If the certificate is not found in the right namespace, check that the certificate was created with the correct name by running “kubectl get certificate <certificate-name> -n <namespace>” command. Replace <certificate-name> with the name of the certificate and <namespace> with the namespace where the certificate was created.
If none of these steps solve the issue, there might be a misconfiguration in your Kubernetes cluster or a problem with your kubectl configuration. You can investigate this by checking the logs of your Kubernetes components.
Hope this would help in solving your issue?
Read more here: Source link
