Create db-cert bundle
Create db cert bundle if it does not exists as follows:
cat <<EOF | kubectl apply -f -
apiVersion: trust.cert-manager.io/v1alpha1
kind: Bundle
metadata:
name: db-cert
spec:
sources:
- secret:
name: "postgresql-netbackup-ca"
key: "tls.crt"
target:
namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: "$ENVIRONMENT_NAMESPACE"
configMap:
key: "dbcertpem"
EOFAfter installing db-cert bundle, ensure that you have configMap present in netbackup namespace with size 1 as follows:
bash-5.1$ kubectl get configmap db-cert -n $ENVIRONMENT_NAMESPACE NAME DATA AGE db-cert 1 11h
Note:
If the configMap is showing the size as 0, then delete it and ensure that the trust-manager recreates it before proceeding further.