Difference between revisions of "MountPath"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
       [[readOnly]]: true
 
       [[readOnly]]: true
  
 +
 +
{{Alpine with volume}}
 +
 +
== Related ==
 +
* [[host_path]] in [[ECS]]
 +
* [[Distribute Credentials Securely Using Secrets]]
  
 
== See also ==
 
== See also ==

Latest revision as of 11:03, 15 October 2024

extraVolumeMounts: |
   - name: mynewvolume
     mountPath: /usr/share/extras
     readOnly: true


   volumeMounts:
   - mountPath: /data
     name: persistent-storage
   - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
     name: kube-api-access-jhnds
     readOnly: true


apiVersion: v1
kind: Pod
metadata:
  name: myalpinewithvolume
spec:
  containers:
  - name: alpine
    image: alpine:latest
    command: ['ash']
    tty: true
    stdin: true
    volumeMounts:
    - name: myvolume
      mountPath: /myvolume
  volumes:
  - name: myvolume
    persistentVolumeClaim:
      claimName: myPVCtoMount

Related[edit]

See also[edit]

Advertising: