Repositories
v1v
Published by: Kubernetes2Updated

Services Resources - v1 offers a comprehensive suite of templates for Kubernetes Service resources, including Service, Endpoints, Ingress, and IngressClass, enabling efficient management of network services and traffic routing in clusters. These templates utilize a flexible, facet-based design with dynamic variable population, streamlining the creation and configuration of service-related resources while accommodating a wide range of networking scenarios in Kubernetes environments.

v1
services
|

Authentication

Add API authentication details

HEADERS
X-APIKEY
string
Send X-APIKEY in Header

Readme

User instructions for this resource

The Endpoints template in ConfigFacets is designed to create and manage Kubernetes Endpoints resources. Endpoints represent the set of IP addresses and ports where a Kubernetes Service is actually running.

Key aspects of the template design

  1. Simplicity: The template is intentionally simple, reflecting the straightforward nature of Endpoints resources.

  2. Modularity: The template uses two main sections:

  • A "master" facet for the core Endpoints fields (kind, apiVersion, metadata)

  • An "addon:subsets" facet for the actual endpoint subsets

  1. Flexibility: The use of the __EP_ID__ variable allows for dynamic population of metadata and subsets.

  2. Consistency: The template follows the same structure as other ConfigFacets templates, maintaining a consistent user experience.

  3. Extensibility: While Endpoints are typically simple, the facet-based approach allows for easy addition of new fields if needed in the future.

Examples

Check Request Body tab section to play around with interactive examples.

Install(Example)

The Curl tab in the request section below provides the curl command for your resource.

curl -s -X POST "https://configfacets.com/apis/repos/kubernetes/service-resources/v1/resources/collections/endpoints/exec?format=json" -d '{"facets":["master","addon:subsets"],"values":{"basic_ep":{"subsets":[{"ports":[{"port":9376}],"addresses":[{"ip":"192.0.2.42"}]}],"metadata":{"name":"my-service","namespace":"default"}}},"globalvars":{"__EP_ID__":"basic_ep"}}' | kubectl apply -f -
POST/apis/repos/kubernetes/service-resources/v1/resources/collections/endpoints/exec
REQUEST
QUERY-STRING PARAMETERS
format
string
No sources available.
API Server https://configfacets.com
API Key
Not set
RESPONSES
No content available.