Skip to content

Commit

Permalink
Merge pull request #136 from drkfmorton/issue-92
Browse files Browse the repository at this point in the history
feat: Added support for additonal storage engines
  • Loading branch information
bnevis-i authored Oct 24, 2022
2 parents 83b548b + 5003970 commit 49b4f69
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 22 deletions.
44 changes: 33 additions & 11 deletions deployment/helm/templates/edgex-pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -14,10 +15,12 @@ spec:
capacity:
storage: 500Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-consul-config"
{{- end}}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -30,10 +33,12 @@ spec:
capacity:
storage: 500Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-consul-data"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -46,10 +51,12 @@ spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-db"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -62,11 +69,13 @@ spec:
capacity:
storage: 128Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-kuiper-data"
{{- end }}
{{- if .Values.edgex.security.enabled }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -79,10 +88,12 @@ spec:
capacity:
storage: 8Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/tmp/edgex/secrets"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -95,10 +106,12 @@ spec:
capacity:
storage: 128Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-init-volume"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -111,10 +124,12 @@ spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-vault-data"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -127,10 +142,12 @@ spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-vault-logs"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -143,10 +160,12 @@ spec:
capacity:
storage: 8Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-vault-config"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -159,10 +178,12 @@ spec:
capacity:
storage: 8Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-redis-config"
{{- end }}
---
{{- if .Values.edgex.storage.useHostPath }}
apiVersion: v1
kind: PersistentVolume
metadata:
Expand All @@ -175,7 +196,8 @@ spec:
capacity:
storage: 8Mi
accessModes:
- ReadWriteMany
- ReadWriteOnce
hostPath:
path: "/mnt/edgex-consul-acl-token"
{{- end }}
{{- end }}
22 changes: 11 additions & 11 deletions deployment/helm/templates/edgex-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 128Mi
Expand All @@ -21,7 +21,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 128Mi
Expand All @@ -33,7 +33,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 512Mi
Expand All @@ -45,7 +45,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 128Mi
Expand All @@ -58,7 +58,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 8Mi
Expand All @@ -70,7 +70,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 128Mi
Expand All @@ -82,7 +82,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 128Mi
Expand All @@ -94,7 +94,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 128Mi
Expand All @@ -106,7 +106,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 8Mi
Expand All @@ -118,7 +118,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 8Mi
Expand All @@ -130,7 +130,7 @@ metadata:
spec:
storageClassName: "{{.Values.edgex.storage.className}}"
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 8Mi
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,4 +309,5 @@ edgex:
# Set "isLocal" to true when volumes storage is local, where volume mount is not accessible to remote host.
# This value is used to configure pod affinity.
isLocal: true
useHostPath: true

0 comments on commit 49b4f69

Please sign in to comment.