Skip to content

Commit

Permalink
Merge pull request #135 from drkfmorton/issue-92
Browse files Browse the repository at this point in the history
feat: Added support for additional storage engines
  • Loading branch information
bnevis-i authored Oct 19, 2022
2 parents 9ea5150 + 4329416 commit 83b548b
Show file tree
Hide file tree
Showing 15 changed files with 129 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.appservice.rules}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.appservice.rules}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.consul}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.consul}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.core.command}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.core.command}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.core.data}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.core.data}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.device.rest}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.device.rest}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.device.virtual}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.device.virtual}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.ekuiper}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.bootstrapper}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
initContainers:
- name: prep-volumes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.core.metadata}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.core.metadata}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.redis}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.redis}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.secretstoresetup}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.bootstrapper}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.secretstoresetup}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.support.notifications}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.support.notifications}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.support.scheduler}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.support.scheduler}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.system}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.secretstoresetup}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
containers:
- name: {{.Values.edgex.app.system}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ spec:
labels:
org.edgexfoundry.service: {{.Values.edgex.app.vault}}
spec:
{{- if and (eq .Values.edgex.security.enabled true) (eq .Values.edgex.storage.isLocal true)}}
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
org.edgexfoundry.service: {{ .Values.edgex.app.bootstrapper}}
topologyKey: "kubernetes.io/hostname"
{{- end}}
automountServiceAccountToken: false
initContainers:
- name: prep-volumes
Expand Down
3 changes: 3 additions & 0 deletions deployment/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,7 @@ edgex:

storage:
className: ""
# 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

0 comments on commit 83b548b

Please sign in to comment.