diff --git a/kubernetes/teyvat/templates/volsync/kustomization.yaml b/kubernetes/teyvat/templates/volsync/kustomization.yaml index 4903b7fd32..0a5e029922 100644 --- a/kubernetes/teyvat/templates/volsync/kustomization.yaml +++ b/kubernetes/teyvat/templates/volsync/kustomization.yaml @@ -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 diff --git a/kubernetes/teyvat/templates/volsync/minio.yaml b/kubernetes/teyvat/templates/volsync/minio.yaml index bb984b0288..beee42b7eb 100644 --- a/kubernetes/teyvat/templates/volsync/minio.yaml +++ b/kubernetes/teyvat/templates/volsync/minio.yaml @@ -1,4 +1,3 @@ ---- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: @@ -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 @@ -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}" @@ -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}"] diff --git a/kubernetes/teyvat/templates/volsync/r2.yaml b/kubernetes/teyvat/templates/volsync/r2.yaml index 87e1ad7491..4f5d2f5cba 100644 --- a/kubernetes/teyvat/templates/volsync/r2.yaml +++ b/kubernetes/teyvat/templates/volsync/r2.yaml @@ -1,4 +1,3 @@ ---- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: @@ -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 @@ -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}"]