Creating a cluster with libcluster and Kubernetes

What is the command that is executed in the container? --name and --cookie are arguments to the elixir or iex command. If you built a release try working with env vars instead of args:

          env:
            - name: MY_POD_IP
              valueFrom:
                fieldRef:
                  fieldPath: status.podIP
            - name: RELEASE_DISTRIBUTION
              value: name
            - name: RELEASE_NODE
              value: foo@$(MY_POD_IP)
            - name: RELEASE_COOKIE
              value: foo-cookie