OpenStack operator for Kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

66 lines
1.7 KiB

---
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:
{{- with .Values.sentryDSN }}
- name: SENTRY_DSN
value: {{ .Values.sentryDSN }}
{{- end }}
- 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 }}