From 12dd91a5b6df5f7c09274bae753bb089954f39a6 Mon Sep 17 00:00:00 2001 From: ns212 Date: Tue, 26 Jan 2021 01:15:09 +0000 Subject: [PATCH] btc-parachain --- charts/polkabtc-parachain/Chart.yaml | 2 +- charts/polkabtc-parachain/templates/service.yaml | 16 ++++++++++++++++ .../templates/statefulset.yaml | 4 +++- charts/polkabtc-parachain/values.yaml | 2 ++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/charts/polkabtc-parachain/Chart.yaml b/charts/polkabtc-parachain/Chart.yaml index dd756a6..6b57f40 100644 --- a/charts/polkabtc-parachain/Chart.yaml +++ b/charts/polkabtc-parachain/Chart.yaml @@ -3,7 +3,7 @@ description: Helm chart for PolkaBTC type: application apiVersion: v2 -version: 0.2.1 +version: 0.2.2 appVersion: 2.0.0 home: https://interlay.io/ diff --git a/charts/polkabtc-parachain/templates/service.yaml b/charts/polkabtc-parachain/templates/service.yaml index a2a1745..6edf5e7 100644 --- a/charts/polkabtc-parachain/templates/service.yaml +++ b/charts/polkabtc-parachain/templates/service.yaml @@ -15,3 +15,19 @@ spec: {{- include "polkabtc.selectorLabels" . | nindent 4 }} sessionAffinity: None type: ClusterIP +--- +apiVersion: v1 +kind: Service +metadata: + name: {{ include "polkabtc.fullname" . }}-p2p + labels: + {{- include "polkabtc.labels" . | nindent 4 }} +spec: + externalTrafficPolicy: Local + ports: + - port: {{ .Values.p2pPort }} + name: p2p + nodePort: {{ .Values.p2pPort }} + selector: + {{- include "polkabtc.selectorLabels" . | nindent 4 }} + type: NodePort diff --git a/charts/polkabtc-parachain/templates/statefulset.yaml b/charts/polkabtc-parachain/templates/statefulset.yaml index 86d5ba7..0211b68 100644 --- a/charts/polkabtc-parachain/templates/statefulset.yaml +++ b/charts/polkabtc-parachain/templates/statefulset.yaml @@ -37,6 +37,8 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} command: - btc-parachain + - --port + - {{ .Values.p2pPort }} - --base-path - {{ .Values.basePath }} {{- range .Values.args }} @@ -46,7 +48,7 @@ spec: {{- include "settings" $ | nindent 10 }} ports: - name: p2p - containerPort: 30333 + containerPort: {{ .Values.p2pPort }} - name: http-rpc containerPort: 9933 - name: websocket-rpc diff --git a/charts/polkabtc-parachain/values.yaml b/charts/polkabtc-parachain/values.yaml index a6250ed..9e4023f 100644 --- a/charts/polkabtc-parachain/values.yaml +++ b/charts/polkabtc-parachain/values.yaml @@ -19,6 +19,8 @@ args: - --name - development +p2pPort: 30335 + serviceAccount: # Specifies whether a service account should be created create: true