Skip to content

Instantly share code, notes, and snippets.

@todd-dsm
Created May 2, 2025 01:50
Show Gist options
  • Select an option

  • Save todd-dsm/7e320071c0fd70acb6d90fe0d056b476 to your computer and use it in GitHub Desktop.

Select an option

Save todd-dsm/7e320071c0fd70acb6d90fe0d056b476 to your computer and use it in GitHub Desktop.
Vault Client TEST App
# Deploy the TEST app to the demo namespace
# REF: https://bit.ly/3EKx0cT
---
apiVersion: v1
kind: Namespace
metadata:
name: demo
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
namespace: demo
labels:
app: webapp
spec:
replicas: 1
selector:
matchLabels:
app: webapp
template:
metadata:
labels:
app: webapp
spec:
serviceAccountName: vault-auth
containers:
- name: webapp
image: hashieducation/simple-vault-client:latest
imagePullPolicy: Always
env:
- name: VAULT_ADDR
value: 'http://vault.vault.svc:8200'
- name: JWT_PATH
value: '/var/run/secrets/kubernetes.io/serviceaccount/token'
- name: SERVICE_PORT
value: '8080'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment