mirror of
https://github.com/bitnami/charts.git
synced 2026-03-29 16:27:11 +08:00
* [bitnami/kong] Add chart Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@vmware.com> * Fix yaml issues and missing values * lint * Add ingress ci * Add requested changes Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@vmware.com> * Update bitnami/kong/templates/ingress.yaml Co-Authored-By: Juan Ariza Toledano <juan@bitnami.com> * Update bitnami/kong/values.yaml Co-Authored-By: Juan Ariza Toledano <juan@bitnami.com> * Apply suggestions Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@vmware.com> * Fix ingress Signed-off-by: Javier J. Salmeron Garcia <jsalmeron@vmware.com> * Add changes for helm2 support * production * Update kong ingress controller version * Fix migration job * Change reference * Delete kibana references * Update tags and dependency Co-authored-by: Juan Ariza Toledano <juan@bitnami.com> Co-authored-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com>
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "kong.fullname" . }}-metrics
|
|
namespace: {{ .Release.Namespace }}
|
|
labels: {{- include "kong.labels" . | nindent 4 }}
|
|
{{- if .Values.metrics.service.annotations }}
|
|
annotations:
|
|
{{- include "kong.tplValue" (dict "value" .Values.metrics.service.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.metrics.service.type }}
|
|
{{- if and (eq .Values.metrics.service.type "LoadBalancer") (not (empty .Values.metrics.service.loadBalancerIP)) }}
|
|
loadBalancerIP: {{ .Values.metrics.service.loadBalancerIP }}
|
|
{{- end }}
|
|
ports:
|
|
- port: {{ .Values.metrics.service.port }}
|
|
targetPort: http-metrics
|
|
protocol: TCP
|
|
name: http-metrics
|
|
{{- if and (or (eq .Values.metrics.service.type "NodePort") (eq .Values.metrics.service.type "LoadBalancer")) (not (empty .Values.metrics.service.nodePort)) }}
|
|
nodePort: {{ .Values.metrics.service.nodePort }}
|
|
{{- else if eq .Values.metrics.service.type "ClusterIP" }}
|
|
nodePort: null
|
|
{{- end }}
|
|
selector: {{- include "kong.matchLabels" . | nindent 4 }}
|
|
app.kubernetes.io/component: server
|