-
Notifications
You must be signed in to change notification settings - Fork 3
/
podman.yaml
61 lines (61 loc) · 1.23 KB
/
podman.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
apiVersion: v1
kind: ConfigMap
metadata:
name: crondir
data:
crontab: |
0 0 * * * /usr/local/bin/wgetfromthredds.sh
---
apiVersion: v1
kind: Pod
metadata:
name: ocdp
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
shareProcessNamespace: true
containers:
- name: app
image: ocdp
env:
- name: LC_ALL
value: C.utf8
ports:
- name: http
containerPort: 3838
hostPort: 3838
protcol: TCP
livenessProbe:
httpGet:
path: /
port: http
securityContext: &containerSecurityContext
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
volumeMounts:
- name: data
mountPath: /srv/shiny-server/data
- name: cron
image: ocdp
args:
- /usr/local/bin/supercronic
- /etc/cron.d/crontab
env:
- name: LC_ALL
value: C.utf8
securityContext: *containerSecurityContext
volumeMounts:
- name: crondir
mountPath: /etc/cron.d
volumes:
- name: crondir
configMap:
name: crondir
- name: data
hostPath:
path: ./data