Skip to content

Commit

Permalink
fix: selectorLabels updates to expose service on pod (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaller authored Mar 9, 2024
1 parent c42a896 commit bac61a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
- name: {{ $key }}
value: {{ $val | quote -}}
{{ end }}
- name: SNAPSHOT
value: "{{ .Chart.AppVersion }}"
command:
- /bin/sh
- -c
Expand All @@ -75,6 +77,8 @@ spec:
- name: {{ $key }}
value: {{ $val | quote -}}
{{ end }}
- name: SNAPSHOT
value: "{{ .Chart.AppVersion }}"
command:
- /bin/sh
- -c
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ spec:
protocol: TCP
name: http
selector:
name: {{ .Chart.Name }}-app
{{- include "helm.selectorLabels" . | nindent 4 }}
7 changes: 3 additions & 4 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ securityContext: {}

service:
type: ClusterIP
port: 8000
port: 80
targetPort: 8000

ingress:
Expand Down Expand Up @@ -109,7 +109,7 @@ affinity: {}

env:
PRIMARY_HOSTNAME: "bib.ietf.org"
INTERNAL_HOSTNAMES: "locahost, 127.0.0.1"
INTERNAL_HOSTNAMES: "localhost,127.0.0.1"
DEBUG: "0"
SOURCE_REPO_URL: "https://github.com/ietf-tools/"
DJANGO_SECRET: "SomeLongRandomString"
Expand All @@ -136,5 +136,4 @@ env:
REDIS_HOST: "localhost"
REDIS_PORT: "6379"
AUTO_REINDEX_INTERVAL: "5400"
SNAPSHOT: "{{ .Chart.AppVersion }}"
PORT: "8000"
PORT: "8000"

0 comments on commit bac61a9

Please sign in to comment.