-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.yaml
38 lines (38 loc) · 1.05 KB
/
service.yaml
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
apiVersion: v1
kind: Service
metadata:
name: {{ include "chainlink.fullname" . }}
namespace: {{ .Values.namespace }}
labels:
{{- include "chainlink.labels" . | nindent 4 }}
spec:
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "chainlink.selectorLabels" . | nindent 4 }}
{{ if .Values.config.p2p.enabled }}
---
apiVersion: v1
kind: Service
metadata:
name: "{{ include "chainlink.fullname" . }}-p2p-ingress"
namespace: {{ .Values.namespace }}
labels:
{{- include "chainlink.labels" . | nindent 4 }}
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp
service.beta.kubernetes.io/aws-load-balancer-type: nlb
service.beta.kubernetes.io/aws-load-balancer-eip-allocations: {{ .Values.config.p2p.elastic_ip_alloc_id }}
spec:
type: LoadBalancer
ports:
- port: {{ .Values.config.p2p.port }}
targetPort: p2p
protocol: TCP
name: p2p
selector:
{{- include "chainlink.selectorLabels" . | nindent 4 }}
{{ end }}