This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cad219
commit d2597ea
Showing
5 changed files
with
23 additions
and
5 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ metadata: | |
{{ include "keydb.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.nodes }} | ||
serviceName: {{ include "keydb.fullname" . }} | ||
serviceName: {{ include "keydb.fullname" . }}-headless | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Antiarchitect
Author
Contributor
|
||
selector: | ||
matchLabels: | ||
{{ include "keydb.selectorLabels" . | nindent 6 }} | ||
|
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,19 @@ | ||
# Headless service | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "keydb.fullname" . }}-headless | ||
labels: | ||
{{ include "keydb.labels" . | nindent 4 }} | ||
annotations: | ||
{{ toYaml .Values.service.annotations | nindent 4 }} | ||
spec: | ||
type: ClusterIP | ||
clusterIP: None | ||
ports: | ||
- name: server | ||
port: {{ .Values.port | int }} | ||
protocol: TCP | ||
targetPort: keydb | ||
selector: | ||
{{ include "keydb.selectorLabels" . | nindent 4 }} |
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,4 +1,3 @@ | ||
# Headless service for proper name resolution | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
|
@@ -9,7 +8,6 @@ metadata: | |
{{ toYaml .Values.service.annotations | nindent 4 }} | ||
spec: | ||
type: ClusterIP | ||
clusterIP: None | ||
This comment has been minimized.
Sorry, something went wrong.
macropin
|
||
ports: | ||
- name: server | ||
port: {{ .Values.port | int }} | ||
|
@@ -21,3 +19,4 @@ spec: | |
targetPort: redis-exporter | ||
selector: | ||
{{ include "keydb.selectorLabels" . | nindent 4 }} | ||
sessionAffinity: ClientIP |
This breaks upgrades: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden