Use hostPort to lock 1 nova-compute/nova-network per node
Kubernetes does not have a horizontal scaling feature that works per node. A workaround is to use hostPort to cause the scheduler not to schedule several replicationController replicas to each node. By doing so, only one nova-compute is launched per node up to a total of 6 nodes which is the most we can generate in testing. Change-Id: I1621f15cf1ec502418b454300645b46bc796dc8b
This commit is contained in:
parent
3ae22f65ea
commit
f2c3719506
@ -6,6 +6,9 @@ desiredState:
|
||||
containers:
|
||||
- name: nova-compute
|
||||
image: kollaglue/fedora-rdo-nova-compute
|
||||
ports:
|
||||
- containerPort: 12000
|
||||
hostPort: 12000
|
||||
env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: password
|
||||
@ -14,9 +17,10 @@ desiredState:
|
||||
- name: KEYSTONE_ADMIN_TOKEN
|
||||
value: ADMINTOKEN
|
||||
- name: nova-libvirt
|
||||
image: kollaglue/fedora-rdo-nova-libvirt
|
||||
image: kollaglue/fedora-rdo-nova-network
|
||||
ports:
|
||||
- containerPort: 16509
|
||||
- containerPort: 12001
|
||||
hostPort: 12001
|
||||
env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: password
|
||||
@ -30,7 +34,7 @@ desiredState:
|
||||
name: nova-compute
|
||||
replicaSelector:
|
||||
name: nova-compute
|
||||
replicas: 1
|
||||
replicas: 6
|
||||
id: nova-compute-controller
|
||||
kind: ReplicationController
|
||||
labels:
|
||||
|
Loading…
x
Reference in New Issue
Block a user