Kubectl run: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * kubectl =Overview= ==Options== ===--generator=== <syntaxhighlight lang='text'> kubectl run dnsutils --image=tutum/dnsutils --generator=ru...")
 
 
Line 7: Line 7:


===--generator===
===--generator===
Tells Kubernetes to create a pod directly, without any kind of pod controller.


<syntaxhighlight lang='text'>
<syntaxhighlight lang='text'>
kubectl run dnsutils --image=tutum/dnsutils --generator=run-pod/v1 --command -- sleep infinity
kubectl run dnsutils --image=tutum/dnsutils --generator=run-pod/v1 --command -- sleep infinity
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 00:02, 23 September 2020

Internal

Overview

Options

--generator

Tells Kubernetes to create a pod directly, without any kind of pod controller.

kubectl run dnsutils --image=tutum/dnsutils --generator=run-pod/v1 --command -- sleep infinity