Loading kubernetes.yml +79 −52 Original line number Diff line number Diff line Loading @@ -10,12 +10,21 @@ 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 Loading @@ -31,9 +40,17 @@ spec: value: "64G" ports: - containerPort: 8006 name: http protocol: TCP - containerPort: 3389 name: rdp protocol: TCP - containerPort: 3389 name: udp protocol: UDP - containerPort: 5900 name: vnc protocol: TCP securityContext: capabilities: add: Loading Loading @@ -64,14 +81,24 @@ 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 protocol: TCP targetPort: 3389 - name: udp port: 3389 protocol: UDP targetPort: 3389 - name: vnc port: 5900 protocol: TCP targetPort: 5900 selector: name: windows type: NodePort app: windows type: ClusterIP Loading
kubernetes.yml +79 −52 Original line number Diff line number Diff line Loading @@ -10,12 +10,21 @@ 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 Loading @@ -31,9 +40,17 @@ spec: value: "64G" ports: - containerPort: 8006 name: http protocol: TCP - containerPort: 3389 name: rdp protocol: TCP - containerPort: 3389 name: udp protocol: UDP - containerPort: 5900 name: vnc protocol: TCP securityContext: capabilities: add: Loading Loading @@ -64,14 +81,24 @@ 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 protocol: TCP targetPort: 3389 - name: udp port: 3389 protocol: UDP targetPort: 3389 - name: vnc port: 5900 protocol: TCP targetPort: 5900 selector: name: windows type: NodePort app: windows type: ClusterIP