oc_expose
Expose OpenShift services or deployments as secure routes with SSL/TLS termination, supporting edge, passthrough, and reencrypt options.
Instructions
Expose an OpenShift resource (service, deployment, etc.) with secure route endpoints supporting SSL/TLS termination
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Path to TLS private key file | |
| name | Yes | Name of the resource to expose | |
| path | No | Path for the route (e.g., /api) | |
| port | No | Target port to expose (port name or number) | |
| dryRun | No | Show what would be created without actually creating it | |
| labels | No | Labels to apply to the route in KEY=VALUE format | |
| weight | No | Weight for this route (0-256) | |
| context | No | OpenShift context to use (optional) | |
| hostname | No | Custom hostname for the route | |
| namespace | No | OpenShift namespace/project | default |
| routeName | No | Name for the route (if not specified, derives from resource name) | |
| routeType | No | Type of secure route: edge (SSL termination at router), passthrough (SSL passthrough), reencrypt (SSL re-encryption) | edge |
| annotations | No | Annotations to apply to the route in KEY=VALUE format | |
| certificate | No | Path to TLS certificate file | |
| resourceType | Yes | Resource type to expose (service, deploymentconfig, deployment) | |
| caCertificate | No | Path to CA certificate file | |
| tlsTermination | No | TLS termination type (deprecated, use routeType instead) | |
| wildcardPolicy | No | Wildcard policy for the route | None |
| destinationCaCertificate | No | Path to destination CA certificate file (for reencrypt) | |
| insecureEdgeTerminationPolicy | No | Policy for insecure traffic: None (reject), Allow (allow), Redirect (redirect to secure) | Redirect |