summaryrefslogtreecommitdiffstats
path: root/docs/samples/remote_storage/lsdf/lsdf-test.yml
blob: c02a88814e3627654d406c4cfa496d77f6bb8a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: template.openshift.io/v1
kind: Template
metadata:
  annotations:
  name: lsdf-test
objects:
  - apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      name: lsdf-ips
    spec:
      volumeName: lsdf-ips
      accessModes:
        - ReadWriteOnce
      resources:
        requests:
          storage: "10Ti"
  - apiVersion: v1
    kind: DeploymentConfig
    metadata:
      name: lsdf-test
    spec:
      replicas: 1
      selector:
        name: lsdf-test
      strategy:
        type: Recreate
      template:
        metadata:
          labels:
            name: lsdf-test
          name: lsdf-test
        spec:
          volumes:
            - name: lsdf-ips
              persistentVolumeClaim:
                claimName: lsdf-ips
          containers:
            - image: registry.access.redhat.com/rhel7/rhel:7.6
              name: cifs-app
              command: ["/bin/bash", "-c", "while true; do sleep 10; done"]
              volumeMounts:
                - name: lsdf-ips
                  mountPath: /mnt/lsdf