Skip to content

Commit

Permalink
Add persstent-volume and chane ports
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiho0135 committed Feb 6, 2025
1 parent cb41ead commit 04da077
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/openklant/templates/configmap-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ data:
default.conf: |
server {
listen 8080 default_server;
listen 8000 default_server;
server_name {{ .Values.settings.allowedHosts | replace "," " "}} localhost;
server_tokens off;
client_max_body_size {{ .Values.nginx.config.clientMaxBodySize }};
Expand Down
2 changes: 1 addition & 1 deletion charts/openklant/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ spec:
port: http
ports:
- name: http
containerPort: 8080
containerPort: 8000
resources:
{{- toYaml .Values.nginx.resources | nindent 12 }}
volumeMounts:
Expand Down
15 changes: 15 additions & 0 deletions charts/openklant/templates/persistent-volume-claim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "openklant.fullname" . }}
labels:
{{- include "openklant.labels" . | nindent 4 }}
spec:
accessModes:
- ReadWriteMany
storageClassName: {{ .Values.persistence.storageClassName }}
resources:
requests:
storage: {{ .Values.persistence.size }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/openklant/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
type: {{ .Values.nginx.service.type }}
ports:
- port: {{ .Values.nginx.service.port }}
targetPort: 8080
targetPort: 8000
name: http
selector:
{{- include "openklant.nginxSelectorLabels" . | nindent 4 }}

0 comments on commit 04da077

Please sign in to comment.