apiVersion: v1
kind: ReplicationController
metadata:
  name: flask-info-app-rc
  labels:
    app: flask-info-app-rc
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: flask-info-app
    spec:
      containers:
      - name: flask-info-app-container
        image: alihhussain/azurepublic:info-app-enhanced
        imagePullPolicy: Always
        ports:
        - containerPort: 80
        env:
        - name: MY_NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        - name: MY_POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: MY_POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: MY_POD_IP
          valueFrom:
            fieldRef:
              fieldPath: status.podIP
        - name: MY_POD_SERVICE_ACCOUNT
          valueFrom:
            fieldRef:
              fieldPath: spec.serviceAccountName
