-
Notifications
You must be signed in to change notification settings - Fork 2
/
web-controller-https.yaml
34 lines (34 loc) · 1.25 KB
/
web-controller-https.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
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: web
name: web-controller
spec:
replicas: 1
selector:
name: web
template:
metadata:
labels:
name: web
spec:
containers:
- image: claritylab/lucida:v2.2
command: ['/bin/sh', '-c']
# Modify the domain name (but leave the port number unchanged).
args: ['cd $LUCIDAROOT/commandcenter/apache/ && export ASR_ADDR_PORT=wss://clarity13.eecs.umich.edu:30001 && cp -f $LUCIDAROOT/commandcenter/apache/conf/000-default_https.conf /etc/apache2/sites-available/000-default.conf && sudo a2enmod ssl && env > envs.txt && sudo chown -R www-data:www-data /usr/local/lucida && sudo /usr/sbin/apache2ctl -D FOREGROUND']
name: web
ports:
- containerPort: 443
name: http-server
volumeMounts:
- mountPath: /etc/letsencrypt/live/host
name: web-ssl
readOnly: false
volumes:
- hostPath:
# Modify it to be the path to your SSL certificates generated by letsencrypt.
# Make sure the following files exist in that path: cert1.pem, privkey1.pem, and chain1.pem.
path: /etc/letsencrypt/archive/clarity13.eecs.umich.edu
name: web-ssl