Skip to content

Commit

Permalink
Correct volume names
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-raizada committed May 16, 2024
1 parent 4060fef commit ba6fd24
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 23 deletions.
35 changes: 20 additions & 15 deletions helm/strfry-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "strfry-chart.fullname" . }}
name: strfry
spec:
replicas: {{ .Values.replicaCount }}
replicas: 1
selector:
matchLabels:
app: {{ include "strfry-chart.name" . }}
app: strfry
template:
metadata:
labels:
app: {{ include "strfry-chart.name" . }}
app: strfry
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
ports:
- containerPort: {{ .Values.service.port }}
volumeMounts:
- name: store-conf
mountPath: /path/to/store.conf
subPath: store.conf
- name: strfry
image: dockurr/strfry
ports:
- containerPort: 7777
volumeMounts:
- name: strfry-db
mountPath: /app/strfry-db
- name: strfry-conf
mountPath: /etc/
subPath: strfry.conf
volumes:
- name: store-conf
configMap:
name: {{ include "strfry-chart.fullname" . }}-configmap
- name: strfry-db
persistentVolumeClaim:
claimName: strfry-chart-db-pvc
- name: strfry-conf
configMap:
name: strfry-chart-configmap
2 changes: 1 addition & 1 deletion helm/strfry-chart/templates/persistentvolumeclaim.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vapiVersion: v1
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "strfry-chart.fullname" . }}-db-pvc
Expand Down
14 changes: 7 additions & 7 deletions helm/strfry-chart/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: { { include "strfry-chart.fullname" . } }
name: {{ .Release.Name }}-{{ .Chart.Name }}
labels:
app: {{ .Chart.Name }}
spec:
selector:
app: { { include "strfry-chart.name" . } }
ports:
- protocol: TCP
port: { { .Values.service.port } }
targetPort: { { .Values.service.port } }
type: { { .Values.service.type } }
- port: {{ .Values.service.port }}
targetPort: 7777
selector:
app: {{ .Chart.Name }}
4 changes: 4 additions & 0 deletions helm/strfry-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

strfry-chart:
name: "strfry"
fullname: "strfry-chart"

serviceAccount:
# Specifies whether a service account should be created
create: true
Expand Down

0 comments on commit ba6fd24

Please sign in to comment.