<p>I have been trying to deploy a Kubernetes cluster in Digital Ocean. Everything seems to work except when I try to apply the tls certificates. I have been following these steps, but with <code>Nginx Ingress Controller</code> v1.0.0 and <code>cert-manager</code> v1.5.0.</p>
<p>I have two urls, let's say <code>api.example.com</code> and <code>www.example.com</code></p>
<p>Checking the challenge I saw <code>Waiting for HTTP-01 challenge propagation: failed to perform self check GET request...</code></p>
<p>I tried adding the following annotations to the ingress:</p>
<pre><code>kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
cert-manager.io/cluster-issuer: &quot;letsencrypt-prod&quot;
</code></pre>
<p>Or using this service as a workaround:</p>
<pre><code>kind: Service
apiVersion: v1
metadata:
  name: ingress-nginx
  namespace: ingress-nginx
  annotations:
    service.beta.kubernetes.io/do-loadbalancer-enable-proxy-protocol: &quot;true&quot;
    service.beta.kubernetes.io/do-loadbalancer-hostname: &quot;www.example.com&quot;
  labels:
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
spec:
  #CHANGE/ADD THIS
  externalTrafficPolicy: Cluster
  type: LoadBalancer
  selector:
    app.kubernetes.io/name: ingress-nginx
    app.kubernetes.io/part-of: ingress-nginx
  ports:
    - name: http
      port: 80
      targetPort: http
    - name: https
      port: 443
      targetPort: https
</code></pre>
<p>If I go to the URL challenge I am able to see the hash, but I am stuck, I am not sure why it is failing or the steps to solve this.</p>

agusgambina
<p>As <a href="https://stackoverflow.com/users/2853555/agusgambina">agusgambina</a> has mentioned in the comment, problem is solved:</p>
<blockquote>
<p>I was able to make this work, first I need to get the load balancer id executing <code> k describe svc ingress-nginx-controller --namespace=ingress-nginx</code> and then pasting in the annotation <code>kubernetes.digitalocean.com/load-balancer-id: “xxxx-xxxx-xxxx-xxxx-xxxxx”</code> thanks for your comments, it helped me to solve the issue.</p>
</blockquote>
<p>This problem described also <a href="https://www.digitalocean.com/community/questions/issue-with-waiting-for-http-01-challenge-propagation-failed-to-perform-self-check-get-request-from-acme-challenges" rel="nofollow noreferrer">here</a> and there is also a tutorial<br />
<a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes#step-2-%E2%80%94-setting-up-the-kubernetes-nginx-ingress-controller" rel="nofollow noreferrer">How to Set Up an Nginx Ingress with Cert-Manager on DigitalOcean Kubernetes</a>.</p>
