Geek Culture
Published in

Geek Culture

K8s — Two Ways to Create Resources

A little K8s knowledge everyday!

In K8s, there are two ways of creating resources:

  • Create it directly with the kubectl run command
  • Create it from a YAML file with kubectl create/apply command

In this article, I will explain both ways, when to use each method with examples.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store