Skip to content

Commit

Permalink
Merge pull request #58 from ctrliq/allow-addr-host
Browse files Browse the repository at this point in the history
Allow supplying host to services
  • Loading branch information
mstg authored Jun 12, 2024
2 parents d2b80e5 + c940eea commit fbe425d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/beskar/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ app.kubernetes.io/instance: {{ .Release.Name }}
name: beskar-gossip-secret
key: gossipKey
- name: BESKAR_REGISTRY_HTTP_ADDR
value: {{ printf ":%v" .Values.services.registry.port | quote }}
value: {{ printf "%v:%v" .Values.services.registry.host .Values.services.registry.port | quote }}
- name: BESKAR_REGISTRY_HTTP_DEBUG_ADDR
value: {{ printf ":%v" .Values.metrics.port | quote }}
value: {{ printf "%v:%v" .Values.metrics.host .Values.metrics.port | quote }}
- name: BESKAR_GOSSIP_ADDR
value: {{ printf ":%v" .Values.services.gossip.port | quote }}
value: {{ printf "%v:%v" .Values.services.gossip.host .Values.services.gossip.port | quote }}
- name: BESKAR_CACHE_ADDR
value: {{ printf ":%v" .Values.services.groupcache.port | quote }}
value: {{ printf "%v:%v" .Values.services.groupcache.host .Values.services.groupcache.port | quote }}
- name: BESKAR_HOSTNAME
value: {{ template "beskar.fullname" . }}
{{- if .Values.secrets.htpasswd }}
Expand Down
4 changes: 4 additions & 0 deletions charts/beskar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
# sessionAffinity: None
# sessionAffinityConfig: {}
# clusterIP:
host: 0.0.0.0
port: 5000
# nodePort:
# loadBalancerIP:
Expand All @@ -38,11 +39,13 @@ services:
gossip:
# sessionAffinity: None
# sessionAffinityConfig: {}
host: 0.0.0.0
port: 5002
annotations: {}
groupcache:
# sessionAffinity: None
# sessionAffinityConfig: {}
host: 0.0.0.0
port: 5003
annotations: {}

Expand Down Expand Up @@ -149,6 +152,7 @@ proxy:

metrics:
enabled: true
host: 0.0.0.0
port: 5001
# Create a prometheus-operator servicemonitor
serviceMonitor:
Expand Down

0 comments on commit fbe425d

Please sign in to comment.