RedHatOfficial / openemr-kube

OpenShift/Kube deployment info for OpenEMR (https://www.open-emr.org/)
11 stars 13 forks source link

Templating usernames and passwords #5

Closed bostrt closed 4 years ago

bostrt commented 4 years ago

The username and passwords need to be templated in the YAML but afaik there's no common solution across K8s, OCP3, and OCP4. Is supporting all necessary?

OpenShift 3/4:

Kubernetes/OCP4:

All Versions:

maorfr commented 4 years ago

I believe the way to handle this will be to consume the credentials from a k8s Secret: https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-environment-variables

i can submit a PR to handle that if that helps!

jeffcpullen commented 4 years ago

I like that this approach still works with both OCP 3 and 4