Security - API Groups Flashcards

1
Q

In what groups are the Kubernetes apis grouped?

A
  • /metrics
  • /healthz
  • /version
  • /api (core)
  • /apis (named)
  • /logs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the /api (core) group encompass?

A

Covers all core functionality. Like
- namespaces
- pods
- nodes
- PVs
- PVCs
- configmaps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly