Difference between revisions of "Pause"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
* <code>[[sleep]]</code>
 
* <code>[[sleep]]</code>
 
* <code>[[ansible.builtin.pause]]</code>
 
* <code>[[ansible.builtin.pause]]</code>
 +
 +
<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 ==
 
== See also ==

Revision as of 14:49, 16 December 2022


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

Advertising: