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 IngressClass template in ConfigFacets is designed to create and manage Kubernetes IngressClass resources, which are used to specify the controller that should implement an Ingress.

Key aspects of the template design

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

  2. Modularity: The template is divided into three main sections:

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

  • An "addon:controller" facet for specifying the Ingress controller

  • An "addon:parameters" facet for optional additional configuration

  1. Flexibility: The use of the __IC_ID__ variable allows for dynamic population of all IngressClass fields.

  2. Optional Components: By using separate facets for different spec components, users can easily include or exclude parts of the IngressClass configuration as needed.

  3. Consistency: The template follows the same structure as other ConfigFacets templates, maintaining a consistent user experience across different resource types.

  4. Extensibility: While IngressClass resources are typically simple, the facet-based approach allows for easy addition of new fields if needed in future Kubernetes versions.

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/ingressclass/exec?format=json" -d '{"facets":["master","addon:spec","addon:controller"],"values":{"basic_ic":{"spec":{"controller":"example.com/ingress-controller"},"metadata":{"name":"external-lb"}}},"globalvars":{"__IC_ID__":"basic_ic"}}' | kubectl apply -f -
POST/apis/repos/kubernetes/service-resources/v1/resources/collections/ingressclass/exec
REQUEST
QUERY-STRING PARAMETERS
format
string
No sources available.
API Server https://configfacets.com
API Key
Not set
RESPONSES
No content available.