Skip to content

Commit 3fac5b3

Browse files
committed
chore(charts): simplify the svc url
1 parent 0e2d55c commit 3fac5b3

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

charts/valkey/templates/valkey-statefulset.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
name: valkey-creds
4141
key: password
4242
- name: DRYCC_VALKEY_SENTINEL
43-
value: {{ printf "drycc-valkey.%s.svc.%s" $.Release.Namespace $.Values.global.clusterDomain }}
43+
value: drycc-valkey
4444
ports:
4545
- containerPort: 16379
4646
{{- with index .Values "proxy" "resources" }}
@@ -81,7 +81,7 @@ spec:
8181
args:
8282
- valkey-start
8383
- server
84-
- $(POD_NAME).{{ printf "drycc-valkey.%s.svc.%s" $.Release.Namespace $.Values.global.clusterDomain }}
84+
- $(POD_NAME).drycc-valkey
8585
{{- end }}
8686
ports:
8787
- containerPort: 6379
@@ -95,7 +95,7 @@ spec:
9595
fieldRef:
9696
fieldPath: metadata.name
9797
- name: DRYCC_VALKEY_SENTINEL
98-
value: {{ printf "drycc-valkey.%s.svc.%s" $.Release.Namespace $.Values.global.clusterDomain }}
98+
value: drycc-valkey
9999
- name: DRYCC_VALKEY_PASSWORD
100100
valueFrom:
101101
secretKeyRef:
@@ -156,7 +156,7 @@ spec:
156156
args:
157157
- valkey-start
158158
- sentinel
159-
- $(POD_NAME).{{ printf "drycc-valkey.%s.svc.%s" $.Release.Namespace $.Values.global.clusterDomain }}
159+
- $(POD_NAME).drycc-valkey
160160
{{- end }}
161161
ports:
162162
- containerPort: 26379
@@ -170,7 +170,7 @@ spec:
170170
fieldRef:
171171
fieldPath: metadata.name
172172
- name: DRYCC_VALKEY_SENTINEL
173-
value: {{ printf "drycc-valkey.%s.svc.%s" $.Release.Namespace $.Values.global.clusterDomain }}
173+
value: drycc-valkey
174174
- name: DRYCC_VALKEY_PASSWORD
175175
valueFrom:
176176
secretKeyRef:

charts/valkey/values.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,3 @@ persistence:
7474
enabled: false # Set to true to enable persistence
7575
size: 5Gi
7676
storageClass: ""
77-
78-
global:
79-
# A domain name consists of one or more parts.
80-
# Periods (.) are used to separate these parts.
81-
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).
82-
# It must start and end with a lowercase letter or digit.
83-
clusterDomain: "cluster.local"

rootfs/bin/valkey-start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ print_usage() {
1010
echo "server <announce-host> start valkey server"
1111
echo "sentinel <announce-host> start valkey sentinel"
1212
echo ""
13-
echo "Such as 'valkey-start server valkey.valkey.svc.cluster.local' to start valkey server."
13+
echo "Such as 'valkey-start server valkey.valkey.svc' to start valkey server."
1414
}
1515

1616
remove_in_file() {

0 commit comments

Comments
 (0)