Ask Your Question

Working of Kubernetes on OpenStack

asked 2017-08-18 01:13:07 -0500

sanjana gravatar image

Basically i want to understand what it exactly means to have kubernetes deployed on top of openstack. What is the role of openstack? And what are the roles handles by kubernetes?

If a user is given an admin role in kubernetes, does it mean he/she has the admin role in case of openstack too? I am not looking at Murano or Magnum or Heat to deploy Kubernetes on OpenStack. But will be using plain ansible scripts.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2017-08-18 08:26:07 -0500

The role of OpenStack is to provision and manage the infrastructure on which Kubernetes runs, in particular servers and networking. Kubernetes manages Docker containers on those servers and the apps that run on them. There is no connection between the admin roles in Kubernetes and OpenStack.

edit flag offensive delete link more


Thanks for that. So that means if my user wants to access Kubernetes, then the user will not be able to access underlying openstack to spin up instances. For this the user will have to use Openstack directly. Am I making any sense?

sanjana gravatar imagesanjana ( 2017-08-20 23:58:01 -0500 )edit

What i mean to say is that OpenStack and Kubernetes are 2 different services. So user can only use one at a time.

sanjana gravatar imagesanjana ( 2017-08-21 00:56:37 -0500 )edit

They are different services and K8s is deployed on top of OpenStack. To control containers and apps, you use kubectl. To manage the instances, volumes and networks used by K8s, you use OpenStack commands. The two are entirely separate, such as SAP deployed on top of Linux for example.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-21 09:02:05 -0500 )edit

answered 2017-08-21 06:47:05 -0500

Moss gravatar image

Apart of what Bernd already said, deploying k8s in the cloud (not only openstack) gives you many advantages:

  1. kubernetes services can be automatically exposes using load balancer provided by the cloud
  2. kubernetes nodes can be autoscaled: in case of any failure cloud automatically redeploys failed minions
  3. kubernetes provides storage classes: persistent volumes are created and managed automatically by the cloud

You mentioned about ansible scripts for the k8s deployment - personally I recommend kubespray

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-08-18 01:13:07 -0500

Seen: 171 times

Last updated: Aug 21 '17