Add support for mongodb container
Implements: blueprint kube-mongodb-container Change-Id: If76f6c0be90c3025933795d262304a10bf1a880d
This commit is contained in:
parent
b57caa7b67
commit
904b5c4256
13
docker/mongodb/Dockerfile
Normal file
13
docker/mongodb/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM kollaglue/fedora-rdo-base
|
||||||
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
|
RUN yum -y install mongodb mongodb-server; yum clean all
|
||||||
|
|
||||||
|
RUN mkdir -p /data/db
|
||||||
|
|
||||||
|
VOLUME /data/db
|
||||||
|
VOLUME /var/log/mongodb
|
||||||
|
|
||||||
|
EXPOSE 27017
|
||||||
|
|
||||||
|
ENTRYPOINT exec /bin/mongod --dbpath /data/db --fork --logpath /var/log/mongodb/mongo.log --noprealloc --smallfiles
|
1
docker/mongodb/build
Symbolic link
1
docker/mongodb/build
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../tools/build-docker-image
|
19
k8s/pod/mongodb-pod.yaml
Normal file
19
k8s/pod/mongodb-pod.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
desiredState:
|
||||||
|
manifest:
|
||||||
|
volumes:
|
||||||
|
- name: mongodb-data
|
||||||
|
source:
|
||||||
|
emptyDir: {}
|
||||||
|
containers:
|
||||||
|
image: kollaglue/fedora-rdo-mongodb
|
||||||
|
name: mongodb
|
||||||
|
ports:
|
||||||
|
- containerPort: 27017
|
||||||
|
volumeMounts:
|
||||||
|
- name: mongodb-data
|
||||||
|
mountPath: /data/db
|
||||||
|
id: mongodb-1
|
||||||
|
version: v1beta1
|
||||||
|
id: mongodb
|
||||||
|
labels:
|
||||||
|
name: mongodb
|
7
k8s/service/mongodb-service.yaml
Normal file
7
k8s/service/mongodb-service.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1beta1
|
||||||
|
containerPort: 27017
|
||||||
|
id: mongodb
|
||||||
|
kind: Service
|
||||||
|
port: 27017
|
||||||
|
selector:
|
||||||
|
name: mongodb
|
@ -10,6 +10,7 @@ glance
|
|||||||
nova-controller
|
nova-controller
|
||||||
neutron-controller
|
neutron-controller
|
||||||
heat
|
heat
|
||||||
|
mongodb
|
||||||
ceilometer-controller
|
ceilometer-controller
|
||||||
'
|
'
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ glance-registry
|
|||||||
keystone-admin
|
keystone-admin
|
||||||
keystone-public
|
keystone-public
|
||||||
mariadb
|
mariadb
|
||||||
|
mongodb
|
||||||
nova-api
|
nova-api
|
||||||
nova-ec2-api
|
nova-ec2-api
|
||||||
nova-libvirt
|
nova-libvirt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user