Skip to content

Commit

Permalink
feat(helm): add a new port
Browse files Browse the repository at this point in the history
  • Loading branch information
eranreshef-starkware authored and nagmo-starkware committed Mar 18, 2024
1 parent 7842b90 commit 73975d9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ RUN set -ex; \
adduser --ingroup $(getent group ${ID} | cut -d: -f1) --uid ${ID} --gecos "" --disabled-password --home /app papyrus; \
chown -R papyrus:papyrus /app

EXPOSE 8080 8081
EXPOSE 8080 8081 8082

USER ${ID}

Expand Down
2 changes: 1 addition & 1 deletion deployments/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.2
version: 0.1.0
5 changes: 3 additions & 2 deletions deployments/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ spec:
- {{ .Values.base_layer_node_url }}
{{- if .Values.services }}
ports:
- containerPort: {{ .Values.services.rpc.port }}
- containerPort: {{ .Values.services.monitoring.port }}
{{- range $_, $v := .Values.services }}
- containerPort: {{ $v.port }}
{{- end }}
{{- end }}
volumeMounts:
- name: data
Expand Down
7 changes: 7 additions & 0 deletions deployments/helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ spec:
number: {{ .Values.services.monitoring.port }}
path: /monitoring
pathType: {{ .Values.ingress.pathType }}
- backend:
service:
name: {{ template "papyrus.name" . }}-peer
port:
number: {{ .Values.services.peer.port }}
path: /peer
pathType: {{ .Values.ingress.pathType }}
tls:
- hosts:
- {{ .Values.ingress.host }}
Expand Down
5 changes: 5 additions & 0 deletions deployments/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ services:
type: ClusterIP
port: 8081
protocol: TCP
# P2P sync endpoint
peer:
type: ClusterIP
port: 8082
protocol: TCP

# Persistent volume claim variables for a papyrus pod.
pvc:
Expand Down

0 comments on commit 73975d9

Please sign in to comment.