Skip to content

delamart/vault-k8s-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vault Kubernetes Example

Summary

This is a docker-compose stack that contains:

  • a vault in dev mode
  • a vault agent that connects to the vault using kubernetes auth
  • an ansible runner to configure the vault

Run

Run the docker-compose stack using docker-compose up

Service Account Token

To simulate the service account token mounted in /var/run/secrets/kubernetes.io/serviceaccount/token we manually create the token using the step cli command unsing a JWK created for the demo (see the crypto folder).

The token and certificates are then mounted in the containers at the same path they would appear in kubernetes.

About

An example of how to simulate vault kubernetes login inside docker-compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages