-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheclipse-theia.yaml
104 lines (104 loc) · 2.07 KB
/
eclipse-theia.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: theia
namespace: ralphilius
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: theia-basic-auth
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Eclipse Theia'
spec:
rules:
- host: theia-ralphilius.cloud.okteto.net
http:
paths:
- backend:
serviceName: theia
servicePort: 80
- host: 5000-theia-ralphilius.cloud.okteto.net
http:
paths:
- backend:
serviceName: theia
servicePort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: theia
namespace: ralphilius
spec:
ports:
- port: 80
name: "80"
targetPort: 3000
- port: 5000
name: "5000"
targetPort: 5000
selector:
app: theia
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: theia-pvc
namespace: ralphilius
labels:
app: theia
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: standard
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: theia
name: theia
namespace: ralphilius
spec:
selector:
matchLabels:
app: theia
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: theia
spec:
volumes:
- name: storage
persistentVolumeClaim:
claimName: theia-pvc
- name: ssh-secret-volume
secret:
secretName: mba-ssh-key
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- image: theiaide/theia-full:latest
imagePullPolicy: Always
name: theia
resources:
requests:
memory: "4Gi"
cpu: 2
limits:
memory: "4Gi"
cpu: 2
ports:
- containerPort: 3000
volumeMounts:
- name: storage
mountPath: "/home/project"
- name: ssh-secret-volume
mountPath: "/home/theia/.ssh"