Files
charts/bitnami/parse/templates/dashboard-svc.yaml
Fran Mulero 23f291a6b7 [bitnami/parse] Parse standarization (#9867)
* Parse standarization

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Apply suggestions

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Change dependencies with mongodb

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Update dependencies

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend typo

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Remove quotes

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend service definition and add vib verify

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* Amend vib tests

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend documentation

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Amend server.service.ports.http

Signed-off-by: Fran Mulero <fmulero@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <containers@bitnami.com>

* [bitnami/parse] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
Co-authored-by: Miguel Ruiz <miruiz@vmware.com>
2022-05-04 10:48:14 +02:00

53 lines
2.8 KiB
YAML

{{- if and (include "parse.host" .) .Values.dashboard.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ printf "%s-dashboard" (include "common.names.fullname" .) }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{ include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: dashboard
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.commonAnnotations .Values.dashboard.service.annotations }}
annotations:
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.dashboard.service.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.dashboard.service.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.dashboard.service.type }}
{{- if and .Values.dashboard.service.clusterIP (eq .Values.dashboard.service.type "ClusterIP") }}
clusterIP: {{ .Values.dashboard.service.clusterIP }}
{{- end }}
{{- if .Values.dashboard.service.sessionAffinity }}
sessionAffinity: {{ .Values.dashboard.service.sessionAffinity }}
{{- end }}
{{- if .Values.dashboard.service.sessionAffinityConfig }}
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.dashboard.service.sessionAffinityConfig "context" $) | nindent 4 }}
{{- end }}
{{- if or (eq .Values.dashboard.service.type "LoadBalancer") (eq .Values.dashboard.service.type "NodePort") }}
externalTrafficPolicy: {{ .Values.dashboard.service.externalTrafficPolicy | quote }}
{{- end }}
{{- if and (eq .Values.dashboard.service.type "LoadBalancer") (not (empty .Values.dashboard.service.loadBalancerSourceRanges)) }}
loadBalancerSourceRanges: {{ .Values.dashboard.service.loadBalancerSourceRanges }}
{{- end }}
{{- if and (eq .Values.dashboard.service.type "LoadBalancer") (not (empty .Values.dashboard.service.loadBalancerIP)) }}
loadBalancerIP: {{ .Values.dashboard.service.loadBalancerIP }}
{{- end }}
ports:
- name: http-dashboard
port: {{ .Values.dashboard.service.ports.http }}
targetPort: http-dashboard
{{- if (and (eq .Values.dashboard.service.type "NodePort") (not (empty .Values.dashboard.service.nodePorts.http))) }}
nodePort: {{ .Values.dashboard.service.nodePorts.http }}
{{- end }}
{{- if .Values.dashboard.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.dashboard.service.extraPorts "context" $) | nindent 4 }}
{{- end }}
selector: {{ include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: dashboard
{{- end }}