okozachenko 10f9be432a Remove some CRs, and deploy at the startup of the operator
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
2020-05-23 18:45:27 -04:00

63 lines
1.6 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: {{ .Release.Namespace }}
name: {{ include "openstack-operator.fullname" . }}
labels:
{{ include "openstack-operator.labels" . | indent 4 }}
spec:
selector:
matchLabels:
{{ include "openstack-operator.labels" . | indent 6 }}
template:
metadata:
labels:
{{ include "openstack-operator.labels" $ | indent 8 }}
spec:
serviceAccountName: {{ include "openstack-operator.fullname" . }}
terminationGracePeriodSeconds: 10
containers:
- name: operator
image: vexxhost/openstack-operator:latest
command: ["/usr/local/bin/kopf"]
env:
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{{- with .Values.secretName }}
envFrom:
- secretRef:
name: {{ . }}
{{- end }}
args:
- run
- -m
- openstack_operator.operator
- -m
- openstack_operator.mcrouter
- -m
- openstack_operator.memcached
- -m
- openstack_operator.openstack.identity.endpoints
- -m
- openstack_operator.openstack.identity.services
- -m
- openstack_operator.rabbitmq
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}