<p>I keep getting this error when Deploying into k8s
how can i get <strong>more</strong> info about what is happening in the pod and container?
Here is my helm :</p>
<pre><code>
    global:
      enabled: true
      tlsDisable: false
      extraEnvironmentVars:
        VAULT_CACERT: /vault/userconfig/vault-tls/vault.ca
    server:
      extraVolumes:
      - type: secret
        name: vault-tls
      extraSecretEnvironmentVars:
        - envName: AWS_ACCESS_KEY_ID
          secretName: eks-creds
          secretKey: AWS_ACCESS_KEY_ID
        - envName: AWS_SECRET_ACCESS_KEY
          secretName: eks-creds
          secretKey: AWS_SECRET_ACCESS_KEY
      ha:
        enabled: true
        replicas: 3
        raft:
          enabled: true
          setNodeId: false
          config: |
            ui = true
            serviceType: &quot;LoadBalancer&quot;
               serviceNodePort: null
               externalPort: 8200
    
            listener &quot;tcp&quot; {
              address = &quot;0.0.0.0:8200&quot;
              cluster_address = &quot;0.0.0.0:8201&quot;
              tls_cert_file = &quot;/vault/userconfig/vault-tls/vault.crt&quot;
              tls_key_file = &quot;/vault/userconfig/vault-tls/vault.key&quot;
              tls_client_ca_file = &quot;/vault/userconfig/vault-tls/vault.ca&quot;
            }
    
            storage &quot;raft&quot; {
              path = &quot;/vault/data&quot;
            }
            seal &quot;awskms&quot; {
               region = &quot;us-east-1&quot;
               kms_key_id = &quot;xxxxxxxxxxxx&quot;
            }
            service_registration &quot;kubernetes&quot; {}

</code></pre>
<p>running :</p>
<pre><code>
    kubectl -n vault-perso logs -p  vault-0

</code></pre>
<p>I'm getting :</p>
<pre><code>
    error loading configuration from /tmp/storageconfig.hcl: At 3:12: illegal char

</code></pre>
<pre><code>$ kubectl describe pod  vault-0 -n vault-xxx
Name:         vault-0
Namespace:    vault-xxx
Priority:     0
Node:         ip-10-xxx-0-xxx.ec2.internal/10.xxx.0.98
Start Time:   Mon, 01 Feb 2021 16:48:47 +0200
Labels:       app.kubernetes.io/instance=vault
              app.kubernetes.io/name=vault
              component=server
              controller-revision-hash=vault-785bc949ff
              helm.sh/chart=vault-0.9.0
              statefulset.kubernetes.io/pod-name=vault-0
Annotations:  kubernetes.io/psp: eks.privileged
Status:       Running
IP:           1.1.1.1
IPs:
  IP:           1.1.1.1
Controlled By:  StatefulSet/vault
Containers:
  vault:
    Container ID:  docker://57ef1439640967f6824031xxxxfa6b64cb95efae72
    Image:         vault:1.6.1
    Image ID:      docker-pullable://vault@sha256:efe6036315xxxx2643666a4aab1ad4
    Ports:         8200/TCP, 8201/TCP, 8202/TCP
    Host Ports:    0/TCP, 0/TCP, 0/TCP
    Command:
      /bin/sh
      -ec
    Args:
      cp /vault/config/extraconfig-from-values.hcl /tmp/storageconfig.hcl;
      [ -n &quot;${HOST_IP}&quot; ] &amp;&amp; sed -Ei &quot;s|HOST_IP|${HOST_IP?}|g&quot; /tmp/storageconfig.hcl;
      [ -n &quot;${POD_IP}&quot; ] &amp;&amp; sed -Ei &quot;s|POD_IP|${POD_IP?}|g&quot; /tmp/storageconfig.hcl;
      [ -n &quot;${HOSTNAME}&quot; ] &amp;&amp; sed -Ei &quot;s|HOSTNAME|${HOSTNAME?}|g&quot; /tmp/storageconfig.hcl;
      [ -n &quot;${API_ADDR}&quot; ] &amp;&amp; sed -Ei &quot;s|API_ADDR|${API_ADDR?}|g&quot; /tmp/storageconfig.hcl;
      [ -n &quot;${TRANSIT_ADDR}&quot; ] &amp;&amp; sed -Ei &quot;s|TRANSIT_ADDR|${TRANSIT_ADDR?}|g&quot; /tmp/storageconfig.hcl;
      [ -n &quot;${RAFT_ADDR}&quot; ] &amp;&amp; sed -Ei &quot;s|RAFT_ADDR|${RAFT_ADDR?}|g&quot; /tmp/storageconfig.hcl;
      /usr/local/bin/docker-entrypoint.sh vault server -config=/tmp/storageconfig.hcl

    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Mon, 01 Feb 2021 16:54:46 +0200
      Finished:     Mon, 01 Feb 2021 16:54:46 +0200
    Ready:          False
    Restart Count:  6
    Readiness:      exec [/bin/sh -ec vault status -tls-skip-verify] delay=5s timeout=3s period=5s #success=1 #failure=2
    Environment:
      HOST_IP:                 (v1:status.hostIP)
      POD_IP:                  (v1:status.podIP)
      VAULT_K8S_POD_NAME:     vault-0 (v1:metadata.name)
      VAULT_K8S_NAMESPACE:    vault-xxx (v1:metadata.namespace)
      VAULT_ADDR:             https://127.0.0.1:8200
      VAULT_API_ADDR:         https://$(POD_IP):8200
      SKIP_CHOWN:             true
      SKIP_SETCAP:            true
      HOSTNAME:               vault-0 (v1:metadata.name)
      VAULT_CLUSTER_ADDR:     https://$(HOSTNAME).vault-internal:8201
      HOME:                   /home/vault
      AWS_ACCESS_KEY_ID:      &lt;set to the key 'AWS_ACCESS_KEY_ID' in secret 'eks-creds'&gt;      Optional: false
      AWS_SECRET_ACCESS_KEY:  &lt;set to the key 'AWS_SECRET_ACCESS_KEY' in secret 'eks-creds'&gt;  Optional: false
    Mounts:
      /home/vault from home (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from vault-token-xls5s (ro)
      /vault/config from config (rw)
      /vault/data from data (rw)
      /vault/userconfig/vault-tls from userconfig-vault-tls (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  data:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  data-vault-0
    ReadOnly:   false
  config:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      vault-config
    Optional:  false
  userconfig-vault-tls:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  vault-tls
    Optional:    false
  home:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  &lt;unset&gt;
  vault-token-xls5s:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  vault-token-xls5s
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  &lt;none&gt;
Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                 node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason                  Age                   From                     Message
  ----     ------                  ----                  ----                     -------
  Normal   Scheduled               8m9s                  default-scheduler        Successfully assigned vault-xxx/vault-0 to ip-10-101-0-98.ec2.internal
  Normal   SuccessfulAttachVolume  8m7s                  attachdetach-controller  AttachVolume.Attach succeeded for volume &quot;pvc-626895easssscec00cb845&quot;
  Normal   Pulled                  6m23s (x5 over 8m4s)  kubelet                  Container image &quot;vault:1.6.1&quot; already present on machine
  Normal   Created                 6m23s (x5 over 8m4s)  kubelet                  Created container vault
  Normal   Started                 6m23s (x5 over 8m4s)  kubelet                  Started container vault
  Warning  BackOff                 3m3s (x26 over 8m2s)  kubelet                  Back-off restarting failed container
</code></pre>
<pre><code></code></pre>

user63898
<p>Your config is wrong. You have the following:</p>
<pre><code>      config: |
        ui = true
        serviceType: &quot;LoadBalancer&quot;
           serviceNodePort: null
           externalPort: 8200

        listener &quot;tcp&quot; {
</code></pre>
<p>The <code>serviceType</code>, <code>serviceNodePort</code> and <code>externalPort</code> looks like copy/pasted from some other place.</p>
<p>See <a href="https://www.vaultproject.io/docs/platform/k8s/helm/configuration" rel="nofollow noreferrer">Vault Helm docs</a>, right at the end, they do mention a snippet with <code>ui = true</code>, then the <code>listener &quot;tcp&quot;</code>..</p>
