How to setup helm chart to access jenkins through https?

9/19/2019

I have the below in values.yaml for https://github.com/helm/charts/tree/master/stable/jenkins and it is all fine except I can only access jenkins through http, but not https

jenkinsUrlProtocol: "https"
jenkinsUriPrefix: "/jenkins"
ingress:
 enabled: true
 apiVersion: "extensions/v1beta1"
 labels: {}
 annotations: 
    kubernetes.io/ingress.class: nginx
    kubernetes.io/tls-acme: "true"
    path: "/jenkins"
    kubernetes.io/ssl-redirect: "true"
 hostName: jenkins.xxx.com
 tls:
    - secretName: jenkins.cluster.local
 hosts:
        - jenkins.cluster.local

I don't see any errors in the pod

-- irom
https
jenkins
kubernetes-helm

1 Answer

10/2/2019

For this configuration to work, you would need to have an instance of jetstack/cert-manager already configured and running in your cluster. The cert-manager docs have some documentation explaining how to configure Automatically creating Certificates for Ingress resources which you would need to align with the configuration you included already; specifically the annotations for the ingress, and the secret name for starters.

I believe the hostname/hosts you currently have won't be able to have a certificate issued by letsencrypt as they're not using a valid domain.

Hope this helps.

-- cewood
Source: StackOverflow