Difference between revisions of "Containers:"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 12: Line 12:
 
   imagePullPolicy: IfNotPresent
 
   imagePullPolicy: IfNotPresent
 
   name: redis-your-name
 
   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
  
  

Revision as of 09:28, 8 March 2023


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

Activities

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

See also

Advertising: