apiVersion: v1
kind: ReplicationController

metadata:
  name: quote-frontend
spec:
  replicas: 2
  # selector identifies the set of Pods that this
  # replication controller is responsible for managing
  selector:
    app: quote-api
    role: frontend
  # podTemplate defines the 'cookie cutter' used for creating
  # new pods when necessary
  template:
    metadata:
      labels:
        # Important: these labels need to match the selector above
        # The api server enforces this constraint.
        app: quote-api
        role: frontend
    spec:
      containers:
      - name: quote-service
        image: g1g1/quote-service
        env:
        - name: GET_HOSTS_FROM
          # value: dns
          value: env
        ports:
        - containerPort: 8000
