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: 1
id: nova-compute-controller
kind: ReplicationController
labels:
  name: nova-compute

apiVersion: v1beta1
desiredState:
  podTemplate:
    desiredState:
      manifest:
        containers:
        - name: nova-compute
          image: kollaglue/fedora-rdo-nova-compute
          ports:
          - containerPort: 12000
            hostPort: 12000
          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-network
          ports:
          - containerPort: 12001
            hostPort: 12001
          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: 6
id: nova-compute-controller
kind: ReplicationController
labels:
  name: nova-compute

Use hostPort to lock 1 nova-compute/nova-network per node
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
