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
This commit is contained in:
parent
cb05bb513b
commit
0f294f4610
66
k8s/replication/nova-compute-replication.json
Normal file
66
k8s/replication/nova-compute-replication.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user