kubernetes deployment and clusterip

This commit is contained in:
Francois Liot 2025-03-06 23:23:31 +01:00
parent b8105e9072
commit 7893860d53

View file

@ -10,13 +10,22 @@ spec:
requests:
storage: 64Gi
---
apiVersion: v1
kind: Pod
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows
labels:
name: windows
spec:
replicas: 1
selector:
matchLabels:
app: windows
template:
metadata:
labels:
app: windows
spec:
containers:
- name: windows
image: dockurr/windows
@ -31,9 +40,11 @@ spec:
value: "64G"
ports:
- containerPort: 8006
name: http
protocol: TCP
- containerPort: 3389
- containerPort: 3389
protocol: UDP
name: rdp
protocol: TCP
securityContext:
capabilities:
add:
@ -64,14 +75,16 @@ kind: Service
metadata:
name: windows
spec:
internalTrafficPolicy: Cluster
ports:
- name: tcp-8006
- name: http
port: 8006
- name: tcp-3389
protocol: TCP
targetPort: 8006
- name: rdp
port: 3389
- name: udp-3389
port: 3389
protocol: UDP
protocol: TCP
targetPort: 3389
selector:
name: windows
type: NodePort
app: windows
type: ClusterIP