11 Commits

Author SHA1 Message Date
ee89e3f0a3 selector fup 2025-07-22 14:07:11 +02:00
cad3f93566 feat(node): adding node component
Cleaning up the repo
2025-07-22 13:53:06 +02:00
fef4f1d899 fix(node): disable replacements
Some checks failed
Build and Push Image / Build and push image (push) Failing after 12s
2025-05-28 15:47:17 +02:00
27ffba8dc1 fix(node): changing statefulset name here is a bad idea
Some checks failed
Build and Push Image / Build and push image (push) Failing after 12s
2025-05-28 15:31:05 +02:00
5d739cbb0c fix(node): change default service name to valkey-node
Some checks failed
Build and Push Image / Build and push image (push) Failing after 13s
2025-05-28 15:22:19 +02:00
09c6791509 fix(node): use headless service in all the scripts
Some checks failed
Build and Push Image / Build and push image (push) Failing after 13s
2025-05-28 11:11:12 +02:00
3c550b3015 feat(node): support for name replacement
Some checks failed
Build and Push Image / Build and push image (push) Failing after 13s
now when you include this project you can change then service and statefulset name from
the valkey-env configMap
2025-05-28 10:57:50 +02:00
36e6cd84f9 feat(node): comment unused code
Some checks failed
Build and Push Image / Build and push image (push) Failing after 1m4s
2025-05-27 16:25:20 +02:00
004cd98224 feat(node): try to manage scale up and scale down 2025-05-27 16:25:20 +02:00
d655d0449f feat(node): adding all in one node support 2025-05-27 16:25:20 +02:00
3f10373773 First commit 2025-05-27 16:25:20 +02:00
10 changed files with 10 additions and 165 deletions

View File

@ -7,11 +7,9 @@
kind: Service
name: valkey-headless
fieldPaths:
- metadata.labels.app
- spec.selector.app
- select:
kind: Service
name: valkey
fieldPaths:
- metadata.labels.app
- spec.selector.app

View File

@ -1,3 +1,13 @@
- source:
kind: ConfigMap
name: valkey-env
fieldPath: data.VALKEY_REPLICAS
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- spec.replicas
- source:
kind: ConfigMap
name: valkey-env

View File

@ -1,7 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- resources/namespace.yaml
- resources/vlone
- resources/vltwo

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: vltest

View File

@ -1,25 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namePrefix: vlone-
components:
- https://forge.cadoles.com/CadolesKube/valkey-kustom//components/node
configMapGenerator:
- name: valkey-env
literals:
- NAMESPACE="vltest"
- VALKEY_ENV="vltest"
- VALKEY_NAME="vlone-valkey-node"
- VALKEY_SERVICE="vlone-valkey"
- VALKEY_HEADLESS_SERVICE="vlone-valkey-headless"
- VALKEY_MASTER_NAME="mymaster"
- VALKEY_REPLICAS="6"
- VALKEY_PORT="6379"
- VALKEY_SENTINEL_PORT="26379"
- ALLOW_EMPTY_PASSWORD="yes"
- VALKEY_TLS_ENABLED="no"
- VALKEY_SENTINEL_TLS_ENABLED="no"
- VALKEY_DATA_DIR="/data"
- VALKEY_LOG_LEVEL="warning"
- VALKEY_QUORUM="2"

View File

@ -1,20 +0,0 @@
- source:
kind: ConfigMap
name: vlone
fieldPath: data.VALKEY_HEADLESS_SERVICE
targets:
- select:
kind: Service
name: valkey-headless
fieldPaths:
- metadata.name
- source:
kind: ConfigMap
name: vlone
fieldPath: data.VALKEY_SERVICE
targets:
- select:
kind: Service
name: valkey
fieldPaths:
- metadata.name

View File

@ -1,31 +0,0 @@
- source:
kind: ConfigMap
name: vlone
fieldPath: data.VALKEY_NAME
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- metadata.name
- source:
kind: ConfigMap
name: vlone
fieldPath: data.VALKEY_ENV_NAME
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- spec.template.spec.containers[*].envFrom[0].configMapRef.name
- spec.template.spec.initContainers[*].envFrom[0].configMapRef.name
- source:
kind: ConfigMap
name: vlone
fieldPath: data.VALKEY_CONF_NAME
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- spec.template.spec.initContainers[*].volumeMounts[valkey-config].name

View File

@ -1,25 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namePrefix: vltwo-
components:
- https://forge.cadoles.com/CadolesKube/valkey-kustom//components/node
configMapGenerator:
- name: valkey-env
literals:
- NAMESPACE="vltest"
- VALKEY_ENV="vltest"
- VALKEY_NAME="vltwo-valkey-node"
- VALKEY_SERVICE="vltwo-valkey"
- VALKEY_HEADLESS_SERVICE="vltwo-valkey-headless"
- VALKEY_MASTER_NAME="vltwomaster"
- VALKEY_REPLICAS="4"
- VALKEY_PORT="6379"
- VALKEY_SENTINEL_PORT="26379"
- ALLOW_EMPTY_PASSWORD="yes"
- VALKEY_TLS_ENABLED="no"
- VALKEY_SENTINEL_TLS_ENABLED="no"
- VALKEY_DATA_DIR="/data"
- VALKEY_LOG_LEVEL="warning"
- VALKEY_QUORUM="2"

View File

@ -1,20 +0,0 @@
- source:
kind: ConfigMap
name: vltwo
fieldPath: data.VALKEY_HEADLESS_SERVICE
targets:
- select:
kind: Service
name: valkey-headless
fieldPaths:
- metadata.name
- source:
kind: ConfigMap
name: vltwo
fieldPath: data.VALKEY_SERVICE
targets:
- select:
kind: Service
name: valkey
fieldPaths:
- metadata.name

View File

@ -1,31 +0,0 @@
- source:
kind: ConfigMap
name: vltwo
fieldPath: data.VALKEY_NAME
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- metadata.name
- source:
kind: ConfigMap
name: vltwo
fieldPath: data.VALKEY_ENV_NAME
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- spec.template.spec.containers[*].envFrom[0].configMapRef.name
- spec.template.spec.initContainers[*].envFrom[0].configMapRef.name
- source:
kind: ConfigMap
name: vltwo
fieldPath: data.VALKEY_CONF_NAME
targets:
- select:
kind: StatefulSet
name: valkey-node
fieldPaths:
- spec.template.spec.initContainers[*].volumeMounts[valkey-config].name