Skip to main content
Use TLS when a Kubernetes service receives traffic from browsers, API clients, webhooks, or external systems.
1

Deploy the application

Deploy your workload and confirm the pods are healthy.
2

Create a service

Expose the deployment with a service.
3

Attach a hostname

Use the service hostname created by LayerRail or point a custom DNS record at the load balancer.
4

Enable TLS

Use your ingress controller or certificate manager to request and renew certificates.

Example service

apiVersion: v1
kind: Service
metadata:
  name: web
spec:
  type: LoadBalancer
  selector:
    app: web
  ports:
    - port: 80
      targetPort: 3000

Certificate management

You can use standard Kubernetes tooling such as cert-manager when your cluster is configured for public DNS validation or HTTP validation.
Service hostnames under LayerRail-managed domains can show a waiting page until an application is attached and serving traffic.