php-vault-example

This example is used to showcase Kubernetes Hashicorp Vault Secrets injections.

Clone this repo

git clone https://github.com/sidd-harth/php-vault-example.git

Build PHP Docker Image

docker build -t php:vault .

Update Image in php-app-k8s-deploy.yaml and run

kubectl apply -f php-app-k8s-deploy.yaml

image

Patching the Deployment with Vault Annotations

kubectl patch deploy php -p "$(cat patch-annotations-template.yaml)"

image