mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-13 18:04:20 -05:00
968cdc1a38
* 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>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
{{- if and .Values.agent (not .Values.preflight.enabled) .Values.prometheus.enabled }}
|
|
{{- if .Values.prometheus.serviceMonitor.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cilium-agent
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- with .Values.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
k8s-app: cilium
|
|
app.kubernetes.io/name: cilium-agent
|
|
app.kubernetes.io/part-of: cilium
|
|
spec:
|
|
clusterIP: None
|
|
type: ClusterIP
|
|
selector:
|
|
k8s-app: cilium
|
|
ports:
|
|
- name: metrics
|
|
port: {{ .Values.prometheus.port }}
|
|
protocol: TCP
|
|
targetPort: prometheus
|
|
{{- if not .Values.envoy.enabled }}
|
|
- name: envoy-metrics
|
|
port: {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port }}
|
|
protocol: TCP
|
|
targetPort: envoy-metrics
|
|
{{- end }}
|
|
{{- else if and .Values.proxy.prometheus.enabled .Values.envoy.prometheus.enabled (not .Values.envoy.enabled) }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cilium-agent
|
|
namespace: {{ .Release.Namespace }}
|
|
annotations:
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/port: {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port | quote }}
|
|
labels:
|
|
k8s-app: cilium
|
|
app.kubernetes.io/name: cilium-agent
|
|
app.kubernetes.io/part-of: cilium
|
|
spec:
|
|
clusterIP: None
|
|
type: ClusterIP
|
|
selector:
|
|
k8s-app: cilium
|
|
ports:
|
|
- name: envoy-metrics
|
|
port: {{ .Values.proxy.prometheus.port | default .Values.envoy.prometheus.port }}
|
|
protocol: TCP
|
|
targetPort: envoy-metrics
|
|
{{- end }}
|
|
{{- end }}
|