Welcome to the Linux Foundation Forum!

kubectl run command does not seems to generate deployment

In the "Managing State with Deployments" it says :
"The default controller for a container deployed via kubectl run command is a Deployment."
But the kubectl run command generate/deploy Pod object not Deployment :

  1. $ kubectl run nginx --image=nginx --dry-run=client -o yaml
  2. apiVersion: v1
  3. kind: Pod
  4. metadata:
  5. creationTimestamp: null
  6. labels:
  7. run: nginx
  8. name: nginx
  9. spec:
  10. containers:
  11. - image: nginx
  12. name: nginx
  13. resources: {}
  14. dnsPolicy: ClusterFirst
  15. restartPolicy: Always
  16. status: {}

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training