Difference between revisions of "Containers:"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(13 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
* <code>[[kind: Pod]]</code>
 
* <code>[[kind: Pod]]</code>
 
* <code>[[kind: ReplicaSet]]</code>
 
* <code>[[kind: ReplicaSet]]</code>
 +
* <code>[[kind: Deployment]]</code>
  
 +
[[spec.containers]]
 +
 +
[[env:]]
 +
[[volumeMounts:]]
 +
[[image]]:
 +
[[resources:]]
 +
 +
containers:
 +
- [[command:]]
 +
  - [[redis-server]]
 +
  - --dir /data
 +
  - --dbfilename dump.rdb
 +
  image: redis:latest
 +
  imagePullPolicy: IfNotPresent
 +
  name: redis-your-name
 +
  ports:
 +
  - containerPort: 6379
 +
    name: http
 +
    protocol: TCP
 +
  resources: {}
 +
  terminationMessagePath: /dev/termination-log
 +
  terminationMessagePolicy: File
 +
  [[volumeMounts:]]
 +
  - [[mountPath]]: /data
 +
    name: persistent-storage
 +
  - [[mountPath]]: /var/run/secrets/kubernetes.io/serviceaccount
 +
    name: kube-api-access-jhnds
 +
    readOnly: true
  
  
Line 17: Line 46:
 
== Related ==
 
== Related ==
 
* <code>[[kubectl describe pods]]</code>
 
* <code>[[kubectl describe pods]]</code>
 +
* [[Kubernetes, env:]]
 +
* [[env:]]
 +
* [[spec:]]
 +
* [[liveness:]]
 +
* [[readiness:]]
  
 
== See also ==
 
== See also ==
* {{ReplicaSet}}
+
* {{containers:}}
 +
* {{containers}}
 
* {{Kubernetes services}}
 
* {{Kubernetes services}}
 
* {{Kubernetes Workloads}}
 
* {{Kubernetes Workloads}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 07:52, 24 July 2024

spec.containers
env:
volumeMounts:
image:
resources:
containers:
- command:
  - redis-server
  - --dir /data
  - --dbfilename dump.rdb
  image: redis:latest
  imagePullPolicy: IfNotPresent
  name: redis-your-name
  ports:
  - containerPort: 6379
    name: http
    protocol: TCP
  resources: {}
  terminationMessagePath: /dev/termination-log
  terminationMessagePolicy: File
  volumeMounts:
  - mountPath: /data
    name: persistent-storage
  - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
    name: kube-api-access-jhnds
    readOnly: true


spec.containers: image

See also[edit]

Activities[edit]

https://kubernetes.io/docs/tasks/configure-pod-container/quality-service-pod/#create-a-pod-that-gets-assigned-a-qos-class-of-guaranteed
qosClass: Guaranteed

Related[edit]

See also[edit]

Advertising: