mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 00:48:23 +08:00
docs: Kubernetes deployment
This commit is contained in:
parent
bfc8d7a9c6
commit
8e9b8be977
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user