<p>Here is the sample template for single PersistentVolumeClaim with name : claim1</p>

<pre><code>apiVersion: "v1"
kind: "PersistentVolumeClaim"
metadata:
  name: "claim1"
spec:
  accessModes:
    - "ReadWriteOnce"
  resources:
    requests:
      storage: "5Gi"
  volumeName: "pv0001"
</code></pre>

<p>How can i add multiple PersistentVolumeClaim in the same template file.
For example adding claim2</p>

<p>I tried copy paste the same template from below it and change claim1 to claim2 but in openshift UI while importing the template it gives a warning : Duplicated Mapping key kind: PersistentVolumeClaim </p>

<p>Update:
I have tried using <code>---</code> as mentioned in the comments. But that throws a error <code>Expected a single document in the stream but found more</code> in the openshift UI while importing the yaml</p>

<p>To separate the objects all you need to add is ---</p>

<p>Yeap exactly this:</p>

<pre><code>---
</code></pre>

<p>for example</p>

<pre><code>apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
  name: replicaset-example-webapp-0-5
spec:
  selector:
    matchLabels:
      mylabel: mywebapp
  replicas: 6
  template:
    metadata:
      labels:
        mylabel: mywebapp
    spec:
      containers:
        - name: pod-example-0-5
          image: richardchesterwood/k8s-fleetman-webapp-angular:release0-5
---
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
  name: replicaset-example-webapp-0
spec:
  selector:
    matchLabels:
      mylabel: mywebapp
  replicas: 2
  template:
    metadata:
      labels:
        mylabel: mywebapp
    spec:
      containers:
        - name: pod-example-0
          image: richardchesterwood/k8s-fleetman-webapp-angular:release0
---
apiVersion: v1
kind: Pod
metadata:
  name: just-a-queue
  labels:
    mylabelname: myqueueapp
spec:
  containers:
  - name: queue-app-container
    image: richardchesterwood/k8s-fleetman-queue:release1
</code></pre>

<p>Also you can have multiple Kubernetes objects under the same yaml file, all you need to do is to separate it with ---</p>

<p>But in OpenShift it's like this</p>

<p>Actually, this works if one creates an array of items:</p>

<pre><code>apiVersion: v1beta3                                                                              
kind: List                                                                                       
items:                                                                                           
  - #list of API objects
</code></pre>
