Apoxy
Core API

Backends

API reference for Backends (core.apoxy.dev/v1alpha2)

API Group: core.apoxy.dev/v1alpha2

Operations

List Backends

GET/apis/core.apoxy.dev/v1alpha2/backends

List Backend

Response

  • 200: OK

Create Backend

POST/apis/core.apoxy.dev/v1alpha2/backends

Create a Backend

Request Body

Spec fields (BackendSpec):

FieldTypeDescription
dynamicProxyDynamicProxySpecSpecifies whether the backend should be dynamically proxied. If specified, Envoy's HTTP Dynamic Forward Proxy will be used to proxy requests to the backend. See: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_proxy#arch-overview-http-dynamic-forward-proxy
endpointsBackendEndpoint[]List of endpoints to connect to. (required)
protocolstringProtocol defines a protocol to use for the backend. (required)

Response

  • 200: OK
  • 201: Created
  • 202: Accepted

Delete All Backends

DELETE/apis/core.apoxy.dev/v1alpha2/backends

Delete collection of Backend

Response

  • 200: OK

Get Backend

GET/apis/core.apoxy.dev/v1alpha2/backends/{name}

Get the specified Backend

Response

  • 200: OK

Replace Backend

PUT/apis/core.apoxy.dev/v1alpha2/backends/{name}

Replace the specified Backend

Request Body

Spec fields (BackendSpec):

FieldTypeDescription
dynamicProxyDynamicProxySpecSpecifies whether the backend should be dynamically proxied. If specified, Envoy's HTTP Dynamic Forward Proxy will be used to proxy requests to the backend. See: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_proxy#arch-overview-http-dynamic-forward-proxy
endpointsBackendEndpoint[]List of endpoints to connect to. (required)
protocolstringProtocol defines a protocol to use for the backend. (required)

Response

  • 200: OK
  • 201: Created

Update Backend

PATCH/apis/core.apoxy.dev/v1alpha2/backends/{name}

Partially update the specified Backend

Response

  • 200: OK
  • 201: Created

Delete Backend

DELETE/apis/core.apoxy.dev/v1alpha2/backends/{name}

Delete a Backend

Response

  • 200: OK
  • 202: Accepted

Schema Reference

DynamicProxySpec

FieldTypeDescription
dnsCacheConfigDynamicProxyDnsCacheConfig

DynamicProxyDnsCacheConfig

FieldTypeDescription
dnsLookupFamilystringSpecifies the DNS lookup family to use for the dynamic proxy. Default is "auto".
dnsMinRefreshRateDurationSpecifies the minimum refresh rate for DNS hosts. If a host is resolved and the TTL is less than this value, the host will be refreshed at this rate. Default is 5s and must be at least 1s.
dnsQueryTimeoutDurationSpecifies the timeout for DNS queries. Default is 5s.
dnsRefreshRateDurationSpecifies the refresh rate for unresolved DNS hosts. Once a host is resolved, the TTL from the DNS response is used. If the TTL is not present, the resolved host is cached for 60s by default. Must be at least 1ms, and defaults to 60s.
hostTTLDurationTTL for unused hosts. Hosts that have not been used for this duration will be removed from the cache. Default is 5m.
maxHostsinteger (int64)Maximum number of hosts to cache. Default is 1024.

On this page