Vault Server does not start on Kubernetes - docker_entrypoint

Running Vault on AWS EKS (Kubernetes). Using the alpine image.

  • I am able to run Vault in dev mode
  • Unable to start in server mode. The docker entrypoint.sh script runs but cannot find the sub-command.

For example, in the pod spec, I have the following -


spec:
containers:

  • name: command-demo-container
    image: debian
    command:### This is not included ####
    args: [“vault server”]

I have also tried the following args as different options

  • vault status
  • status
  • server

My pod does not start and the log shows as -

/usr/local/bin/docker-entrypoint.sh: exec: line 104: vault server: not found

I know I am close, but I am unable to get past this hiccup. I have attached the complete deployment spec, for you to point out any errors.

Appreciate your help

*** Made some corrections to the original message***.

Running Vault on AWS EKS (Kubernetes). Using the alpine image.

  • I am able to run Vault in dev mode
  • Unable to start in server mode. The docker entrypoint.sh script runs but cannot find the sub-command.

For example, in the pod spec, I have the following -


spec:
containers:

  • name: vault
    image: vault
    command:### This is not included ####
    args: [“vault server”]

I have also tried the following args as different options

  • vault status
  • status
  • server

My pod does not start and the log shows as -

/usr/local/bin/docker-entrypoint.sh: exec: line 104: vault server: not found

I know I am close, but I am unable to get past this hiccup. I have attached the complete deployment spec, for you to point out any errors.

Appreciate your help