Difference between revisions of "Template:Alpine with volume"

From wikieduonline
Jump to navigation Jump to search
(Created page with " apiVersion: v1 kind: Pod metadata: name: myalpinewithvolume spec: containers: - name: alpine image: alpine:latest command: ['ash'] tty:...")
Tags: Mobile web edit, Mobile edit
 
Tags: Mobile web edit, Mobile edit
 
Line 4: Line 4:
 
   name: myalpinewithvolume
 
   name: myalpinewithvolume
 
  spec:
 
  spec:
   containers:
+
   [[containers:]]
 
   - name: alpine
 
   - name: alpine
 
     image: alpine:latest
 
     image: alpine:latest

Latest revision as of 16:12, 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: