Examples

Trusted Private Endpoints

Lets one hostname endpoint resolve into private space, such as a Kubernetes Service name resolving to its ClusterIP

Praxis v0.8.0 1 min read

Category: Setup-dependent integration
Task: Lets one hostname endpoint resolve into private space, such as a Kubernetes Service name resolving to its ClusterIP

Prerequisites: The external service, credentials, or certificates referenced by this configuration.

Run it: Use ghcr.io/praxis-proxy/praxis:0.8.0 and follow the first reverse-proxy tutorial to mount and start the configuration.

This configuration comes from the selected release. The example has not been run here; external services are not bundled.

Download the source file.

# Trusted Private Endpoints
#
# Lets one hostname endpoint resolve into private space, such as a
# Kubernetes Service name resolving to its ClusterIP.
#
listeners:
  - name: default
    address: "0.0.0.0:8080"
    filter_chains: [main]

filter_chains:
  - name: main
    filters:
      - filter: router
        routes:
          - path_prefix: "/"
            cluster: backend
      - filter: load_balancer
        clusters:
          - name: backend
            endpoints:
              - "backend.models.svc.cluster.local.:3000"
            trusted_private_endpoints:
              - "backend.models.svc.cluster.local"