Difference between revisions of "VolumeMounts:"

From wikieduonline
Jump to navigation Jump to search
Line 23: Line 23:
  
 
== Related ==
 
== Related ==
* <>code[[Kubernetes volumes|volumes:]]</code>
+
* <code>[[Kubernetes volumes|volumes:]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 06:03, 23 November 2022


apiVersion: v1
kind: Pod
metadata:
  name: test-ebs
spec:
  containers:
  - image: registry.k8s.io/test-webserver
    name: test-container
    volumeMounts:
    - mountPath: /test-ebs
      name: test-volume
  volumes:
  - name: test-volume
    # This AWS EBS volume must already exist.
    awsElasticBlockStore:
      volumeID: "<volume id>"
      fsType: ext4

Related

See also

Advertising: