Kubernetes API Flashcards

(21 cards)

1
Q

What is the Kubernetes API in the context of cluster operations?

A

The Kubernetes API is the interface exposed by the kube API server that kubectl curl and other clients use to interact with cluster resources.

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

In the lecture example what default port does the kube API server listen on?

A

The kube API server listens on port 6443 by default.

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

What API path is used in the lecture example to get cluster version information?

A

The version information is available from the version endpoint on the API server.

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

What API path is used in the lecture example to get a list of pods from the core API?

A

The pod list is requested from the path api slash v1 slash pods.

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

Why does Kubernetes organize its API into groups?

A

Kubernetes organizes the API into groups so related resources are grouped by purpose and newer features can be added in a structured way.

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

What are the two top level categories of Kubernetes APIs discussed in the lecture?

A

The two top level categories are the core group and the named groups.

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

What kinds of resources are found in the core API group?

A

The core API group contains foundational resources such as pods services namespaces nodes events configmaps secrets persistent volumes and persistent volume claims.

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

What kinds of resources are found in named API groups?

A

Named API groups contain more organized feature areas such as apps networking storage authentication and authorization.

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

Which resources are mentioned in the apps API group in the lecture?

A

The apps group includes resources such as deployments replica sets and stateful sets.

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

Which resource is mentioned in the networking API group in the lecture?

A

The networking group includes network policies.

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

Which resource related to certificates is mentioned in the lecture?

A

The lecture mentions certificate signing requests as an example resource in a named API group.

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

In Kubernetes API terminology what is a resource?

A

A resource is an object type exposed by the API such as a pod deployment service or network policy.

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

In Kubernetes API terminology what is a verb?

A

A verb is an action you can perform on a resource such as get list create update delete or watch.

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

Why are API groups resources and verbs important for authorization?

A

They are important because authorization systems like RBAC grant or deny access based on which verbs a user can perform on which resources in which API groups.

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

Why might a direct curl request to the Kubernetes API fail for most endpoints?

A

A direct curl request usually fails because most endpoints require authentication and you must present valid certificates or other credentials.

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

How can you authenticate to the Kubernetes API directly with curl according to the lecture?

A

You authenticate by passing the client certificate client key and CA certificate in the curl command.

17
Q

What does kubectl proxy do?

A

kubectl proxy starts a local HTTP proxy that uses credentials from your kubeconfig file to forward requests to the kube API server.

18
Q

Why can kubectl proxy be convenient when exploring the API?

A

It lets you query the API locally without repeatedly passing certificate files on every curl command.

19
Q

What local port does kubectl proxy use in the lecture?

A

kubectl proxy listens locally on port 8001.

20
Q

What is the difference between kube proxy and kubectl proxy?

A

kube proxy handles service networking inside the cluster while kubectl proxy is a local client side HTTP proxy for accessing the Kubernetes API server.

21
Q

What is a useful CKAD exam connection between API groups and kubectl commands?

A

Understanding API groups helps you read resource documentation faster and makes RBAC and troubleshooting more intuitive during exam tasks.