April 2018
Intermediate to advanced
468 pages
14h 34m
English
You develop your custom resources using custom resource definitions, aslo known as CRD. The intention is for CRDs to integrate smoothly with Kubernetes, its API, and its tooling, so you need to provide a lot of information. Here is an example for a custom resource called Candy:
apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: # name must match the spec fields below, and be in the form: <plural>.<group> name: candies.awesome.corp.com spec: # group name to use for REST API: /apis/<group>/<version> group: awesome.corp.com # version name to use for REST API: /apis/<group>/<version> version: v1 # either Namespaced or Cluster scope: Namespaced names: # plural name to be used ...
Read now
Unlock full access