message-tagging-service: fix configmap and DC

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
Chenxiong Qi
2019-07-26 15:12:42 +08:00
committed by Pierre-Yves Chibon
parent bc73da2835
commit 949615fa8a
2 changed files with 12 additions and 3 deletions

View File

@@ -6,15 +6,16 @@ metadata:
labels:
app: "{{ app }}"
data:
app_config.py: |-
config.py: |-
class BaseConfiguration:
# Set this to False when MTS is ready to work on either stg or prod
# FIXME: Set this to False when MTS is ready to work on either stg or prod
dry_run = True
log_level = 'DEBUG'
keytab = '/etc/krb5.keytab'
principal = '{{ app }}/{{ app }}{{ env_suffix }}.fedoraproject.org@{{ ipa_realm }}'
log_level = 'INFO'
messaging_backend = 'fedmsg'
messaging_backends = {
'fedmsg': {'service': 'mts'},
@@ -47,6 +48,7 @@ metadata:
data:
mts.py: |-
config = {
'zmq_enabled': True,
'mts-consumer': True,
'validate_signatures': False,
'active': True,

View File

@@ -18,6 +18,7 @@ spec:
spec:
containers:
- name: "{{ app }}"
image: "quay.io/factory2/{{ app }}:{{ quay_tag }}"
ports:
- containerPort: 8080
volumeMounts:
@@ -51,6 +52,12 @@ spec:
path: /
port: 8080
volumes:
- name: "{{ app }}-config"
configMap:
name: "{{ app }}-config"
- name: "{{ app }}-fedmsg"
configMap:
name: "{{ app }}-fedmsg"
- name: keytab
secret:
secretName: keytab