diff --git a/services/wyoming/deploy/app/kustomization.yaml b/services/wyoming/deploy/app/kustomization.yaml index 05072a8..82f535a 100644 --- a/services/wyoming/deploy/app/kustomization.yaml +++ b/services/wyoming/deploy/app/kustomization.yaml @@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: wyoming resources: - - pvc.yaml + - storage.yaml - piper-deployment.yaml - piper-service.yaml - whisper-deployment.yaml diff --git a/services/wyoming/deploy/app/piper-deployment.yaml b/services/wyoming/deploy/app/piper-deployment.yaml index 25ae7c4..d26475e 100644 --- a/services/wyoming/deploy/app/piper-deployment.yaml +++ b/services/wyoming/deploy/app/piper-deployment.yaml @@ -34,15 +34,3 @@ spec: - name: data persistentVolumeClaim: claimName: wyoming-piper ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: wyoming-piper - namespace: wyoming -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 2Gi diff --git a/services/wyoming/deploy/app/pvc.yaml b/services/wyoming/deploy/app/pvc.yaml deleted file mode 100644 index 40c95b2..0000000 --- a/services/wyoming/deploy/app/pvc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: wyoming-whisper - namespace: wyoming -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 8Gi \ No newline at end of file diff --git a/services/wyoming/deploy/app/storage.yaml b/services/wyoming/deploy/app/storage.yaml new file mode 100644 index 0000000..b83ec8c --- /dev/null +++ b/services/wyoming/deploy/app/storage.yaml @@ -0,0 +1,73 @@ + +apiVersion: v1 +kind: PersistentVolume +metadata: + name: wyoming-whisper + namespace: wyoming +spec: + capacity: + storage: 8Gi + accessModes: + - ReadWriteOnce + hostPath: + path: /dataDisks/nvme00/k3s/storageStatic/pv-wyoming-whisper + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - casa-minion-01 +--- + +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: wyoming-whisper + namespace: wyoming +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 8Gi + storageClassName: "" +--- + + +apiVersion: v1 +kind: PersistentVolume +metadata: + name: wyoming-piper + namespace: wyoming +spec: + capacity: + storage: 2Gi + accessModes: + - ReadWriteOnce + hostPath: + path: /dataDisks/nvme00/k3s/storageStatic/pv-wyoming-piper + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - casa-minion-01 + +--- + +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: wyoming-piper + namespace: wyoming +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi + storageClassName: "" \ No newline at end of file