1

When you read about API Groups in Kubernetes, you may come across group names like core/v1, batch/v1, storage.k8s.io/v1, and scheduling.k8s.io/v1. Some of these groups have the k8s.io postfix, while others do not. It can be confusing when specifying the apiVersion in your Kubernetes manifests, as you need to specify it as like v1, batch/v1, and storage.k8s.io/v1.

Knowing the reason will make me less confused.

Thanks.

  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Apr 09 '23 at 02:18

1 Answers1

2

I haven't found a precise explanation for your question, I believe it's an implementation choice.

But I'm sharing some resources that might clarify your ideas a bit.

Resources are bound together in API groups - each group may have one or more versions that evolve independent of other API groups, and each version within the group has one or more resources. Group names are typically in domain name form - the Kubernetes project reserves use of the empty group, all single word names ("extensions", "apps"), and any group name ending in "*.k8s.io" for its sole use. When choosing a group name, we recommend selecting a subdomain your group or organization owns, such as "widget.mycompany.com".

https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#api-conventions

https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#api-conventions

https://stackoverflow.com/a/57854939/21404450

glv
  • 994
  • 1
  • 1
  • 15