-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathservice.yaml
More file actions
40 lines (39 loc) · 953 Bytes
/
service.yaml
File metadata and controls
40 lines (39 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
---
{{- if .Values.mapping.enabled }}
apiVersion: v1
kind: Service
metadata:
name: mapping
annotations: {{- toYaml .Values.service.annotations | nindent 4 }}
spec:
selector:
app: {{ .Release.Name }}-mapping
ports:
- name: "8444"
protocol: TCP
port: 8444
targetPort: 8444
{{- if .Values.loadBalancer.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: mapping-lb
annotations: {{- toYaml .Values.loadBalancer.annotations | nindent 4 }}
spec:
type: LoadBalancer
selector:
app: {{ .Release.Name }}-mapping
ports:
- name: "8444"
protocol: TCP
port: 8444
targetPort: 8444
externalTrafficPolicy: {{ .Values.loadBalancer.externalTrafficPolicy }}
{{- if (default .Values.loadBalancer.loadBalancerIP false) }}
loadBalancerIP: {{ .Values.loadBalancer.loadBalancerIP }}
{{- end }}
{{- end }}
{{- end }}