From 91e3de1a1b52a4a5d6eae2754fc3dd58c2109fbc Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 20 Aug 2023 19:40:24 +0200 Subject: [PATCH] Updated to newer template with option referencing values --- helm/configserver/Chart.lock | 6 +++--- helm/configserver/Chart.yaml | 4 ++-- helm/configserver/README.md | 6 +++++- helm/configserver/overwrite_values.yaml | 24 ++++++++++++------------ 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/helm/configserver/Chart.lock b/helm/configserver/Chart.lock index e7e4568..132d183 100644 --- a/helm/configserver/Chart.lock +++ b/helm/configserver/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: template repository: file://../template - version: 0.1.3 -digest: sha256:bcd2fe30f0e4dad638a4bc8bc59b26e14b369ad58888ebdff4dc71176b0a6926 -generated: "2023-08-20T18:51:20.571292+02:00" + version: 0.1.4 +digest: sha256:279dbe36571da1eee759185be5f2993c19ec9288c8b00ff6ab5ca75316888584 +generated: "2023-08-20T19:36:58.229885+02:00" diff --git a/helm/configserver/Chart.yaml b/helm/configserver/Chart.yaml index e8c7c8b..44066dd 100644 --- a/helm/configserver/Chart.yaml +++ b/helm/configserver/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: configserver -version: 0.1.2 +version: 0.1.3 type: application description: "Minimal Spring Boot config server" maintainers: @@ -10,5 +10,5 @@ sources: - https://git.2martens.de/2martens/config-server dependencies: - name: template - version: 0.1.3 + version: 0.1.4 repository: file://../template diff --git a/helm/configserver/README.md b/helm/configserver/README.md index d2c1758..c955b5f 100644 --- a/helm/configserver/README.md +++ b/helm/configserver/README.md @@ -1,4 +1,8 @@ # Configserver This chart installs a minimal Spring Boot configserver into -the Kubernetes cluster. \ No newline at end of file +the Kubernetes cluster. + +## Requirements + +* needs a running Kafka instance (host and port can be configured) diff --git a/helm/configserver/overwrite_values.yaml b/helm/configserver/overwrite_values.yaml index 22d8df3..a5091cf 100644 --- a/helm/configserver/overwrite_values.yaml +++ b/helm/configserver/overwrite_values.yaml @@ -5,12 +5,12 @@ image: application: port: &applicationPort 8888 actuatorPort: &actuatorPort 13000 - prefix: &prefix /config - repositoryPath: &repositoryPath "https://git.2martens.de/2martens/{application}" - searchPath: &searchPath module-server/src/main/resources/config + prefix: /config + repositoryPath: "https://git.2martens.de/2martens/{application}" + searchPath: module-server/src/main/resources/config kafka: - host: &kafkaHost kafka - port: &kafkaPort 9092 + host: kafka + port: 9092 service: port: *applicationPort @@ -18,16 +18,16 @@ service: environment: - name: PORT - value: *applicationPort + value: {{ .Values.application.port }} - name: ACTUATOR_PORT - value: *actuatorPort + value: {{ .Values.application.actuatorPort }} - name: PREFIX - value: *prefix + value: {{ .Values.application.prefix }} - name: REPOSITORY_PATH - value: *repositoryPath + value: {{ .Values.application.repositoryPath }} - name: SEARCH_PATH - value: *searchPath + value: {{ .Values.application.searchPath }} - name: KAFKA_HOST - value: *kafkaHost + value: {{ .Values.application.kafka.host }} - name: KAFKA_PORT - value: *kafkaPort + value: {{ .Values.application.kafka.port }}