Provide internal TLS certificates with cert-manager
Use cert-manager to automate certificate issuance and renewal for internal mutual TLS (mTLS) instead of generating certificates manually with OpenSSL.
Before you begin
- You have cluster administrator access to the OpenShift namespace where automation orchestrator is deployed.
- You have installed and authenticated the
ocCLI. - cert-manager is installed on the cluster.
- You have a configured
IssuerorClusterIssuerresource that can issue certificates. - You have reviewed the certificate requirements in Provide your own internal TLS certificates.
Procedure
cert-manager Certificate resources for automation orchestrator
Use the following Certificate resource definitions when you configure cert-manager to manage internal mutual TLS (mTLS) certificates for automation orchestrator.
The operator names each service as cr-name-component, where cr-name is the metadata.name of your AutomationOrchestrator custom resource. The following examples use my-orchestrator as the custom resource (CR) name and automation-orchestrator as the namespace. Replace these values to match your deployment.
Backend
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ao-backend-tls
namespace: automation-orchestrator
spec:
secretName: ao-backend-tls
issuerRef:
name: your-issuer
kind: Issuer
usages:
- server auth
- client auth
commonName: backend.ao.svc
dnsNames:
- my-orchestrator-backend
- my-orchestrator-backend.automation-orchestrator.svc
- my-orchestrator-backend.automation-orchestrator.svc.cluster.local
- localhost
ipAddresses:
- 127.0.0.1Worker
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ao-worker-tls
namespace: automation-orchestrator
spec:
secretName: ao-worker-tls
issuerRef:
name: your-issuer
kind: Issuer
usages:
- server auth
- client auth
commonName: worker.ao.svc
dnsNames:
- my-orchestrator-worker
- my-orchestrator-worker.automation-orchestrator.svc
- my-orchestrator-worker.automation-orchestrator.svc.cluster.local
- localhost
ipAddresses:
- 127.0.0.1Background worker
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ao-background-worker-tls
namespace: automation-orchestrator
spec:
secretName: ao-background-worker-tls
issuerRef:
name: your-issuer
kind: Issuer
usages:
- server auth
- client auth
commonName: background-worker.ao.svc
dnsNames:
- my-orchestrator-background-worker
- my-orchestrator-background-worker.automation-orchestrator.svc
- my-orchestrator-background-worker.automation-orchestrator.svc.cluster.local
- localhost
ipAddresses:
- 127.0.0.1Temporal
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ao-temporal-tls
namespace: automation-orchestrator
spec:
secretName: ao-temporal-tls
issuerRef:
name: your-issuer
kind: Issuer
usages:
- server auth
- client auth
commonName: temporal.ao.svc
dnsNames:
- my-orchestrator-temporal
- my-orchestrator-temporal.automation-orchestrator.svc
- my-orchestrator-temporal.automation-orchestrator.svc.cluster.local
- localhost
ipAddresses:
- 127.0.0.1UI
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ao-ui-tls
namespace: automation-orchestrator
spec:
secretName: ao-ui-tls
issuerRef:
name: your-issuer
kind: Issuer
usages:
- server auth
- client auth
commonName: ui.ao.svc
dnsNames:
- my-orchestrator-ui
- my-orchestrator-ui.automation-orchestrator.svc
- my-orchestrator-ui.automation-orchestrator.svc.cluster.local
- localhost
ipAddresses:
- 127.0.0.1