Enable secure, browser-friendly access to services that run on the Precisely Agent by creating HTTP or HTTPS ingress rules. You'll use simple
discli commands to preview, apply, and optionally secure ingress with
TLS certificates.
./discli
agent applyOperatorVersion —version=<latest version>. After this,
you can manually update the other services on the agent.Prerequisites:
- Agent is fully installed and healthy (status is green).
- Ensure your terminal can download and run the CLI:
wget https://cdn.cloud.precisely.com/agent-cli/discli && chmod +x ./dis - Optional: A valid TLS certificate and private key file if you plan to enable HTTPS.
Steps to configure HTTP or HTTPS ingress:
- Ingress preview command: Runs a dry-run of the ingress configuration for the
specified hostname. This shows what ingress rules will be created without making any
changes. Use this to validate the hostname and planned routing before
applying.
./discli ingress preview --hostname <hostname> - Ingress apply command: Creates ingress rules for the specified hostname, making
services accessible via HTTP. Run this after confirming the Agent is installed and
healthy.
./discli ingress apply --hostname <hostname> - TLS apply command: Enables HTTPS by applying the provided TLS certificate and
private key. This secures traffic to the hostname with SSL or TLS
encryption.
./discli ingress tls-apply --tls-certificate <tls-certificate> --private-key <private-key>
By completing these steps, you have successfully configured ingress for Agent-hosted services. The preview command helps you validate the configuration before changes, the apply command enables HTTP access, and the TLS apply command secures traffic with HTTPS. This approach ensures consistent, secure connectivity across environments and keeps ingress configuration separate from installation, making it easier to manage and maintain.