apiVersion: v1
kind: Pod
metadata:
  name: register
  labels:
    name: register
spec:
  containers:
    - name: register
      image: register
      ports:
        - containerPort: 12312
      imagePullPolicy: IfNotPresent
      env:
        - name: consulAddr
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        - name: serviceAddr
          valueFrom:
            fieldRef:
              fieldPath: status.podIP



