mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
- It adds a helm chart that will be hosted in the Github pages URL of this repository - an admission controller operator - Basic documentation for installing the operator, configuring CRDs and example pod configuration
34 lines
934 B
YAML
34 lines
934 B
YAML
{{- if .Values.operator.metrics.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "netbird-operator.fullname" . }}-metrics
|
|
labels:
|
|
{{- include "netbird-operator.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.operator.metrics.type }}
|
|
ports:
|
|
- name: http
|
|
port: {{ .Values.operator.metrics.port }}
|
|
protocol: TCP
|
|
targetPort: {{ .Values.operator.metrics.port }}
|
|
selector:
|
|
{{- include "netbird-operator.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "netbird-operator.webhookService" . }}
|
|
labels:
|
|
{{- include "netbird-operator.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.webhook.service.type }}
|
|
ports:
|
|
- name: https
|
|
port: {{ .Values.webhook.service.port }}
|
|
protocol: TCP
|
|
targetPort: {{ .Values.webhook.service.targetPort }}
|
|
selector:
|
|
{{- include "netbird-operator.selectorLabels" . | nindent 4 }}
|