27 lines
558 B
YAML
27 lines
558 B
YAML
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||
|
|
kind: VaultAuth
|
||
|
|
metadata:
|
||
|
|
name: default
|
||
|
|
namespace: longhorn
|
||
|
|
spec:
|
||
|
|
method: kubernetes
|
||
|
|
mount: kubernetes
|
||
|
|
kubernetes:
|
||
|
|
role: longhorn
|
||
|
|
serviceAccount: longhorn-vso
|
||
|
|
vaultConnectionRef: vault/vault
|
||
|
|
---
|
||
|
|
apiVersion: secrets.hashicorp.com/v1beta1
|
||
|
|
kind: VaultStaticSecret
|
||
|
|
metadata:
|
||
|
|
name: longhorn-oauth2-proxy
|
||
|
|
namespace: longhorn
|
||
|
|
spec:
|
||
|
|
type: kv-v2
|
||
|
|
mount: secret
|
||
|
|
path: longhorn/oauth2-proxy
|
||
|
|
destination:
|
||
|
|
name: longhorn-oauth2-proxy
|
||
|
|
create: true
|
||
|
|
refreshAfter: 1h
|
||
|
|
vaultAuthRef: default
|