-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: split hz config for cluster and cache
- Loading branch information
1 parent
c101b1e
commit d4729c4
Showing
20 changed files
with
205 additions
and
105 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- if and (.Values.api.enabled) (.Values.api.controller.ws.service.enabled) -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "gravitee.api.fullname" . }}-hz | ||
labels: | ||
app.kubernetes.io/name: {{ template "gravitee.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/version: {{ .Values.api.image.tag | default .Chart.AppVersion | quote }} | ||
app.kubernetes.io/component: "{{ .Values.api.name }}" | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
annotations: | ||
{{- range $key, $value := .Values.api.service.annotations }} | ||
{{ $key }}: {{ $value | quote }} | ||
{{- end }} | ||
spec: | ||
type: "ClusterIP" | ||
ports: | ||
- port: 5701 | ||
targetPort: 5701 | ||
protocol: TCP | ||
name: {{ printf "%s-%s" (.Values.api.name | trunc 56 | trimSuffix "-") "hz-cluster" }} | ||
- port: 5702 | ||
targetPort: 5702 | ||
protocol: TCP | ||
name: {{ printf "%s-%s" (.Values.api.name | trunc 56 | trimSuffix "-") "hz-cache" }} | ||
selector: | ||
app.kubernetes.io/name: {{ template "gravitee.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/component: "{{ .Values.api.name }}" | ||
{{- end -}} |
Oops, something went wrong.