1. apiVersion: v1
    2. kind: ReplicationController
    3. metadata:
    4. name: rc-demo
    5. labels:
    6. name: rc
    7. spec:
    8. replicas: 3
    9. selector:
    10. name: rc
    11. template:
    12. metadata:
    13. labels:
    14. name: rc
    15. spec:
    16. containers:
    17. - name: nginx-demo
    18. image: nginx
    19. ports:
    20. - containerPort: 80