[openstack-dev][kuryr] Unable to connect to kube-apiserver

Michał Dulko mdulko at redhat.com
Wed Dec 18 09:33:58 UTC 2019


It's RBAC issue - the account Kuryr uses to connect to K8s API doesn't
have enough privileges. You should create an account for Kuryr that
will have them. See [1] for the list of required ones. To login as
particular user use options to specify certificates [2].

An alternative is to deploy Kuryr services as pods on that K8s cluster.
In that case, a ServiceAccount definition with required privileges is
created and Kuryr pods get attached to it, so they get a token allowing
them to authenticate through that account. See [3] for more details on


[1] https://opendev.org/openstack/kuryr-kubernetes/src/branch/master/devstack/lib/kuryr_kubernetes#L418-L456
[2] https://opendev.org/openstack/kuryr-kubernetes/src/branch/master/kuryr_kubernetes/config.py#L82-L87
[3] https://docs.openstack.org/kuryr-kubernetes/latest/installation/containerized.html

On Wed, 2019-12-18 at 09:10 +0000, Veera.reddy B wrote:
> Hi ,
> I install Kubernetes using “kubeadm init”.
> Followed below link to install “kuryr-kubernetes”.
> https://docs.openstack.org/kuryr-kubernetes/latest/installation/manual.html#configure-kuryr-k8s-controller
> Kube api configuration : /etc/kubernetes/manifests/kube-apiserver.yaml
> http://paste.openstack.org/show/787704/
> kuryr config file : /etc/kuryr/kuryr.conf
> http://paste.openstack.org/show/787705/
> Error while starting kuryr : #> kuryr-k8s-controller --config-file /etc/kuryr/kuryr.conf
> http://paste.openstack.org/show/787706/
> Let me what I am missing in “/etc/kuryr/kuryr.conf”
> Thanks,
> Veera.

More information about the openstack-discuss mailing list