-
Notifications
You must be signed in to change notification settings - Fork 0
/
caddy-deployment.yaml
54 lines (54 loc) · 1.29 KB
/
caddy-deployment.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
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
name: caddy-deploy
namespace: MY-WOKSPACE
labels:
app: caddy-deploy
spec:
strategy:
type: Rolling
replicas: 1
selector:
app: caddy-deploy
template:
metadata:
labels:
app: caddy-deploy
spec:
volumes:
- name: app-volume
persistentVolumeClaim:
claimName: caddy-pvc
- name: caddy-conf
configMap:
name: caddy-configmap
items:
- key: caddifile
path: Caddyfile
defaultMode: 420
containers:
- resources:
limits:
cpu: 500m
memory: 2Gi
requests:
cpu: 50m
memory: 1Gi
terminationMessagePath: /dev/termination-log
name: www
command:
- caddy
imagePullPolicy: IfNotPresent
volumeMounts:
- name: caddy-conf
mountPath: /conf
- name: app-volume
mountPath: /data
terminationMessagePolicy: File
image: >-
caddy:2.4.1-alpine
args:
- run
- '--config'
- /conf/Caddyfile