API Groups
An API group is a collection of resources that are logically related to each other. For example, Deployments, ReplicaSets, and DaemonSets all belong to the apps API group: apps/v1
.
Note
You will learn about Deployments, ReplicaSets, and DaemonSets in detail in Chapter 7, Kubernetes Controllers. In fact, this chapter will talk about many API resources that you will encounter in later chapters.
The --api-group
flag can be used to scope the output to a specific API group, as we will see in the following sections. Let's take a closer look at the various API groups in the following sections.
Core Group
This is also called the legacy group. It contains objects such as pods, services, nodes, and namespaces. The URL path for these is /api/v1
, and nothing other than the version is specified in the apiVersion
field. For example, consider the following screenshot where we are getting information about a pod: