<p>I have a Kubernetes cluster running on IBM Cloud and I'm trying to deploy the Couchbase operator. </p>

<p>When running the command:</p>

<pre><code>cbopctl apply --kubeconfig /home/jenkins/.bluemix/cluster.yml -f couchbase-autonomous-operator-kubernetes_1.0.0-linux_x86_64/couchbase-cluster.yaml
</code></pre>

<p>I get the following error.</p>

<pre><code>panic: No Auth Provider found for name "oidc"

goroutine 1 [running]:
github.com/couchbase/couchbase-operator/pkg/client.MustNew(0xc4201e2e00, 0xc4201e2e00, 0x0)
    /var/tmp/foo/goproj/src/github.com/couchbase/couchbase-operator/pkg/client/client.go:21 +0x71
main.(*ApplyContext).Run(0xc4207e8570)
</code></pre>

<p>How do I authenticate this service?</p>

<p>Looks like you have your <code>~/.kube/config</code> file configured to use OpenID with the oidc authenticator. The <code>~/.kube/config</code> is with the <a href="https://github.com/kubernetes/client-go" rel="nofollow noreferrer">client-go</a> library uses to authenticate and <a href="https://docs.couchbase.com/operator/1.0/cbopctl.html" rel="nofollow noreferrer">cbopctl</a> uses the client-go library.</p>

<p><a href="https://kubernetes.io/docs/reference/access-authn-authz/authentication/#openid-connect-tokens" rel="nofollow noreferrer">This</a> explains how to set it up in Kubernetes. If you are using an <a href="https://www.ibm.com/cloud/container-service" rel="nofollow noreferrer">IBM cloud managed Kubenetes cluster</a>, it's probably already configured on the kube-apiserver and you would have to follow <a href="https://console.bluemix.net/docs/containers/cs_cli_install.html#cs_cli_install" rel="nofollow noreferrer">this</a></p>

<p>To manually configure <code>kubectl</code> you would have to do something like <a href="https://kubernetes.io/docs/reference/access-authn-authz/authentication/#option-1-oidc-authenticator" rel="nofollow noreferrer">this</a>.</p>
