mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-03-01 03:11:21 -05:00

* cli: move internal packages Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: fix buildfiles Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * bazel: fix exclude dir Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: move back libraries that will not be used by TF provider Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
33 lines
871 B
YAML
33 lines
871 B
YAML
{{- if and .Values.hubble.enabled .Values.hubble.metrics.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: hubble-metrics
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
k8s-app: hubble
|
|
app.kubernetes.io/name: hubble
|
|
app.kubernetes.io/part-of: cilium
|
|
annotations:
|
|
{{- with .Values.hubble.annotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.hubble.metrics.serviceAnnotations }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- if not .Values.hubble.metrics.serviceMonitor.enabled }}
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/port: {{ .Values.hubble.metrics.port | quote }}
|
|
{{- end }}
|
|
spec:
|
|
clusterIP: None
|
|
type: ClusterIP
|
|
ports:
|
|
- name: hubble-metrics
|
|
port: {{ .Values.hubble.metrics.port }}
|
|
protocol: TCP
|
|
targetPort: hubble-metrics
|
|
selector:
|
|
k8s-app: cilium
|
|
{{- end }}
|