Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 909 Bytes

apis.md

File metadata and controls

36 lines (22 loc) · 909 Bytes

Get all api-resource and check the short names, api version.

show

kubectl api-resources


Get the Api Group for jobs api

show

kubectl api-resources | grep jobs
#cronjobs                          cj           batch/v1beta1                          true         CronJob
#jobs                                           batch/v1                               true         Job


Enable the v1alpha1 version for rbac.authorization.k8s.io API group on the controlplane node.

show

Add --runtime-config=rbac.authorization.k8s.io/v1alpha1 to the /etc/kubernetes/manifests/kube-apiserver.yaml file and let the kube-apiserver restart