Difference between revisions of "Kubectl run nginx --image=nginx"

From wikieduonline
Jump to navigation Jump to search
(Created page with " {{k run}}")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
  
 +
[[k run]] nginx
 +
error: required flag(s) "[[image]]" not set
  
 +
Solution:
 +
kubectl run nginx [[--image]]=nginx
 +
[[pod/]]nginx created
  
 +
== Related ==
 +
* <code>[[kubectl run -it ubuntu --image=ubuntu -- bash]]</code>
 +
* <code>[[kubectl run alpine]]</code>
  
{{k run}}
+
== See also ==
 +
* {{k run}}
 +
 
 +
[[Category:K8s]]

Latest revision as of 10:38, 22 October 2024

k run nginx
error: required flag(s) "image" not set
Solution:
kubectl run nginx --image=nginx
pod/nginx created

Related[edit]

See also[edit]

Advertising: