You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mq:
version: 9.1.3.0# Set to True if running MQ in HA modeuseConnectionNameList: truetlsSecretName: 'spm-dev01-mq-secret'
The pods for mqserver-curam and mqserver-rest don't start correctly and throw the following error:
MountVolume.SetUp failed for volume "service-certs" : secret "spm-dev01-spm-dev01-mq-secret" not found
This seems to be caused by inconsistencies between apps/templates/deployment-consumer.yaml, apps/templates/deployment-producer.yaml and mqserver/templates/deployment.yaml
the Apps producer/consumer deployment scripts set the mq-cert secret volume as such:
{{- if $.Values.global.mq.tlsSecretName }}
- name: mq-certssecret:
{{- if $.Values.global.mq.useConnectionNameList }}secretName: {{ $.Values.global.mq.tlsSecretName }}{{- else }}secretName: {{ $.Release.Name }}-mq-secret{{- end }}{{- end}}
Whereas the MQ deployment.yaml sets service-certs as:
Whether certificates are used or not was never supposed to be conditional - certificates must always be available, it is a matter of whether they are system-generated, or provided externally, specifically in the case of MQ hosted outside the cluster (on VMs).
Issue:
When setting variables for MQ as follows:
The pods for
mqserver-curam
andmqserver-rest
don't start correctly and throw the following error:This seems to be caused by inconsistencies between
apps/templates/deployment-consumer.yaml
,apps/templates/deployment-producer.yaml
andmqserver/templates/deployment.yaml
the Apps producer/consumer deployment scripts set the
mq-cert
secret volume as such:Whereas the MQ deployment.yaml sets
service-certs
as:This leads the the namespace, in the this case
spm-dev01
been suffixed toservice-certs
but not tomq-certs
If
tlsSecretName
is left at the default ofmq-secret
the opposite occurs and the consumer/producer pods fail to deploy.Solution:
Changing
mqserver/templates/deployment.yaml
andmqserver/templates/statefulset.yaml
from:
to:
Fixes the issue, although i'm a bit unsure on some of the logic here, don't the if statements need to be other other way round e.g
The text was updated successfully, but these errors were encountered: