<p>I'm trying to follow <a href="https://hackernoon.com/setting-up-nginx-ingress-on-kubernetes-2b733d8d2f45" rel="nofollow noreferrer">this tutorial</a> to setup an nginx-ingress controller.</p>

<p>It seems it was written before RBAC was fully integrated into k8s. When I get to the final step of running the <a href="https://gist.github.com/gokulchandra/78b7f0bf0b3a3c9d4434138cd6c6d769#file-nginx-controller-yaml" rel="nofollow noreferrer">nginx-controller.yaml</a> I get back an authorization error:</p>

<pre><code>no service with name default/default-http-backend found: services "default-http-backend" is forbidden: User "system:serviceaccount:default:default" cannot get services in the namespace "default"
</code></pre>

<p>What do I need to do to make this work with RBAC?</p>

<p>That hackernoon post (like most of them) is incorrent. Specifically there are no RBAC objects and the deployment is not assigned a service account (i.e.: serviceAccountName: ).</p>

<p>To ensure that you have the right (or enough) RBAC objects created check out the RBAC-* objects at <a href="https://github.com/mateothegreat/k8-byexamples-ingress-controller/tree/master/manifests" rel="nofollow noreferrer">https://github.com/mateothegreat/k8-byexamples-ingress-controller/tree/master/manifests</a>.</p>
