diff --git a/kube/helm/backup/netmaker-service-grpc.yaml b/kube/helm/backup/netmaker-service-grpc.yaml new file mode 100644 index 00000000..5e4ec219 --- /dev/null +++ b/kube/helm/backup/netmaker-service-grpc.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + {{- include "netmaker.labels" . | nindent 4 }} + name: {{ include "netmaker.fullname" . }}-grpc +spec: + ports: + - name: grpc + port: {{ .Values.service.grpcPort }} + protocol: TCP + targetPort: {{ .Values.service.grpcPort }} + selector: + {{- include "netmaker.selectorLabels" . | nindent 4 }} + sessionAffinity: None + type: {{ .Values.service.type }} diff --git a/kube/helm/backup/netmaker-service-rest.yaml b/kube/helm/backup/netmaker-service-rest.yaml new file mode 100644 index 00000000..676a74ae --- /dev/null +++ b/kube/helm/backup/netmaker-service-rest.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + {{- include "netmaker.labels" . | nindent 4 }} + name: {{ include "netmaker.fullname" . }}-rest +spec: + ports: + - name: rest + port: {{ .Values.service.apiPort }} + protocol: TCP + targetPort: {{ .Values.service.apiPort }} + selector: + {{- include "netmaker.selectorLabels" . | nindent 4 }} + sessionAffinity: None + type: {{ .Values.service.type }}