Files
openstack-operator/openstack_operator/templates/ceilometer/deployment-agent-notification.yml.j2
okozachenko 1c5ea0f579 Use uwsgi yaml file instead of environment vairable
to set the default params of uwsgi

Change-Id: I25ce013f2f793af31fb38842ab2eb5e0d597ff5b
2020-07-07 17:30:40 +00:00

94 lines
2.6 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:
namespace: openstack
name: ceilometer-agent-notification
labels:
{{ labels("ceilometer", "ceilometer") | indent(4) }}
spec:
replicas: 1
selector:
matchLabels:
{{ labels("ceilometer", "ceilometer") | indent(6) }}
template:
metadata:
annotations:
checksum/config: "{{ config_hash }}"
labels:
{{ labels("ceilometer", "ceilometer") | indent(8) }}
spec:
containers:
- name: agent
image: vexxhost/ceilometer-agent-notification:latest
imagePullPolicy: Always
volumeMounts:
- name: ceilometer-config
mountPath: /etc/ceilometer
- name: uwsgi-config
mountPath: /etc/uwsgi
resources:
limits:
cpu: 1000m
ephemeral-storage: 1G
memory: 256M
requests:
cpu: 200m
ephemeral-storage: 1G
memory: 128M
- name: atmosphere-ingress
image: vexxhost/atmosphere-ingress
imagePullPolicy: Always
env:
- name: "DATABASE_URI"
value: "{{ spec.dbUri }}"
{% if env is defined %}
{% for v in env %}
- name: "{{ v.name }}"
value: "{{ v.value }}"
{% endfor %}
{% endif %}
resources:
limits:
cpu: 100m
ephemeral-storage: 100M
memory: 128M
requests:
cpu: 50m
ephemeral-storage: 100M
memory: 64M
volumes:
- name: ceilometer-config
secret:
secretName: ceilometer-config
- name: uwsgi-config
configMap:
defaultMode: 420
name: uwsgi-default
securityContext:
runAsUser: 65534
runAsGroup: 65534
fsGroup: 65534
{% if 'nodeSelector' in spec %}
nodeSelector:
{{ spec.nodeSelector | to_yaml | indent(8) }}
{% endif %}
{% if 'tolerations' in spec %}
tolerations:
{{ spec.tolerations | to_yaml | indent(8) }}
{% endif %}