Skip to content

Commit 46596fa

Browse files
author
Ken Evensen
committed
Initial commit
1 parent 9c5aebe commit 46596fa

12 files changed

+205
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# kubernetes-xrdp
1+
# docker-kube-xrdp
2+
This repos contains files for orchestartion.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apiVersion: v1
2+
kind: ReplicationController
3+
metadata:
4+
name: guacamole-controller
5+
spec:
6+
replicas: 1
7+
selector:
8+
app: guacamole
9+
template:
10+
metadata:
11+
labels:
12+
app: guacamole
13+
spec:
14+
containers:
15+
- name: guacamole
16+
image: docker-guacamole-plus
17+
ports:
18+
- containerPort: 8080
19+
env:
20+
- name: MYSQL_USER
21+
value: guacamole_user
22+
- name: MYSQL_PASSWORD
23+
value: guacamole_pass
24+
- name: MYSQL_DATABASE
25+
value: guacamole_db
26+
- name: HOME
27+
value: /tmp/home
28+
- name: GUACAMOLE_HOME
29+
value: /tmp/home
30+
nodeSelector:
31+
role: frontend

guacamole-service.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: guacamole-service
5+
spec:
6+
ports:
7+
- port: 8080
8+
protocol: TCP
9+
selector:
10+
app: guacamole
11+
# type: NodePort

guacd-replication-controller.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: ReplicationController
3+
metadata:
4+
name: guacd-controller
5+
spec:
6+
replicas: 1
7+
selector:
8+
app: guacd
9+
template:
10+
metadata:
11+
labels:
12+
app: guacd
13+
spec:
14+
containers:
15+
- name: guacd
16+
image: docker.io/glyptodon/guacd
17+
nodeSelector:
18+
role: frontend

guacd-service.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: guacd
5+
spec:
6+
ports:
7+
- port: 4822
8+
protocol: TCP
9+
selector:
10+
app: guacd

mysql-replication-controller.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: v1
2+
kind: ReplicationController
3+
metadata:
4+
name: mysql-guacamole-controller
5+
spec:
6+
replicas: 1
7+
selector:
8+
app: guacamole-mysql
9+
template:
10+
metadata:
11+
labels:
12+
app: guacamole-mysql
13+
spec:
14+
containers:
15+
- name: mysql
16+
image: registry.access.redhat.com/openshift3/mysql-55-rhel7
17+
volumeMounts:
18+
- name: nfs
19+
mountPath: "/var/lib/mysql/data"
20+
env:
21+
- name: MYSQL_USER
22+
value: guacamole_user
23+
- name: MYSQL_PASSWORD
24+
value: guacamole_pass
25+
- name: MYSQL_DATABASE
26+
value: guacamole_db
27+
volumes:
28+
- name: nfs
29+
nfs:
30+
server: 192.168.122.1
31+
path: "/exports/mysql"
32+
nodeSelector:
33+
role: frontend

mysql-service.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: mysql
5+
spec:
6+
ports:
7+
- port: 3306
8+
protocol: TCP
9+
selector:
10+
app: guacamole-mysql

ssh-replication-controller.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: v1
2+
kind: ReplicationController
3+
metadata:
4+
name: ssh-controller
5+
spec:
6+
replicas: 1
7+
selector:
8+
app: ssh
9+
template:
10+
metadata:
11+
labels:
12+
app: ssh
13+
spec:
14+
containers:
15+
- name: rhel-ssh-server
16+
image: rhel-ssh-server
17+
ports:
18+
- containerPort: 22
19+
# - name: rhel-ssh-tunnel
20+
# image: rhel-ssh-tunnel
21+
# ports:
22+
# - containerPort: 3389
23+
nodeSelector:
24+
role: frontend

ssh-service.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: ssh-service
5+
spec:
6+
ports:
7+
- port: 22
8+
protocol: TCP
9+
name: rhel-ssh-server
10+
# - port: 3389
11+
# protocol: TCP
12+
# name: rhel-ssh-tunnel
13+
selector:
14+
app: ssh
15+
type: NodePort

xrdp-pod.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: xrdp-pod
5+
labels:
6+
app: xrdp
7+
spec:
8+
containers:
9+
- name: rhel-vnc
10+
image: rhel-vnc
11+
ports:
12+
- containerPort: 5901
13+
- name: rhel-xrdp
14+
image: rhel-xrdp
15+
ports:
16+
- containerPort: 3389

0 commit comments

Comments
 (0)