O'Reilly logo

Kubernetes Cookbook, 2nd Edition by Ke-Jou Carol Hsu, Hui-Chuan Chloe Lee, Hideto Saito

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

Kubernetes has a schema that is defined using a verify configuration format; schema can be generated after the first instance of running the subcommand create with a configuration file. The cached schema will be stored under the .kube/cache/discovery/<SERVICE_IP>_<PORT>, based on the version of API server you run:

// create the resource by either YAML or JSON file introduced before$ kubectl create -f nginx-pod.yaml// or$ kubectl create -f nginx-pod.json// as an example of v1.10.0, the content of schema directory may look like following// you would have different endpoint of serverll ~/.kube/cache/discovery/192.168.99.100_8443/total 76drwxr-xr-x 18 nosus nosus 4096 May 6 10:10 ./drwxr-xr-x 4 nosus nosus 4096 May 6 10:00 ../ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required