-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.yaml
73 lines (73 loc) · 1.42 KB
/
app.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: xnat
spec:
replicas: 1
selector:
matchLabels:
app: xnat
template:
metadata:
labels:
app: xnat
spec:
containers:
- name: xnat
image: ghcr.io/brown-bnc/xnat:1.8.0-TIP-RC3
envFrom:
- configMapRef:
name: app-config
ports:
- name: http
containerPort: 8080
- name: dicom
containerPort: 8104
- name: debug
containerPort: 8000
# NOTE (BNR): Uncomment the following lines to enable LDAP auth
# volumeMounts:
# - name: ldap-provider
# mountPath: "/data/xnat/home/config/auth/ldap-provider.properties"
# subPath: "brownldap-provider.properties"
# readOnly: true
# volumes:
# - name: ldap-provider
# secret:
# secretName: ldap-config
---
apiVersion: v1
kind: Service
metadata:
name: xnat
labels:
app: xnat
spec:
type: ClusterIP
selector:
app: xnat
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: dicom
port: 8104
targetPort: 8104
protocol: TCP
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: xnat
labels:
app: xnat
spec:
rules:
- host: xnat.local
http:
paths:
- path: /
backend:
serviceName: xnat
servicePort: 80