diff --git a/charts/podinfo/README.md b/charts/podinfo/README.md index 0533769..cbfe755 100644 --- a/charts/podinfo/README.md +++ b/charts/podinfo/README.md @@ -40,7 +40,7 @@ Parameter | Default | Description `logLevel` | `info` | Log level: `debug`, `info`, `warn`, `error` `backend` | `None` | Echo backend URL `backends` | `[]` | Array of echo backend URLs -`cache` | `None` | Redis address in the format `:` +`cache` | `None` | Redis address in the format `tcp://:` `redis.enabled` | `false` | Create Redis deployment for caching purposes `ui.color` | `#34577c` | UI color `ui.message` | `None` | UI greetings message diff --git a/charts/podinfo/templates/deployment.yaml b/charts/podinfo/templates/deployment.yaml index 017a8de..689bb0c 100644 --- a/charts/podinfo/templates/deployment.yaml +++ b/charts/podinfo/templates/deployment.yaml @@ -73,7 +73,7 @@ spec: {{- if .Values.cache }} - --cache-server={{ .Values.cache }} {{- else if .Values.redis.enabled }} - - --cache-server={{ template "podinfo.fullname" . }}-redis:6379 + - --cache-server=tcp://{{ template "podinfo.fullname" . }}-redis:6379 {{- end }} - --level={{ .Values.logLevel }} - --random-delay={{ .Values.faults.delay }} diff --git a/charts/podinfo/values-prod.yaml b/charts/podinfo/values-prod.yaml index d188d22..311bc2a 100644 --- a/charts/podinfo/values-prod.yaml +++ b/charts/podinfo/values-prod.yaml @@ -77,7 +77,7 @@ hpa: # average http requests per second per pod (k8s-prometheus-adapter) requests: -# Redis address in the format : +# Redis address in the format tcp://: cache: "" # Redis deployment redis: diff --git a/charts/podinfo/values.yaml b/charts/podinfo/values.yaml index 2a554a1..c7f9673 100644 --- a/charts/podinfo/values.yaml +++ b/charts/podinfo/values.yaml @@ -81,7 +81,7 @@ hpa: # average http requests per second per pod (k8s-prometheus-adapter) requests: -# Redis address in the format : +# Redis address in the format tcp://: cache: "" # Redis deployment redis: diff --git a/cmd/podinfo/main.go b/cmd/podinfo/main.go index bff6649..bd80b3e 100644 --- a/cmd/podinfo/main.go +++ b/cmd/podinfo/main.go @@ -52,7 +52,7 @@ func main() { fs.Bool("unready", false, "when set, ready state is never reached") fs.Int("stress-cpu", 0, "number of CPU cores with 100 load") fs.Int("stress-memory", 0, "MB of data to load into memory") - fs.String("cache-server", "", "Redis address in the format :") + fs.String("cache-server", "", "Redis address in the format 'tcp://:'") fs.String("otel-service-name", "", "service name for reporting to open telemetry address, when not set tracing is disabled") versionFlag := fs.BoolP("version", "v", false, "get version number")