Register keystone endpoints

This is not a perfect solution, but likely OK for a while.

Change-Id: Ib2cdf14bea09a8c1c914b35537bbd98ed97995e4
Closes-Bug: #1586283
This commit is contained in:
Liyi Meng 2016-05-27 14:39:16 +02:00
parent c7a4771ef5
commit 6a061eb58a
1 changed files with 31 additions and 3 deletions

View File

@ -76,13 +76,41 @@ spec:
value: "127.0.0.1"
- name: ETCD_PORT
value: "4001"
- image: "{{ keystone_image_full }}"
name: keystone-endpoints
# TODO: figure out why openstack_auth.* is not readered properly
#{{ openstack_auth.username }}
#{{ openstack_auth.password }}
#{{ openstack_auth.project_name }}
command: ["sh", "-c", "sudo -E kolla_set_configs;
kolla_keystone_bootstrap admin
{{ keystone_admin_password }}
admin
admin
{{ keystone_admin_url }}
{{ keystone_internal_url }}
{{ keystone_public_url }}
{{ openstack_region_name }}"]
volumeMounts:
- mountPath: {{ container_config_directory }}
name: keystone-config
readOnly: true
- mountPath: /var/log/kolla
name: kolla-logs
env:
- name: KOLLA_CONFIG_STRATEGY
value: "{{ config_strategy }}"
#TODO: Replace with templated values
- name: ETCD_HOST
value: "127.0.0.1"
- name: ETCD_PORT
value: "4001"
volumes:
- name: keystone-config
configMap:
name: keystone-configmap
- name: keystone-persistent-storage
hostPath:
path: /var/lib/keystone
- name: dev
hostPath:
path: /dev