Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

add nodeport in values, user can annominate nodeport with values #670

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chart/monocular/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: monocular
description: Monocular is a search and discovery front end for Helm Charts Repositories.
version: 1.4.15
version: 1.4.16
appVersion: v1.10.0
home: https://github.com/helm/monocular
sources:
Expand Down
3 changes: 3 additions & 0 deletions chart/monocular/templates/prerender-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ spec:
type: {{ .Values.prerender.service.type }}
ports:
- port: {{ .Values.prerender.service.externalPort }}
{{if (and (eq .Values.prerender.service.type "NodePort") (not (empty .Values.prerender.service.nodePort)))}}
nodePort: {{.Values.prerender.service.nodePort}}
{{end}}
targetPort: {{ .Values.prerender.service.internalPort }}
protocol: TCP
name: {{ .Values.prerender.service.name }}
Expand Down
1 change: 1 addition & 0 deletions chart/monocular/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ prerender:
type: NodePort
externalPort: 80
internalPort: 3000
nodePort: 30800
resources:
requests:
cpu: 100m
Expand Down