apiVersion : v1
kind: ReplicationController
metadata: 
  name : repli
spec: 
  replicas: 2
  selector:
    app: nginx
  template: 
    metadata:
      labels:
        app: nginx
        ver: "1.0"
    spec:
      containers:
      - name: pod2
        image: nginx
        ports:
        - containerPort: 80