parent
0c75cbf3a4
commit
73e019913a
|
@ -61,30 +61,6 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
{{- toYaml . | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: {{ .Chart.Name }}-secondary
|
|
||||||
ports:
|
|
||||||
- name: secondary
|
|
||||||
containerPort: 8000
|
|
||||||
protocol: TCP
|
|
||||||
image: "{{ .Values.secondaryApp.image.repository }}:{{ .Values.secondaryApp.image.tag }}"
|
|
||||||
imagePullPolicy: {{ .Values.secondaryApp.image.pullPolicy }}
|
|
||||||
{{- with .Values.secondaryApp.securityContext }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml . | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
volumeMounts:
|
|
||||||
{{- if .Values.persistence.enabled }}
|
|
||||||
- name: data
|
|
||||||
mountPath: {{ .Values.persistence.mountPath }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.secondaryApp.resources }}
|
|
||||||
resources:
|
|
||||||
{{- toYaml . | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.secondaryApp.command }}
|
|
||||||
command:
|
|
||||||
{{- toYaml .Values.secondaryApp.command | nindent 12 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.volumes }}
|
{{- with .Values.volumes }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
# templates/pvc.yaml
|
|
||||||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: {{ include "common.names.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "common.labels.standard" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
{{- toYaml .Values.persistence.accessModes | nindent 4 }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.size }}
|
|
||||||
{{- if .Values.persistence.storageClass }}
|
|
||||||
storageClassName: {{ .Values.persistence.storageClass | quote }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
|
@ -10,7 +10,4 @@ spec:
|
||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
- name: secondary
|
|
||||||
port: 8000
|
|
||||||
targetPort: 8000
|
|
||||||
selector: {{- include "chart.selectorLabels" . | nindent 4 }}
|
selector: {{- include "chart.selectorLabels" . | nindent 4 }}
|
||||||
|
|
|
@ -112,34 +112,21 @@ autoscaling:
|
||||||
targetCPUUtilizationPercentage: 80
|
targetCPUUtilizationPercentage: 80
|
||||||
# targetMemoryUtilizationPercentage: 80
|
# targetMemoryUtilizationPercentage: 80
|
||||||
|
|
||||||
volumes:
|
# Additional volumes on the output Deployment definition.
|
||||||
- name: data
|
volumes: []
|
||||||
persistentVolumeClaim:
|
# - name: foo
|
||||||
claimName: blog-service-claim
|
# secret:
|
||||||
|
# secretName: mysecret
|
||||||
|
# optional: false
|
||||||
|
|
||||||
volumeMounts:
|
# Additional volumeMounts on the output Deployment definition.
|
||||||
- name: data
|
volumeMounts: []
|
||||||
mountPath: /data
|
# - name: foo
|
||||||
|
# mountPath: "/etc/foo"
|
||||||
secondaryApp:
|
# readOnly: true
|
||||||
image:
|
|
||||||
repository: registry.acayip.dev/blog-services
|
|
||||||
tag: "latest"
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
securityContext: {}
|
|
||||||
resources: {}
|
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
persistence:
|
|
||||||
enabled: true
|
|
||||||
existingClaim: "" # Use existing PVC (optional)
|
|
||||||
storageClass: ""
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
size: 1Gi
|
|
||||||
mountPath: /data # Directory where SQLite file is stored
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user