-
Notifications
You must be signed in to change notification settings - Fork 26
/
static.yaml
47 lines (47 loc) · 952 Bytes
/
static.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
39
40
41
42
43
44
45
46
47
apiVersion: v1
kind: Service
metadata:
name: tezos-node-rpc
namespace: {{ .Release.Namespace }}
spec:
ports:
- port: 8732
name: rpc
{{- with .Values.services.tezos_node_rpc.selector | default (dict "appType" "tezos-node") }}
selector:
{{- toYaml . | nindent 4 }}
{{- end }}
type: NodePort
---
{{- range $key, $val := .Values.nodes }}
apiVersion: v1
kind: Service
metadata:
name: {{ $key }}
labels:
appType: tezos-node
spec:
ports:
- port: 9732
name: p2p
- port: 9932
name: metrics
publishNotReadyAddresses: true
clusterIP: None
selector:
node_class: {{ $key }}
---
{{- end }}
{{- if (include "tezos.shouldDeployTzktIndexer" .) }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.tzkt_indexer_statefulset.name }}
namespace: {{ .Release.Namespace }}
spec:
ports:
- port: 5000
selector:
app: {{ .Values.tzkt_indexer_statefulset.name }}
type: NodePort
{{- end }}