diff --git a/helm-chart/templates/16-hub-service-metrics.yaml b/helm-chart/templates/16-hub-service-metrics.yaml new file mode 100644 index 000000000..cd26ba712 --- /dev/null +++ b/helm-chart/templates/16-hub-service-metrics.yaml @@ -0,0 +1,23 @@ +--- +kind: Service +apiVersion: v1 +metadata: + labels: + {{- include "kubeshark.labels" . | nindent 4 }} + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '9100' + {{- if .Values.tap.annotations }} + {{- toYaml .Values.tap.annotations | nindent 4 }} + {{- end }} + name: kubeshark-hub-metrics + namespace: {{ .Release.Namespace }} +spec: + selector: + app.kubeshark.co/app: hub + {{- include "kubeshark.labels" . | nindent 4 }} + ports: + - name: metrics + protocol: TCP + port: 9100 + targetPort: 9100 diff --git a/helm-chart/templates/16-network-policies.yaml b/helm-chart/templates/17-network-policies.yaml similarity index 96% rename from helm-chart/templates/16-network-policies.yaml rename to helm-chart/templates/17-network-policies.yaml index a412cde2a..276acd2db 100644 --- a/helm-chart/templates/16-network-policies.yaml +++ b/helm-chart/templates/17-network-policies.yaml @@ -20,6 +20,9 @@ spec: - ports: - protocol: TCP port: 8080 + - ports: + - protocol: TCP + port: 9100 egress: - {} ---