Skip to content

Commit

Permalink
Fix service
Browse files Browse the repository at this point in the history
  • Loading branch information
cyxou committed May 4, 2022
1 parent feac220 commit beef062
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion charts/hajimari/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
backend:
service:
name: {{ $serviceName }}
port:
port:
name: http
{{- end }}
{{- end }}
Expand Down
17 changes: 2 additions & 15 deletions charts/hajimari/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "hajimari.fullname" . }}-service
name: {{ include "hajimari.fullname" . }}
labels:
{{- include "hajimari.labels" . | nindent 4 }}
annotations:
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: 3000
targetPort: http
protocol: TCP
name: http
selector:
Expand Down
4 changes: 1 addition & 3 deletions charts/hajimari/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ hajimari:
# @default -- See values.yaml
service:
type: ClusterIP
ports:
http:
port: 3000
port: 3000

# -- Configures service account needed for reading k8s ingress objects
# @default -- See below
Expand Down

0 comments on commit beef062

Please sign in to comment.