aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Dake <sdake@redhat.com>2014-10-08 13:10:26 -0700
committerSteven Dake <sdake@redhat.com>2014-10-08 13:11:07 -0700
commit0f294f46100c8215420b9e1812846c9fc1fb4308 (patch)
treee3da0e68cb7e1f70c4be03cf80c09cfbb6718bda
parentcb05bb513bc5dbb2aa0a10a569ee5032515ea382 (diff)
downloadkolla-0f294f46100c8215420b9e1812846c9fc1fb4308.tar.gz
kolla-0f294f46100c8215420b9e1812846c9fc1fb4308.zip
Add a replicationController for nova-compute so it runs on each minion
We want the nova-compute controller to run on each minion Change-Id: If0355034927e195d1dd5482dab1026418185e9c6
-rw-r--r--k8s/replication/nova-compute-replication.json66
1 files changed, 66 insertions, 0 deletions
diff --git a/k8s/replication/nova-compute-replication.json b/k8s/replication/nova-compute-replication.json
new file mode 100644
index 000000000..5acf70d58
--- /dev/null
+++ b/k8s/replication/nova-compute-replication.json
@@ -0,0 +1,66 @@
+{
+ "apiVersion": "v1beta1",
+ "desiredState": {
+ "podTemplate": {
+ "desiredState": {
+ "manifest": {
+ "containers": [
+ {
+ "name": "nova-compute",
+ "image": "kollaglue/fedora-rdo-nova-compute",
+ "env": [
+ {
+ "name": "DB_ROOT_PASSWORD",
+ "value": "password"
+ },
+ {
+ "name": "NOVA_DB_PASSWORD",
+ "value": "novadbpassword"
+ },
+ {
+ "name": "KEYSTONE_ADMIN_TOKEN",
+ "value": "ADMINTOKEN"
+ }
+ ]
+ },
+ {
+ "name": "nova-libvirt",
+ "image": "kollaglue/fedora-rdo-nova-libvirt",
+ "ports": [
+ {"containerPort": 16509}
+ ],
+ "env": [
+ {
+ "name": "DB_ROOT_PASSWORD",
+ "value": "password"
+ },
+ {
+ "name": "NOVA_DB_PASSWORD",
+ "value": "novadbpassword"
+ },
+ {
+ "name": "KEYSTONE_ADMIN_TOKEN",
+ "value": "ADMINTOKEN"
+ }
+ ]
+ },
+ ],
+ "id": "nova-compute-controller",
+ "version": "v1beta1"
+ }
+ },
+ "labels": {
+ "name": "nova-compute"
+ }
+ },
+ "replicaSelector": {
+ "name": "nova-compute"
+ },
+ "replicas": 2
+ },
+ "id": "nova-compute-controller",
+ "kind": "ReplicationController",
+ "labels": {
+ "name": "nova-compute"
+ }
+}