apiVersion: v1
kind: ReplicationController
metadata:
  name: myapp-rc
  labels: 
    app: myapp
    type: front-end 
spec:
  template:
    metadata:
      name: myapp-pod
      labels:
        app: myapp
        type: frontend
    spec: 
        containers:
        - name: nginx-container
          image: nginx
  replicas: 3


#command to create replication controller
# kubectl create -f rc-defination.yaml