Keystone Service and Pod

Template for the keystone service and pod.
Running the pod will give you an active Keystone
service.

Test with: kubectl create -f kubernetes/keystone/

Change-Id: Ib2d95f04d12acb19b2227ec1ec50d78ba0d7fdde
Partially-implements: blueprint openstack-services
This commit is contained in:
Ryan Hallisey 2016-05-05 09:16:55 -04:00
parent 2100868fab
commit 27f40b1f4a
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
spec:
hostNetwork: True
containers:
#TODO: Use a jinja2 template for image
- image: kollaglue/centos-binary-keystone:2.0.0
name: keystone
volumeMounts:
- mountPath: "/var/lib/kolla/config_files"
name: keystone-config
env:
- name: KOLLA_CONFIG_STRATEGY
value: COPY_ALWAYS
volumes:
- name: keystone-config
hostPath:
path: "/etc/kolla/keystone"
metadata:
name: keystone

View File

@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
spec:
ports:
- port: 35357
selector:
name: keystone-admin
metadata:
name: keystone-admin
---
apiVersion: v1
kind: Service
spec:
ports:
- port: 5000
selector:
name: keystone-public
metadata:
name: keystone-public