github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/volumes/storageos/storageos-pod.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 labels: 5 name: redis 6 role: master 7 name: test-storageos-redis 8 spec: 9 containers: 10 - name: master 11 image: kubernetes/redis:v1 12 env: 13 - name: MASTER 14 value: "true" 15 ports: 16 - containerPort: 6379 17 resources: 18 limits: 19 cpu: "0.1" 20 volumeMounts: 21 - mountPath: /redis-master-data 22 name: redis-data 23 volumes: 24 - name: redis-data 25 storageos: 26 # This volume must already exist within StorageOS 27 volumeName: redis-vol01 28 # Namespace is optional, and specifies the volume scope within 29 # StorageOS. If no namespace is provided, it will use the namespace 30 # of the pod. Set to `default` or leave blank if you are not using 31 # namespaces. 32 #namespace: test-storageos 33 # The name of the storageos pool to use. Will use `default` if not 34 # specified, which should be available on most StorageOS clusters. 35 pool: default 36 # The filesystem type to create on the volume, if required. 37 fsType: ext4