mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 08:57:33 +08:00
docs: Kubernetes deployment
This commit is contained in:
parent
bfc8d7a9c6
commit
8e9b8be977
@ -10,12 +10,21 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: 16Gi
|
storage: 16Gi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: apps/v1
|
||||||
kind: Pod
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: dsm
|
name: dsm
|
||||||
labels:
|
labels:
|
||||||
name: dsm
|
name: dsm
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: dsm
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: dsm
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: dsm
|
- name: dsm
|
||||||
@ -29,6 +38,8 @@ spec:
|
|||||||
value: "16G"
|
value: "16G"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
@ -59,9 +70,12 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: dsm
|
name: dsm
|
||||||
spec:
|
spec:
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
ports:
|
ports:
|
||||||
- name: tcp-5000
|
- name: http
|
||||||
port: 5000
|
port: 5000
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 5000
|
||||||
selector:
|
selector:
|
||||||
name: dsm
|
app: dsm
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user