Compare commits

..

No commits in common. "7d2af63eacf2b3afd89200b8e248f51a3ed12025" and "bfc8d7a9c6f9cbe008f1a4b1172ea325c67409cd" have entirely different histories.

2 changed files with 45 additions and 59 deletions

View File

@ -10,72 +10,58 @@ spec:
requests: requests:
storage: 16Gi storage: 16Gi
--- ---
apiVersion: apps/v1 apiVersion: v1
kind: Deployment kind: Pod
metadata: metadata:
name: dsm name: dsm
labels: labels:
name: dsm name: dsm
spec: spec:
replicas: 1 containers:
selector: - name: dsm
matchLabels: image: vdsm/virtual-dsm
app: dsm env:
template: - name: RAM_SIZE
metadata: value: "1G"
labels: - name: CPU_CORES
app: dsm value: "1"
spec: - name: DISK_SIZE
containers: value: "16G"
- name: dsm ports:
image: vdsm/virtual-dsm - containerPort: 5000
env: securityContext:
- name: RAM_SIZE capabilities:
value: "1G" add:
- name: CPU_CORES - NET_ADMIN
value: "1" privileged: true
- name: DISK_SIZE volumeMounts:
value: "16G" - mountPath: /storage
ports: name: storage
- containerPort: 5000 - mountPath: /dev/kvm
name: http name: dev-kvm
protocol: TCP - mountPath: /dev/net/tun
securityContext: name: dev-tun
capabilities: terminationGracePeriodSeconds: 120
add: volumes:
- NET_ADMIN - name: storage
privileged: true persistentVolumeClaim:
volumeMounts: claimName: dsm-pvc
- mountPath: /storage - hostPath:
name: storage path: /dev/kvm
- mountPath: /dev/kvm name: dev-kvm
name: dev-kvm - hostPath:
- mountPath: /dev/net/tun path: /dev/net/tun
name: dev-tun type: CharDevice
terminationGracePeriodSeconds: 120 name: dev-tun
volumes:
- name: storage
persistentVolumeClaim:
claimName: dsm-pvc
- hostPath:
path: /dev/kvm
name: dev-kvm
- hostPath:
path: /dev/net/tun
type: CharDevice
name: dev-tun
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: dsm name: dsm
spec: spec:
internalTrafficPolicy: Cluster
ports: ports:
- name: http - name: tcp-5000
port: 5000 port: 5000
protocol: TCP
targetPort: 5000
selector: selector:
app: dsm name: dsm
type: ClusterIP type: NodePort

View File

@ -250,14 +250,14 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
### How do I install a specific version of vDSM? ### How do I install a specific version of vDSM?
By default, version 7.2 will be installed, but if you prefer an older version, you can add the download URL of the `.pat` file to your compose file as follows: By default, version 7.2 will be installed, but if you prefer an older version, you can add its download URL to your compose file as follows:
```yaml ```yaml
environment: environment:
URL: "https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat" URL: "https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat"
``` ```
With this method, it is even possible to switch back and forth between versions while keeping your file data intact. With this method, it is even possible to switch between different versions while keeping all your file data intact.
If you don't have internet access, it's also possible to skip the download by setting URL to: If you don't have internet access, it's also possible to skip the download by setting URL to:
@ -266,7 +266,7 @@ kubectl apply -f https://raw.githubusercontent.com/vdsm/virtual-dsm/refs/heads/m
URL: "DSM_VirtualDSM_42218.pat" URL: "DSM_VirtualDSM_42218.pat"
``` ```
after placing a copy of [DSM_VirtualDSM_42218.pat](https://global.synologydownload.com/download/DSM/release/7.0.1/42218/DSM_VirtualDSM_42218.pat) in the root of your `/storage` folder. after placing a file called `DSM_VirtualDSM_42218.pat` in your `/storage` folder.
### What are the differences compared to the standard DSM? ### What are the differences compared to the standard DSM?