Multiple domains
Example: Use different domains for production and staging environments
Add acme
chart to helmfiles/jx-production/helmfile.yaml
Create a file helmfiles/jx-production/acme-values.yaml
Do the same for other environments, e.g. staging. Make sure the correct namespace is set.
Add ingress and tls configuration to the environments in jx-requirements.yaml
Make sure to use the correct secretName
, as it’s being generated (production or staging) by the acme
chart.
Since you don’t need namespaceSubDomain
any more, set it to .
in the root ingress config.
Commit and push the changes
After the pipeline has successfully run, you should have
- a
ClusterIssuer
for the dev domain - a
Issuer
for production in the namespacejx-production
- a
Issuer
for staging in the namespacejx-staging
Applications should pick up the secret name from jx-values.yaml
and use the correct certificate.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.