https://github.com/nkz-soft/dotnet-k8s-vault
Integration of .NET application with HashiCorp Vault server
https://github.com/nkz-soft/dotnet-k8s-vault
csharp dotnetcore hasicorp-vault helm-chart kubernetes vault
Last synced: about 2 months ago
JSON representation
Integration of .NET application with HashiCorp Vault server
- Host: GitHub
- URL: https://github.com/nkz-soft/dotnet-k8s-vault
- Owner: nkz-soft
- License: mit
- Created: 2022-12-07T14:37:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T08:04:21.000Z (about 1 year ago)
- Last Synced: 2025-02-10T03:15:56.736Z (4 months ago)
- Topics: csharp, dotnetcore, hasicorp-vault, helm-chart, kubernetes, vault
- Language: Smarty
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-k8s-vault
Integration of .NET application with HashiCorp Vault server## Prerequisites
- k8s cluster (something like minikube or k3s will also work)
- helm
- jg## Deploy Vault
To deploy and configure the Vault server:
```bash
cd dotnet-k8s-vault/deployment/
./install-vault.sh.
```The Vault server will be created and configured in the cluster.
There will also be created the necessary policies and access rights.## Deploy test application
```bash
cd k8s/.helm/
helm install dotnet-vault .
```You will see the created pod and you can check that everything worked.
```bash
export DOTNET_K8S_VAULT_PORT=$(kubectl get svc dotnet-vault -o json | jq -r ".spec.ports[].nodePort")
curl localhost:$DOTNET_K8S_VAULT_PORT/config
```You should see something like that:
```bash
{"VaultSecrets":null,"VaultSecrets:userName":"Bob","VaultSecrets:password":"Bob_Password"}
```