mirror of
https://github.com/dockur/windows.git
synced 2024-06-03 07:15:24 +02:00
Compare commits
3 Commits
26cee3c7c5
...
3e32617dbc
Author | SHA1 | Date | |
---|---|---|---|
|
3e32617dbc | ||
|
fd1fd1c48f | ||
|
4379d93f3b |
45
kubernetes.yml
Normal file
45
kubernetes.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: windows-pod
|
||||||
|
labels:
|
||||||
|
name: windows-pod
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: windows
|
||||||
|
image: dockurr/windows
|
||||||
|
ports:
|
||||||
|
- containerPort: 8006
|
||||||
|
- containerPort: 3389
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
devices.kubevirt.io/kvm: 1
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
|
env:
|
||||||
|
- name: RAM_SIZE
|
||||||
|
value: 16G
|
||||||
|
- name: CPU_CORES
|
||||||
|
value: "8"
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: windows-service
|
||||||
|
spec:
|
||||||
|
type: NodePort
|
||||||
|
selector:
|
||||||
|
name: windows-pod
|
||||||
|
ports:
|
||||||
|
- name: tcp-8006
|
||||||
|
protocol: TCP
|
||||||
|
port: 8006
|
||||||
|
targetPort: 8006
|
||||||
|
nodePort: 48006
|
||||||
|
- name: tcp-3389
|
||||||
|
protocol: TCP
|
||||||
|
port: 3389
|
||||||
|
targetPort: 3389
|
||||||
|
nodePort: 43389
|
|
@ -3,8 +3,6 @@
|
||||||
# Copyright (C) 2024 Elliot Killick <contact@elliotkillick.com>
|
# Copyright (C) 2024 Elliot Killick <contact@elliotkillick.com>
|
||||||
# Licensed under the MIT License. See LICENSE file for details.
|
# Licensed under the MIT License. See LICENSE file for details.
|
||||||
|
|
||||||
[ "$DEBUG" ] && set -x
|
|
||||||
|
|
||||||
# Prefer Dash shell for greater security if available
|
# Prefer Dash shell for greater security if available
|
||||||
if [ "$BASH" ] && command -v dash > /dev/null; then
|
if [ "$BASH" ] && command -v dash > /dev/null; then
|
||||||
exec dash "$0" "$@"
|
exec dash "$0" "$@"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user