Merge "Replace jmalloc/echo-server with vexxhost/atmosphere"

This commit is contained in:
Zuul 2020-06-18 15:51:39 +00:00 committed by Gerrit Code Review
commit 22d14c318c
4 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,8 @@
---
secretName: devstack
configMap:
ceilometer:
dbUri: "sqlite:///:memory:"
horizon:
ingress:
host: "horizon.vexxhost.com"

View File

@ -4,6 +4,8 @@ metadata:
name: operator-config
data:
operator-config.yaml: |
ceilometer:
dbUri: "sqlite:///:memory:"
horizon:
ingress:
host: "horizon.vexxhost.com"

View File

@ -25,8 +25,10 @@ def create_or_resume(spec):
"""Create or start-up Ceilometer."""
config_hash = utils.generate_hash(spec)
env = utils.get_uwsgi_env()
utils.create_or_update('ceilometer/secret.yml.j2', spec=spec)
utils.create_or_update('ceilometer/deployment-agent-notification.yml.j2',
spec=spec, config_hash=config_hash)
spec=spec, env=env,
config_hash=config_hash)
utils.create_or_update('ceilometer/horizontalpodautoscaler.yml.j2')

View File

@ -35,6 +35,13 @@ spec:
containers:
- name: agent
image: vexxhost/ceilometer-agent-notification:latest
env:
- name: "DATABASE_URI"
value: "{{ spec.dbUri }}"
{% for v in env %}
- name: "{{ v.name }}"
value: "{{ v.value }}"
{% endfor %}
volumeMounts:
- name: ceilometer-config
mountPath: /etc/ceilometer
@ -48,10 +55,7 @@ spec:
ephemeral-storage: 1G
memory: 128M
- name: atmosphere-ingress
image: jmalloc/echo-server
env:
- name: LOG_HTTP_BODY
value: 'true'
image: vexxhost/atmosphere-ingress
volumes:
- name: ceilometer-config
secret: