-
Notifications
You must be signed in to change notification settings - Fork 1
/
sage2.yaml
83 lines (83 loc) · 1.64 KB
/
sage2.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
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sage2uploads
namespace: sage2
spec:
storageClassName: rook-block
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sage2
namespace: sage2
spec:
template:
metadata:
labels:
k8s-app: sage2
spec:
containers:
- name: sage2-app
image: sage2/master
env:
- name: ROOT_URL
value: "https://sage2.nautilus.optiputer.net"
ports:
- name: sage-port-9090
containerPort: 9090
- name: sage-port-9292
containerPort: 9292
volumeMounts:
- name: sage2uploads
mountPath: /root/Documents/SAGE2_Media
# - name: sage2keys
# mountPath: /sage2/keys
# - name: sage2config
# mountPath: /sage2/config
volumes:
# - name: sage2config
# secret:
# secretName: sage2config
# - name: sage2keys
# secret:
# secretName: sage2keys
- name: sage2uploads
persistentVolumeClaim:
claimName: sage2uploads
---
apiVersion: v1
kind: Service
metadata:
name: sage2
namespace: sage2
labels:
k8s-app: sage2
spec:
ports:
- port: 9090
selector:
k8s-app: sage2
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: sage2
namespace: sage2
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: sage2.nautilus.optiputer.net
http:
paths:
- path: /
backend:
serviceName: sage2
servicePort: 9090