Merge "Switching Horizon over to work via Kubernetes network"

This commit is contained in:
Jenkins 2016-06-15 22:54:52 +00:00 committed by Gerrit Code Review
commit 06aa9fbc60
4 changed files with 33 additions and 18 deletions

View File

@ -15,3 +15,4 @@
keystone_replicas: "1"
memcached_replicas: "1"
rabbitmq_replicas: "1"
horizon_replicas: "1"

View File

@ -38,7 +38,8 @@ POD_DEFINITIONS = {'mariadb': ['mariadb'],
'neutron': ['neutron-compute', 'neutron-control',
'neutron-network'],
'swift': ['swift-account', 'swift-container',
'swift-object', 'swift-proxy']}
'swift-object', 'swift-proxy'],
'horizon': ['horizon']}
# TODO(rhallisey): make container definitions dynamic
# The containers in a pod
@ -74,7 +75,8 @@ CONTAINER_DEFINITIONS = {'mariadb': ['mariadb'],
'swift-object-replicator',
'swift-object-updater',
'swift-object-expirer'],
'swift-proxy': ['swift-proxy-server']}
'swift-proxy': ['swift-proxy-server'],
'horizon': ['horizon']}
def get_service_dict():

View File

@ -1,19 +1,31 @@
apiVersion: v1
kind: Pod
kind: ReplicationController
spec:
hostNetwork: True
containers:
- name: horizon
image: "{{ horizon_image_full }}"
volumeMounts:
- mountPath: {{ container_config_directory }}
name: horizon-config
env:
- name: KOLLA_CONFIG_STRATEGY
value: {{ config_strategy }}
volumes:
- name: horizon-config
configMap:
name: horizon-config
replicas: {{ horizon_replicas }}
selector:
service: horizon
template:
metadata:
labels:
service: horizon
spec:
containers:
- name: horizon
image: "{{ horizon_image_full }}"
volumeMounts:
- mountPath: {{ container_config_directory }}
name: horizon-config
env:
- name: KOLLA_CONFIG_STRATEGY
value: {{ config_strategy }}
ports:
- containerPort: 80
name: http
- containerPort: 443
name: https
volumes:
- name: horizon-configmap
configMap:
name: horizon-configmap
metadata:
name: horizon

View File

@ -7,6 +7,6 @@ spec:
- name: https
port: 443
selector:
name: horizon
service: horizon
metadata:
name: horizon