Security - API Groups Flashcards
1
Q
In what groups are the Kubernetes apis grouped?
A
- /metrics
- /healthz
- /version
- /api (core)
- /apis (named)
- /logs
2
Q
What does the /api (core) group encompass?
A
Covers all core functionality. Like
- namespaces
- pods
- nodes
- PVs
- PVCs
- configmaps
3
Q
What does the /apis (named) group encompass?
A
- more organised
- future additions will be added here
Covers: - /apps (deployments, replicasets,…)
- /extensions
- /networking.k8s.io
- /storage.k8s.io
- /authentication.k8s.io
- /certificates.k8s.io
4
Q
What is special about the resources listed in the /api and /apis group?
A
- every resource has a set of actions, that can be done with them (verbs)
For apps/v1/deployments for instance: - list / get / create / delete / update / watch
5
Q
How can you ask all api groups from the kubeapi server?
A
curl http://localhost:6443 -k
–key admin.key
–cert admin.crt
–cacert ca.crt
6
Q
What does the ‘kubectl proxy’ command do?
A
Starts a proxy service locally on port 8001, using credentials and certificates from kubeconfig file for access
So that you don’t have to specify them in the curl http://localhost:8001 -k command
7
Q
A