Skip to content

Commit

Permalink
ability to change components service type
Browse files Browse the repository at this point in the history
Signed-off-by: azhurbilo <artemzhurbilo@gmail.com>
  • Loading branch information
azhurbilo committed Apr 22, 2021
1 parent 8e067f0 commit 041575f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion contrib/chart/backstage/templates/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,20 @@ spec:
name: {{ include "backend.postgresql.passwordSecret" .}}
key: postgresql-password
volumeMounts:
{{- if .Values.postgresql.enabled }}
- name: postgres-ca
mountPath: {{ include "backstage.backend.postgresCaDir" . }}
{{- end }}
- name: app-config
mountPath: {{ printf "/usr/src/app/%s" (include "backstage.appConfigFilename" .) }}
subPath: {{ include "backstage.appConfigFilename" . }}

volumes:
{{- if .Values.postgresql.enabled }}
- name: postgres-ca
configMap:
name: {{ include "backstage.fullname" . }}-postgres-ca
{{- end }}
- name: app-config
configMap:
name: {{ include "backstage.fullname" . }}-app-config
Expand All @@ -83,5 +87,5 @@ spec:
app: backstage
component: backend

type: ClusterIP
type: {{ .Values.backend.serviceType }}
{{- end }}
2 changes: 1 addition & 1 deletion contrib/chart/backstage/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ spec:
app: backstage
component: frontend

type: ClusterIP
type: {{ .Values.frontend.serviceType }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ spec:
app: backstage
component: lighthouse-audit-service

type: ClusterIP
type: {{ .Values.lighthouse.serviceType }}
{{- end }}
3 changes: 3 additions & 0 deletions contrib/chart/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ frontend:
tag: test1
pullPolicy: IfNotPresent
containerPort: 80
serviceType: ClusterIP
resources:
requests:
memory: 128Mi
Expand All @@ -26,6 +27,7 @@ backend:
tag: test1
pullPolicy: IfNotPresent
containerPort: 7000
serviceType: ClusterIP
resources:
requests:
memory: 512Mi
Expand All @@ -40,6 +42,7 @@ lighthouse:
tag: latest
pullPolicy: IfNotPresent
containerPort: 3003
serviceType: ClusterIP
resources:
requests:
memory: 128Mi
Expand Down

0 comments on commit 041575f

Please sign in to comment.