kolla-kubernetes/services/horizon/horizon-pod.yml.j2
Ken Wronkiewicz 44d5d125bc Fix Horizon's configmap to work with underscores
Change-Id: If668117d9c2b1eca42a2f5b7cede10bd22558c90
Partially-implements: blueprint fix-underscores-in-paths
Partially-implements: blueprint openstack-services
2016-06-16 16:07:22 -07:00

39 lines
982 B
Django/Jinja

apiVersion: v1
kind: ReplicationController
spec:
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-configmap
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
items:
- key: horizon.conf
path: horizon.conf
- key: config.json
path: config.json
- key: local-settings
path: local_settings
metadata:
name: horizon