From 0f294f46100c8215420b9e1812846c9fc1fb4308 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 8 Oct 2014 13:10:26 -0700 Subject: [PATCH] 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 --- k8s/replication/nova-compute-replication.json | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 k8s/replication/nova-compute-replication.json diff --git a/k8s/replication/nova-compute-replication.json b/k8s/replication/nova-compute-replication.json new file mode 100644 index 0000000000..5acf70d583 --- /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" + } +}