apiVersion: v1
kind: ReplicationController
metadata:
  name: frontend-contr
  # these labels can be applied automatically
  # from the labels in the pod template if not set
  labels:
    app: alundco
    tier: frontend
spec:
  replicas: 3
  # these labels can be applied automatically
  # from the labels in the pod template if not set
  # Pod Template
  template:
    metadata:
      labels:
        app: alundco
        tier: frontend
    spec:
      containers:
      - name: webapp
        # Uncomment this line to use the public docker hub image
        image: stalund/alundco:0.1
        # my own private Container Registry image
        #image: gcr.io/gdg-apps-1090/alundco-webapp
        resources:
          # The resources specification for each Pod, more details here:
          # http://kubernetes.io/v1.1/docs/design/resources.html#resource-specifications
          requests:
            cpu: 100m
            memory: 100Mi
        env:
          # Environment variables that will be available in the Pod
        - name: GET_HOSTS_FROM
          value: dns
          # If your cluster config does not include a dns service, then to
          # delete these values. The Pod will fallback on a hardcoded IP address
        ports:
          # More details on the container ports here,
          # http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_containerport
          # The port exposed by the container
        - containerPort: 8080
          # The port exposed on the host
          # hostPort: 8080
