apiVersion: v1
kind: ReplicationController
metadata:
  name: nginx-controller
  namespace: poddemo
spec:
  replicas: 2
  selector:
    role: load-balancer
  template:
    metadata:
      labels:
        role: load-balancer
    spec:
      containers:
        - name: nginx
          image: coreos/nginx
          ports:
            - containerPort: 80
