docs: Kubernetes deployment (#916)
Some checks failed
Update / dockerHubDescription (push) Has been cancelled

This commit is contained in:
Kroese 2025-03-07 00:42:29 +01:00 committed by GitHub
parent 2e73bf560e
commit 7d2af63eac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,13 +10,22 @@ spec:
requests:
storage: 16Gi
---
apiVersion: v1
kind: Pod
apiVersion: apps/v1
kind: Deployment
metadata:
name: dsm
labels:
name: dsm
spec:
replicas: 1
selector:
matchLabels:
app: dsm
template:
metadata:
labels:
app: dsm
spec:
containers:
- name: dsm
image: vdsm/virtual-dsm
@ -29,6 +38,8 @@ spec:
value: "16G"
ports:
- containerPort: 5000
name: http
protocol: TCP
securityContext:
capabilities:
add:
@ -59,9 +70,12 @@ kind: Service
metadata:
name: dsm
spec:
internalTrafficPolicy: Cluster
ports:
- name: tcp-5000
- name: http
port: 5000
protocol: TCP
targetPort: 5000
selector:
name: dsm
type: NodePort
app: dsm
type: ClusterIP