-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use HashiCorp Vault to fetch password required by MariaDB MaxScale
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ resources: | |
- vaultauth.yaml | ||
- vaultconnection.yaml | ||
- mariadb-root-password.yaml | ||
- mariadb-maxscale.yaml |
24 changes: 24 additions & 0 deletions
24
kustomize/mariadb-cluster/base/vault/mariadb-maxscale.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: secrets.hashicorp.com/v1beta1 | ||
kind: VaultStaticSecret | ||
metadata: | ||
name: maxscale | ||
namespace: openstack | ||
spec: | ||
type: kv-v2 | ||
|
||
# mount path | ||
mount: 'osh/mariadb' | ||
|
||
# path of the secret | ||
path: maxscale | ||
|
||
# dest k8s secret | ||
destination: | ||
name: maxscale | ||
create: true | ||
|
||
# static secret refresh interval | ||
refreshAfter: 30s | ||
|
||
# Name of the CRD to authenticate to Vault | ||
vaultAuthRef: vault-auth |