docs: Kubernetes deployment

This commit is contained in:
Kroese 2025-03-07 00:03:49 +01:00 committed by GitHub
parent bfc8d7a9c6
commit 8e9b8be977
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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