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 ../ ...