-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtiphys.yaml
More file actions
92 lines (90 loc) · 2.3 KB
/
tiphys.yaml
File metadata and controls
92 lines (90 loc) · 2.3 KB
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
84
85
86
87
88
89
90
91
92
secrets:
DJANGO_SETTINGS_MODULE: "mrwork.settings"
DJANGO_ADMIN_URL: "admin"
redis:
enabled: true
master:
persistence:
enabled: false
replica:
replicaCount: 1
persistence:
enabled: false
apps:
- name: opszero
service:
enabled: true
type: ClusterIP
ports:
- name: http
port: 8000
protocol: TCP
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 2
targetCPUUtilizationPercentage: 99
targetMemoryUtilizationPercentage: 99
ingress:
annotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: 600s
nginx.ingress.kubernetes.io/proxy-send-timeout: 600s
nginx.ingress.kubernetes.io/proxy-body-size: 200m
nginx.ingress.kubernetes.io/proxy-connect-timeout: "70"
hosts:
- host: api.example.com
paths: ["/"]
port: 8000
healthChecks:
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- sleep 10
livenessProbe:
failureThreshold: 15
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30
httpGet:
path: /
port: 8000
readinessProbe:
failureThreshold: 15
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 30
httpGet:
path: /
port: 8000
jobs:
- name: db-migrate
command: ["python", "manage.py", "migrate"]
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
- name: celery
service:
enabled: true
command: "celery --app=opszero.celery worker --loglevel=info --concurrency=4"
autoscaling:
enabled: false
- name: celery-flower
service:
enabled: true
command: "celery -A opszero.celery flower --address=0.0.0.0 --port=5555"
type: ClusterIP
ports:
- name: http
port: 5555
protocol: TCP
autoscaling:
enabled: false
hosts:
- host: flower.example.com
paths: ["/"]
port: 5555