I've done all required configurations as below to get certificate from letsencrypt in kubernetes, however I cannot see any certificate issued.
- Nginx-ingress install using helm
helm install my-nginx-ingress stable/nginx-ingress --set controller.publishService.enabled=true
- Cert-manager installation
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.11/deploy/manifests/00-crds.yaml
kubectl create namespace cert-manager
helm repo add jetstack https://charts.jetstack.io
helm install my-cert-manager --namespace spinnaker jetstack/cert-manager --set ingressShim.defaultIssuerName=letsencrypt-prod --set ingressShim.defaultIssuerKind=ClusterIssuer
- ClusterIssuer
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
email: [email protected]
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-prod
solvers:
- http01:
ingress:
class: nginx
- Ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: spinnaker-ingress
namespace: spinnaker
annotations:
kubernetes.io/ingress.class: nginx
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts:
- SpinnakerApiDomain
- SpinnakerDeckDomain
secretName: spinnaker
rules:
- host: SpinnakerApiDomain
http:
paths:
- backend:
serviceName: spin-gate
servicePort: 8084
- host: SpinnakerDeckDomain
http:
paths:
- backend:
serviceName: spin-deck
servicePort: 9000
I'm following these document:
I've gone through other URLs as well which has same steps but when I do kubectl get certificates --all-namespaces
I cannot see any certificate issued.
Basically I'm configuring Spinnaker behind HTTPS.
Please advise. Thanks.