Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
apiVersion: v1
kind: Pod
metadata:
  name: busybox1
  namespace: default
spec:
  containers:
  - image: busybox
    command:
      - sleep
      - "3600"
    volumeMounts:
    - name: "glfs"
      mountPath: "/var/glfs/global"
    imagePullPolicy: IfNotPresent
    name: busybox
  volumes:
  - name: glfs
    glusterfs: 
      endpoints: glusterfs-cluster
      path: global
  restartPolicy: Always
---
apiVersion: v1
kind: Pod
metadata:
  name: busybox2
  namespace: default
spec:
  containers:
  - image: busybox
    command:
      - sleep
      - "3600"
    volumeMounts:
    - name: "glfs"
      mountPath: "/var/glfs/global"
    imagePullPolicy: IfNotPresent
    name: busybox
  volumes:
  - name: glfs
    glusterfs: 
      endpoints: glusterfs-cluster
      path: global
  restartPolicy: Always

...