diff options
| author | Saumit <justsaumit@protonmail.com> | 2025-10-11 02:34:38 +0530 |
|---|---|---|
| committer | Saumit <justsaumit@protonmail.com> | 2025-10-11 02:34:38 +0530 |
| commit | 88a326bacdffde9e065b08ba893a17149584e72e (patch) | |
| tree | 20e380438497afb8c4b33a932505602590721690 /astroshop-platform/argocd-helmchart/charts/redis-ha/templates/redis-ha-service.yaml | |
| parent | ef773bd27019ec6597bd12237e3b4f4f0f46f244 (diff) | |
platform: Adding argocd helm chart
Diffstat (limited to 'astroshop-platform/argocd-helmchart/charts/redis-ha/templates/redis-ha-service.yaml')
| -rw-r--r-- | astroshop-platform/argocd-helmchart/charts/redis-ha/templates/redis-ha-service.yaml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/astroshop-platform/argocd-helmchart/charts/redis-ha/templates/redis-ha-service.yaml b/astroshop-platform/argocd-helmchart/charts/redis-ha/templates/redis-ha-service.yaml new file mode 100644 index 0000000..5fe077e --- /dev/null +++ b/astroshop-platform/argocd-helmchart/charts/redis-ha/templates/redis-ha-service.yaml @@ -0,0 +1,57 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ template "redis-ha.fullname" . }} + namespace: {{ .Release.Namespace | quote }} + labels: +{{ include "labels.standard" . | indent 4 }} +{{- if .Values.exporter.enabled }} + exporter: enabled +{{- end }} +{{- range $key, $value := .Values.extraLabels }} + {{ $key }}: {{ $value | quote }} +{{- end }} +{{- range $key, $value := .Values.serviceLabels }} + {{ $key }}: {{ $value | quote }} +{{- end }} + annotations: + {{- if .Values.serviceAnnotations }} +{{ toYaml .Values.serviceAnnotations | indent 4 }} + {{- end }} +spec: + type: ClusterIP + clusterIP: None + ports: + {{- if ne (int .Values.redis.port) 0 }} + - name: tcp-server + port: {{ .Values.redis.port }} + protocol: TCP + targetPort: redis + {{- end }} + {{- if .Values.redis.tlsPort }} + - name: server-tls + port: {{ .Values.redis.tlsPort }} + protocol: TCP + targetPort: redis-tls + {{- end }} + {{- if ne (int .Values.sentinel.port) 0 }} + - name: tcp-sentinel + port: {{ .Values.sentinel.port }} + protocol: TCP + targetPort: sentinel + {{- end }} + {{- if .Values.sentinel.tlsPort }} + - name: sentinel-tls + port: {{ .Values.sentinel.tlsPort }} + protocol: TCP + targetPort: sentinel-tls + {{- end }} +{{- if .Values.exporter.enabled }} + - name: http-exporter-port + port: {{ .Values.exporter.port }} + protocol: TCP + targetPort: {{ .Values.exporter.portName }} +{{- end }} + selector: + release: {{ .Release.Name }} + app: {{ template "redis-ha.name" . }} |
