Report this

What is the reason for this report?

Kubernetes helm TLS error

Posted on October 11, 2018

Hi, When I try to connect to helm using tls it gives me a TLS error:

MacBook-Pro-di-Marco:.ssh arm$ helm ls --tls
Error: tls: first record does not look like a TLS handshake

The cause seems to be an ingress annotation ( https://github.com/helm/charts/issues/4204 )How can I change it in a DO K8S environment?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

UPDATE: The Helm/Chart project is no longer supported as described in the following blog post:

https://helm.sh/blog/2019-10-22-helm-2150-released/#helm-2-support-plan

However, in case that anyone comes across this in the future, here are the steps you can follow to modify the ingress annotation in a Kubernetes cluster:

  1. Identify the ingress you need to modify. If you have many services, you can list them using the command:

    kubectl get ingress --all-namespaces
    

    Make sure you’ve set up the Kubernetes context correctly for your DO cluster.

  2. After you have identified the ingress that you need to modify, you can describe it using the following command:

    kubectl describe ingress <INGRESS_NAME> -n <NAMESPACE>
    

    Replace <INGRESS_NAME> with the name of your ingress and <NAMESPACE> with the namespace in which your ingress is located. This will show you the current details of your ingress, including annotations.

  3. To modify the ingress, you would typically edit the YAML file that defines it. If you do not have the original YAML file, you can export the existing ingress configuration to a file using the following command:

    kubectl get ingress <INGRESS_NAME> -n <NAMESPACE> -o yaml > ingress.yaml
    
  4. Open the ingress.yaml file with a text editor. You should see a field annotations under metadata. Modify the annotations as necessary based on your requirements and save the file.

  5. Now you can apply the changes using the command:

    kubectl apply -f ingress.yaml
    

    Make sure to execute this in the directory where your ingress.yaml file is located.

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.