Difference between revisions of "Template:Alpine cp example"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
  [[kind: Pod]]
 
  [[kind: Pod]]
 
  metadata:
 
  metadata:
   name: myalpinedataaccess
+
   name: myalpinewithvolume
 
  spec:
 
  spec:
 
   containers:
 
   containers:

Revision as of 16:08, 8 February 2024

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

Advertising: