Skip to content

Commit

Permalink
Add second claim for index
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctzombie committed Nov 30, 2022
1 parent 54ee78f commit 2c7d5ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/edge-site/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ type: application
# 1.0.0-alpha.0
# 1.0.0-alpha.1
# 1.0.0
version: 0.0.0-alpha.2
version: 0.0.0-alpha.3

appVersion: "0.0.0"
12 changes: 9 additions & 3 deletions charts/edge-site/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ spec:
- name: storage-root
persistentVolumeClaim:
claimName: "{{ .Values.edge_controller.storageClaim }}"
volumes:
- name: index-root
persistentVolumeClaim:
claimName: "{{ .Values.edge_controller.indexClaim }}"
containers:
- name: edge-controller
image: us-central1-docker.pkg.dev/foxglove-images/images/edge-controller:8fef61e167e6a914e5a70fba70a0fc6ec4d0ce14
volumeMounts:
- mountPath: "/data/edge_storage_root"
- mountPath: "/data/storage"
name: storage-root
- mountPath: "/data/index"
name: index-root
env:
- name: SITE_TOKEN
valueFrom:
Expand All @@ -31,8 +37,8 @@ spec:
key: token
optional: false
- name: DATABASE_CONNECTION_STRING
value: sqlite://file:/data/edge_storage_root/foxglove.db?_journal_mode=WAL
value: sqlite://file:/data/index/foxglove.db?_journal_mode=WAL
- name: STORAGE_ROOT
value: /data/edge_storage_root
value: /data/storage
- name: FOXGLOVE_API_URL
value: "{{ .Values.globals.foxglove_api_url }}"
3 changes: 2 additions & 1 deletion charts/edge-site/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ globals:
foxglove_api_url: https://api.foxglove.dev

edge_controller:
storageClaim: edge-controller-pv-claim
storageClaim: edge-controller-storage-claim
indexClaim: edge-controller-index-claim

0 comments on commit 2c7d5ef

Please sign in to comment.