Image for config loader into ETCD service on k8s
1.1K
This Project is being developed in order to facilitate the Openstack deployment based on Kubernetes and docker containers. The openstack distribution is based on the upstream code, and you can deploy a specific openstack version changing the "version" param in the dockerfile for each Openstack service. The project requires kubernetes and uses Rancher to deploy the k8s cluster faster.
Partially based on Rancher project:
The order needed to deploy the platform should be:
Load the config loader in order to get all the environment and configuration params to the Etcd service
In the following ETCD section you can get more information about the Etcd scheme.
Deploy each service in the following sequence:
You can use [k8s-configs] (https://github.com/BBVA/k8s-configs) in order to deploy each service manually in kubernetes, or if you are using Rancher, you can load this folder as a Rancher Catalog.
The idea is to provide a way to get all the configuration files params and environment variables to the openstack services containers. The config-loader is a Pod launched just one time, which load all the params to the Etcd previously loaded:
General Environment by changing the file config-loader
Openstack service configuration (For instance, just change the params needed for Glance. If you need some params extra for configure your environment, just add the line with the param needed. The config-loader process will do a merge between the default config-file params and the configuration params loaded here.
The Etcd scheme is configured in different branches to keep the information:
general where will be loaded all the enviroment params shown below. An example:general/MYSQL_ROOT_PASSWORD=mysql_password
For instance, in a controller node with the glance service, if we need to modify the connection url inside the database section in the glance-api.conf file should be:
controller/glance/glance-api.conf/database/connection=mysql://glance:$GLANCE_DB_PASSWORD@$MYSQL_HOST/glance
For each service, you can use [k8s-configs] (https://github.com/BBVA/k8s-configs) in order to deploy each service manually in kubernetes. The deployment is based on:
Manually you can deploy all the services as usual in kubernetes following the sequence shown above. For instance:
$ kubectl create -f k8s-configs/kubernetes-templates/glance/0/glance-service.yaml
$ kubectl create -f k8s-configs/kubernetes-templates/glance/0/glance-rc.yaml
Obviously, you can deploy manually in kubernetes loading the service, and replication controller yaml files. If you are using Rancher to deploy the stack, just add this repo in the Rancher Catalog gui, to get it available. After that, all the services will be shown available to deploy just with one click!
We're working on the next services:
Content type
Image
Digest
Size
67.7 MB
Last updated
almost 10 years ago
docker pull bbvainnotech/k8s-config-loader