Skip to content

Commit

Permalink
Merge pull request #16 from pallxk/nsqadmin-base-path
Browse files Browse the repository at this point in the history
support setting base path for nsqadmin
  • Loading branch information
mreiferson authored Dec 26, 2023
2 parents 8a57158 + 8388648 commit 9753fbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/nsq/templates/nsqadmin-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
command:
- /nsqadmin
args:
- --base-path={{ .Values.nsqadmin.basePath }}
{{ $lookupdFullName := include "nsq.nsqlookupd.fullname" . -}}
{{ range $i, $e := until (atoi (printf "%d" (int64 .Values.nsqlookupd.replicaCount))) -}}
- --lookupd-http-address={{ $lookupdFullName }}-{{ $i }}.{{ $lookupdFullName }}:4161
Expand All @@ -46,11 +47,11 @@ spec:
name: http
livenessProbe:
httpGet:
path: /
path: {{ .Values.nsqadmin.basePath }}
port: http
readinessProbe:
httpGet:
path: /
path: {{ .Values.nsqadmin.basePath }}
port: http
resources:
{{- toYaml .Values.nsqadmin.resources | nindent 12 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/nsq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ nsqadmin:

priorityClassName:

basePath: /

extraArgs: []

service:
Expand Down

0 comments on commit 9753fbc

Please sign in to comment.