apiVersion: v1
kind: Pod
metadata:
  name: notification
spec:
  containers:
    - name: notification
      image: stocktradersjilv2/notification:latest
      imagePullPolicy: IfNotPresent
      env:
        - name: MQ_USR
          valueFrom:
            secretKeyRef:
              name: rbq
              key: user
        - name: MQ_PWD
          valueFrom:
            secretKeyRef:
              name: rbq
              key: password
        - name: MQ_VIRTUAL_HOST
          valueFrom:
            secretKeyRef:
              name: rbq
              key: vhost
        - name: MQ_HOST_NAME
          valueFrom:
            secretKeyRef:
              name: rbq
              key: host                
        - name: MQ_PORT
          valueFrom:
            secretKeyRef:
              name: rbq
              key: port  
        - name: MQ_QUEUE
          valueFrom:
            secretKeyRef:
              name: rbq
              key: queue
        - name: TENANT_ID
          valueFrom:
            secretKeyRef:
              name: ibmcloudpush
              key: tenenatid  
        - name: API_KEY_ID
          valueFrom:
            secretKeyRef:
              name: ibmcloudpush
              key: apikey
        - name: REGION
          valueFrom:
            secretKeyRef:
              name: ibmcloudpush
              key: region  
        - name: TAG_NAME
          valueFrom:
            secretKeyRef:
              name: ibmcloudpush
              key: tag
        - name: ALERT_MSG_URL
          valueFrom:
            secretKeyRef:
              name: ibmcloudpush
              key: alertmsgurl                  
  dnsPolicy: "None"
  dnsConfig:
    nameservers:
      - 8.8.8.8
    options:
      - name: ndots
        value: "5"
      #- name: edns0
