File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 12
12
selector :
13
13
matchLabels :
14
14
app : mysql-schema-operator
15
- replicas : 1
15
+ replicas : 1 # we always run a single replica of the operator to avoid duplicate handling of events
16
16
strategy :
17
- type : Recreate
17
+ type : Recreate # during an upgrade the operator will shut down before the new version comes up to prevent two instances running at the same time
18
18
template :
19
19
metadata :
20
20
labels :
@@ -29,20 +29,20 @@ spec:
29
29
- containerPort : 80
30
30
env :
31
31
- name : MYSQL_HOST
32
- value : mysql.mysql
32
+ value : mysql.mysql # assuming the MySQL server runs in a namespace called "mysql" on Kubernetes
33
33
- name : MYSQL_USER
34
34
value : root
35
35
- name : MYSQL_PASSWORD
36
- value : password
36
+ value : password # sample-level security
37
37
readinessProbe :
38
38
httpGet :
39
- path : /health
39
+ path : /health # when this returns 200 the operator is considered up and running
40
40
port : 8080
41
41
initialDelaySeconds : 1
42
42
timeoutSeconds : 1
43
43
livenessProbe :
44
44
httpGet :
45
- path : /health
45
+ path : /health # when this endpoint doesn't return 200 the operator is considered broken and get's restarted
46
46
port : 8080
47
47
initialDelaySeconds : 30
48
- timeoutSeconds : 1
48
+ timeoutSeconds : 1
You can’t perform that action at this time.
0 commit comments