You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| replicas | int |`2`| Configure the amount of replicas for the controller (Optional) |
127
+
| resourceQuota | object |`{"enabled":true}`| Resource Quota configuration. Required when running in a namespace other than kube-system in GKE. Ref: https://kubernetes.io/docs/concepts/policy/resource-quotas/|
127
128
| resources | object |`{}`||
128
129
| schedulerName | string |`""`||
129
130
| secret.create | bool |`true`| Controls whether a Secret should be created. (Optional) |
@@ -140,7 +141,7 @@ Kubernetes: `>=1.20.0-0`
140
141
| spotinst.clusterIdentifier | string |`""`| Unique identifier used by the Ocean Controller to connect (Required) between the Ocean backend and the Kubernetes cluster. Ref: https://docs.spot.io/ocean/tutorials/spot-kubernetes-controller/|
141
142
| spotinst.disableAutoUpdate | bool |`false`| Disable auto update. (Optional) |
| tolerations | string |`nil`| Tolerations for nodes that have taints on them. (Optional) Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/|
Copy file name to clipboardExpand all lines: charts/ocean-kubernetes-controller/templates/configmap.yaml
+44-14Lines changed: 44 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,50 @@ data:
26
26
[INPUT]
27
27
Name tail
28
28
Path /var/log/controller.logs
29
-
Parser klog
29
+
Parser json
30
30
Buffer_Max_Size 2MB
31
31
Skip_Long_Lines On
32
+
Skip_Empty_Lines On
33
+
Refresh_Interval 10
34
+
35
+
# rename msg -> message , level -> l
36
+
[FILTER]
37
+
Name modify
38
+
Match *
39
+
Rename msg message
40
+
Rename level l
41
+
42
+
# info -> INFO
43
+
[FILTER]
44
+
Name modify
45
+
Match *
46
+
47
+
Condition Key_Value_Equals l info
48
+
SET l INFO
49
+
50
+
# debug -> DEBUG
51
+
[FILTER]
52
+
Name modify
53
+
Match *
54
+
55
+
Condition Key_Value_Equals l debug
56
+
SET l DEBUG
57
+
58
+
# trace -> TRACE
59
+
[FILTER]
60
+
Name modify
61
+
Match *
62
+
63
+
Condition Key_Value_Equals l trace
64
+
SET l TRACE
65
+
66
+
# error -> ERROR
67
+
[FILTER]
68
+
Name modify
69
+
Match *
70
+
71
+
Condition Key_Value_Equals l error
72
+
SET l ERROR
32
73
33
74
# nest all fields under log key
34
75
[FILTER]
@@ -38,13 +79,6 @@ data:
38
79
Wildcard *
39
80
Nest_Under log
40
81
41
-
# covert log level (E -> ERROR, I -> INFO)
42
-
[FILTER]
43
-
Name Lua
44
-
Match *
45
-
call covert_log_lvl
46
-
code function covert_log_lvl(tag, timestamp, record) new_record = record local newLvl = "INFO" if record["log"]["l"] == "E" then newLvl = "ERROR" end new_record["log"]["l"] = newLvl return 1, timestamp, new_record end
0 commit comments