Skip to content

Commit

Permalink
change volsync cache to ceph-block
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Feb 10, 2024
1 parent c4c6c75 commit be24e66
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 74 deletions.
9 changes: 4 additions & 5 deletions kubernetes/teyvat/templates/volsync/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./claim.yaml
- ./minio.yaml
- ./r2.yaml
- ./es-test.yaml
- ./claim.yaml
- ./minio.yaml
- ./r2.yaml
# - ./es-test.yaml
69 changes: 34 additions & 35 deletions kubernetes/teyvat/templates/volsync/minio.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
Expand All @@ -14,38 +13,38 @@ spec:
AWS_ACCESS_KEY_ID: "{{ .AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "{{ .AWS_SECRET_ACCESS_KEY }}"
data:
- secretKey: REPOSITORY_TEMPLATE
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: restic_endpoint
- secretKey: RESTIC_PASSWORD
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: restic_password
- secretKey: AWS_ACCESS_KEY_ID
sourceRef:
storeRef:
name: bitwarden-login
kind: ClusterSecretStore
remoteRef:
key: be779808-b3ed-469b-a27f-b0fe011a54e2
property: username
- secretKey: AWS_SECRET_ACCESS_KEY
sourceRef:
storeRef:
name: bitwarden-login
kind: ClusterSecretStore
remoteRef:
key: be779808-b3ed-469b-a27f-b0fe011a54e2
property: password
- secretKey: REPOSITORY_TEMPLATE
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: restic_endpoint
- secretKey: RESTIC_PASSWORD
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: restic_password
- secretKey: AWS_ACCESS_KEY_ID
sourceRef:
storeRef:
name: bitwarden-login
kind: ClusterSecretStore
remoteRef:
key: be779808-b3ed-469b-a27f-b0fe011a54e2
property: username
- secretKey: AWS_SECRET_ACCESS_KEY
sourceRef:
storeRef:
name: bitwarden-login
kind: ClusterSecretStore
remoteRef:
key: be779808-b3ed-469b-a27f-b0fe011a54e2
property: password
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationDestination
Expand All @@ -58,7 +57,7 @@ spec:
repository: "${APP}-volsync"
copyMethod: Snapshot
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-csi-ceph-blockpool}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-local-hostpath}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-ceph-block}" #was local-hostpath
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}"
storageClassName: "${VOLSYNC_STORAGECLASS:-ceph-block}"
Expand All @@ -83,7 +82,7 @@ spec:
repository: "${APP}-volsync"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-csi-ceph-blockpool}"
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-local-hostpath}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-ceph-block}" #was local-hostpath
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
storageClassName: "${VOLSYNC_STORAGECLASS:-ceph-block}"
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
Expand Down
67 changes: 33 additions & 34 deletions kubernetes/teyvat/templates/volsync/r2.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
Expand All @@ -14,38 +13,38 @@ spec:
AWS_ACCESS_KEY_ID: "{{ .AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "{{ .AWS_SECRET_ACCESS_KEY }}"
data:
- secretKey: REPOSITORY_TEMPLATE
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_restic_endpoint
- secretKey: RESTIC_PASSWORD
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_restic_password
- secretKey: AWS_ACCESS_KEY_ID
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_access_key_id
- secretKey: AWS_SECRET_ACCESS_KEY
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_secret_key
- secretKey: REPOSITORY_TEMPLATE
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_restic_endpoint
- secretKey: RESTIC_PASSWORD
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_restic_password
- secretKey: AWS_ACCESS_KEY_ID
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_access_key_id
- secretKey: AWS_SECRET_ACCESS_KEY
sourceRef:
storeRef:
name: bitwarden-fields
kind: ClusterSecretStore
remoteRef:
key: fb121da5-ecd8-4e94-a5a0-b0fe011aef94
property: r2_secret_key
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
Expand All @@ -61,7 +60,7 @@ spec:
repository: "${APP}-volsync-r2"
volumeSnapshotClassName: "${VOLSYNC_SNAPSHOTCLASS:-csi-ceph-blockpool}"
cacheCapacity: "${VOLSYNC_CACHE_CAPACITY:-8Gi}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-local-hostpath}"
cacheStorageClassName: "${VOLSYNC_CACHE_SNAPSHOTCLASS:-ceph-block}" # was local-hostpath
cacheAccessModes: ["${VOLSYNC_CACHE_ACCESSMODES:-ReadWriteOnce}"]
storageClassName: "${VOLSYNC_STORAGECLASS:-ceph-block}"
accessModes: ["${VOLSYNC_ACCESSMODES:-ReadWriteOnce}"]
Expand Down

0 comments on commit be24e66

Please sign in to comment.