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

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

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: