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.
Authentication
Add API authentication details
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
Simplicity: The template is intentionally simple, reflecting the straightforward nature of Endpoints resources.
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
Flexibility: The use of the
variable allows for dynamic population of metadata and subsets.__EP_ID__
Consistency: The template follows the same structure as other ConfigFacets templates, maintaining a consistent user experience.
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 -