Apaar Sharma:
hey everyone, just wanted to know that is there a trick to knowing what resources go into the core api group and what resources go to a specififc api group when vreating roles and clusterroles?
Fernando Jimenez:
https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/
kubectl api-resources -o wide
Madhan Kumar:
curl https://localhost:6443 -k # list all api groups available curl https://localhost:6443/api -k # list all core groups available curl https://localhost:6443/apis -k # list all named groups
Apaar Sharma:
@Fernando Jimenez @Madhan Kumar thanks for the help. still a doubt in a question in one of the practice tests we are asked to create a role to manage deployments and in the hint we are explicitly asked to use the “extension” api group too, why is that?
Madhan Kumar:
not sure , please paste full question …
Madhan Kumar:
hmm … im unable to figure it out …
Fernando Jimenez:
deployments were included previously as part of the extensions group, then it got deprecated but still available when it was placed under apps.
Apaar Sharma:
@Fernando Jimenez thanks for the explanation, I was afraid that for certain resource types we’d have to add multiple apiGroups