apiVersion: v1
kind: ReplicationController
metadata:
  name: mongo
  labels:
    name: mongo
spec:
  replicas: 1
  selector:
    name: mongo
  template:
    metadata:
      labels:
        name: mongo
    spec:
      containers:
      - name: mongo
        image: mongo
        ports:
        - name: "mongo-server"
          containerPort: 27017