[Kubernetes] Kubectl apply

[Kubernetes] Kubectl apply

  • kubectl apply
    • Remember the three management approaches?
    • Let's skip to full Declarative objects
      • kubectl apply -f filename.yml
    • Why skip kubectl create, kubectl replace, kubectl edit?
    • What I recommend != all that's possible
  • Using kubectl apply
    • create/update resources in a file
      • kubectl apply -f myfile.yaml
    • create/update a whole directory of yaml
      • kubectl apply -f myyaml/
    • create/update from a URL
      • kubectl apply -f https://bret.run/pod.yml
    • Be careful, lets look at it first (browser or curl)
      • curl -L https://bret.run/pod
      • Win PoSH? start https://bret.run/pod.yml