jamiehannaford / what-happens-when-k8s

🤔 What happens when I type kubectl run?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generators in kubectl are deprecated

solacelost opened this issue · comments

Kubernetes has deprectated generators in kubectl run in version 1.18.

https://kubernetes.io/docs/setup/release/notes/#deprecation-4

Remove all the generators from kubectl run. It will now only create pods. Additionally, deprecates all the flags that are not relevant anymore.

This affects the sections:

  • Intro
    • kubectl run nginx --image=nginx --replicas=3

  • Validation and generators
    • To construct the HTTP request, kubectl uses something called generators which is an abstraction that takes care of serialization.

  • API groups and version negotiation
    • After kubectl generates the runtime object

  • etcd
    • (kinda like the inverse process of kubectl's generators)

And that's all I could find with some grokking.