Difference between revisions of "Pause"

From wikieduonline
Jump to navigation Jump to search
(Created page with " Docker pause sleep ansible.builtin.pause")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
  
 +
* <code>[[Docker pause]]</code>
 +
* <code>[[sleep]]</code>
 +
* <code>[[ansible.builtin.pause]]</code>
  
[[Docker pause]]
 
  
  [[sleep]]
+
  [[kubectl run]] ephemeral-demo --image=[[registry.k8s.io]]/pause:3.1 [[--restart]]=Never
  
[[ansible.builtin.pause]]
+
<pre>
 +
kind: Pod
 +
apiVersion: v1
 +
metadata:
 +
  name: mypod
 +
  labels:
 +
    foo: bar
 +
spec:
 +
  topologySpreadConstraints:
 +
  - maxSkew: 1
 +
    topologyKey: zone
 +
    whenUnsatisfiable: DoNotSchedule
 +
    labelSelector:
 +
      matchLabels:
 +
        foo: bar
 +
  affinity:
 +
    nodeAffinity:
 +
      requiredDuringSchedulingIgnoredDuringExecution:
 +
        nodeSelectorTerms:
 +
        - matchExpressions:
 +
          - key: zone
 +
            operator: NotIn
 +
            values:
 +
            - zoneC
 +
  containers:
 +
  - name: pause
 +
    image: registry.k8s.io/pause:3.1
 +
</pre>
 +
 
 +
== See also ==
 +
* {{docker}}
 +
 
 +
[[Category:Computing]]

Latest revision as of 07:30, 20 September 2023



kubectl run ephemeral-demo --image=registry.k8s.io/pause:3.1 --restart=Never
kind: Pod
apiVersion: v1
metadata:
  name: mypod
  labels:
    foo: bar
spec:
  topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: zone
    whenUnsatisfiable: DoNotSchedule
    labelSelector:
      matchLabels:
        foo: bar
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: zone
            operator: NotIn
            values:
            - zoneC
  containers:
  - name: pause
    image: registry.k8s.io/pause:3.1

See also[edit]

Advertising: