
1. Keystone, heat, and horizon CRs are eliminated, and deploy automatically at the beginning. 2. Use a constant namespace "openstack" for the auto-deployed resources. 3. Adjust resource request. Depends-On: https://review.opendev.org/727868/ Change-Id: I75bc8b9e73035f3ca73f00612bc4c50f42473dc3
85 lines
2.2 KiB
Django/Jinja
85 lines
2.2 KiB
Django/Jinja
---
|
|
# Copyright 2020 VEXXHOST, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: keystone
|
|
namespace: openstack
|
|
labels:
|
|
{{ labels("keystone", name) | indent(4) }}
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
{{ labels("keystone", name) | indent(6) }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{ labels("keystone", name) | indent(8) }}
|
|
spec:
|
|
containers:
|
|
- name: keystone
|
|
image: vexxhost/keystone:latest
|
|
imagePullPolicy: Always
|
|
env:
|
|
{% for v in env %}
|
|
- name: "{{ v.name }}"
|
|
value: "{{ v.value }}"
|
|
{% endfor %}
|
|
ports:
|
|
- name: keystone
|
|
containerPort: 5000
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /v3
|
|
port: keystone
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /v3
|
|
port: keystone
|
|
resources:
|
|
limits:
|
|
cpu: 2000m
|
|
ephemeral-storage: 500M
|
|
memory: 1024M
|
|
requests:
|
|
cpu: 200m
|
|
ephemeral-storage: 500M
|
|
memory: 512M
|
|
securityContext:
|
|
runAsUser: 65534
|
|
runAsGroup: 65534
|
|
volumeMounts:
|
|
- mountPath: /etc/keystone
|
|
name: config
|
|
volumes:
|
|
- name: config
|
|
hostPath:
|
|
path: {{ spec['configDir'] }}
|
|
type: Directory
|
|
{% if 'nodeSelector' in spec %}
|
|
nodeSelector:
|
|
{{ spec.nodeSelector | to_yaml | indent(8) }}
|
|
{% endif %}
|
|
{% if 'tolerations' in spec %}
|
|
tolerations:
|
|
{{ spec.tolerations | to_yaml | indent(8) }}
|
|
{% endif %}
|
|
{% if 'hostAliases' in spec %}
|
|
hostAliases:
|
|
{{ spec.hostAliases | to_yaml | indent(8) }}
|
|
{% endif %}
|