-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
valkey_cluster is now it's own application
- Loading branch information
Showing
17 changed files
with
397 additions
and
191 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
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 |
---|---|---|
@@ -1,25 +1,15 @@ | ||
# nextcloud-eso-bitwarden-chart | ||
# external-secrets-valkey-chart | ||
|
||
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) | ||
|
||
A Helm chart for Nextcloud External Secrets using the Bitwarden ESO provider on Kubernetes | ||
A Helm chart for External Secrets using the Bitwarden ESO provider on Kubernetes | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| adminCredentialsBitwardenID | string | `""` | nextcloud admin Credentials | | ||
| oidcCredentialsBitwardenID | string | `""` | nextcloud OIDC Credentials | | ||
| postgresqlBitwardenID | string | `""` | nextcloud postgres Credentials | | ||
| provider | string | `""` | if this is not set to "bitwarden", we will not actually deploy any templates we may support other secret providers in the future | | ||
| redisBitwardenID | string | `""` | nextcloud redis Credentials | | ||
| s3AdminCredentialsBitwardenID | string | `""` | existing kubernetes secret with s3 admin credentials | | ||
| s3BackupCredentialsBitwardenID | string | `""` | existing kubernetes secret with s3 credentials for the remote backups | | ||
| s3NextcloudCredentialsBitwardenID | string | `""` | existing kubernetes secret with s3 nextcloud credentials | | ||
| s3PostgresCredentialsBitwardenID | string | `""` | existing kubernetes secret with s3 postgres credentials | | ||
| s3_provider | string | `"seaweedfs"` | if set to seaweedfs we deploy a policy secret. can also be minio | | ||
| serverInfoTokenBitwardenID | string | `""` | nextcloud server info token for metrics | | ||
| smtpCredentialsBitwardenID | string | `""` | nextcloud smtp Credentials | | ||
| valkeyBitwardenID | string | `""` | nextcloud redis (actually for valkey) Credentials | | ||
|
||
---------------------------------------------- | ||
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) | ||
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) |
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
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,42 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ApplicationSet | ||
metadata: | ||
name: valkey-external-secrets-app-set | ||
namespace: argocd | ||
spec: | ||
goTemplate: true | ||
# generator allows us to source specific values from an external k8s secret | ||
generators: | ||
- plugin: | ||
configMapRef: | ||
name: secret-var-plugin-generator | ||
input: | ||
parameters: | ||
secret_vars: | ||
- valkey_credentials_bitwarden_id | ||
- global_external_secrets | ||
template: | ||
metadata: | ||
name: valkey-external-secrets | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "1" | ||
spec: | ||
project: valkey | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: valkey | ||
syncPolicy: | ||
syncOptions: | ||
- ApplyOutOfSyncOnly=true | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
source: | ||
repoURL: 'https://github.com/small-hack/argocd-apps.git' | ||
path: valkey/external_secrets/ | ||
targetRevision: main | ||
helm: | ||
valuesObject: | ||
provider: '{{ .global_external_secrets }}' | ||
valkeyCredentialsBitwardenID: '{{ .valkey_credentials_bitwarden_id }}' |
This file was deleted.
Oops, something went wrong.
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,94 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: ApplicationSet | ||
metadata: | ||
name: valkey-app-set | ||
namespace: argocd | ||
annotations: | ||
# wait till after secrets are populated in sync wave 1 | ||
argocd.argoproj.io/sync-wave: "2" | ||
spec: | ||
goTemplate: true | ||
# generator allows us to source specific values from an external k8s secret | ||
generators: | ||
- plugin: | ||
configMapRef: | ||
name: secret-var-plugin-generator | ||
input: | ||
parameters: | ||
secret_vars: | ||
- global_storage_class | ||
template: | ||
metadata: | ||
name: valkey-app | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "2" | ||
spec: | ||
project: valkey | ||
|
||
# the sync policy for this Argo CD Application | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
- ApplyOutOfSyncOnly=true | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
|
||
# where this Argo CD Application should be deployed | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: valkey | ||
|
||
# where we should get the source of this Argo CD Application | ||
source: | ||
repoURL: 'registry-1.docker.io' | ||
chart: bitnamicharts/valkey | ||
targetRevision: 2.0.0 | ||
helm: | ||
# helm parameter overrides | ||
valuesObject: | ||
fullnameOverride: "valkey" | ||
|
||
global: | ||
storageClass: "{{ .global_storage_class }}" | ||
|
||
# for auth, we get the valkey credentials from an ExternalSecret | ||
auth: | ||
enabled: true | ||
existingSecret: "valkey-credentials" | ||
existingSecretPasswordKey: "password" | ||
|
||
# TLS settings | ||
tls: | ||
enabled: false | ||
authClients: true | ||
autoGenerated: false | ||
|
||
# primary (control plane) configuration | ||
primary: | ||
persistence: | ||
enabled: true | ||
existingClaim: "valkey-primary" | ||
|
||
# valkey replica configuration | ||
replica: | ||
persistence: | ||
enabled: true | ||
existingClaim: "valkey-replica" | ||
|
||
|
||
# persistnent volume retention policy for the StatefulSet | ||
persistentVolumeClaimRetentionPolicy: | ||
enabled: true | ||
whenScaled: Retain | ||
whenDeleted: Retain | ||
|
||
metrics: | ||
# we use a grafana exporter that logs into valkey directly | ||
enabled: false | ||
|
||
# definitions: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15 | ||
# Options: nano, micro, small, medium, large, xlarge, 2xlarge | ||
# default: nano | ||
resourcesPreset: "small" |
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
# Valkey Argo CD Application and Valkey Cluster Argo CD ApplicationSet | ||
|
||
[Valkey Cluster](https://valkey.io) is an open source (BSD) high-performance key/value and scalable datastore that supports a variety workloads such as caching, message queues, and can act as a primary database. | ||
|
||
Deploys the [bitnami valkey-cluster helm chart](https://github.com/bitnami/charts/tree/main/bitnami/valkey-cluster). | ||
|
||
## Sync Waves | ||
|
||
1. External Secret for Valkey Admin Credentials from Bitwarden | ||
2. Valkey Cluster Application - the helm chart application |
Oops, something went wrong.