-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.toml
81 lines (76 loc) · 2.95 KB
/
config.toml
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
#
# Sentinel - Copyright (c) 2019 by www.gatblau.org
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied.
# See the License for the specific language governing permissions and limitations under the License.
#
# Contributors to this project, hereby assign copyright in this code to the project,
# to be licensed under the same terms as the rest of the code.
#
# Sentinel configuration file
# the default relative path to the kube config file for out of cluster configuration
# the relative path should start from os.Getenv("HOME") - e.g. ~/.kube/config
KubeConfig = ".kube/config"
# sets the login level
LogLevel = "Trace"
# the platform the sentinel is observing.
# update the value below with an identifier for the target platform.
Platform = "platform-id-here"
[Publishers]
# defines which publisher to use (i.e. webhook, broker, logger)
Publisher = "logger"
# logger publisher configuration
[Publishers.Logger]
# whether the logger writes to "stdout" or "file"
OutputTo = "stdout"
# the path to the log folder, only required if Output = "file"
LogFolder = "logs"
# web hook publishers configuration
# repeat the block below if you need to add more than one hook
[[Publishers.Webhook]]
# the uri of the webhook
URI = "https://myhost/webhook"
# authentication mode to use (i.e. none, basic)
Authentication = "basic"
# the optional username for basic authentication
Username = "sentinel"
# the optional password for basic authentication
Password = "password_here"
# skip verification of TLS certificate
InsecureSkipVerify = true
# message broker publisher configuration
[Publishers.Broker]
# The Kafka brokers to connect to, as a comma separated list
Brokers = "localhost:9092"
# optional certificate file for client authentication
Certificate = ""
# optional key file for client authentication
Key = ""
# optional certificate authority file for TLS client authentication
CA = ""
# optional verify ssl certificates chain
Verify = false
# kubernetes objects to observe
[Observe]
ClusterRole = false
ConfigMap = false
DaemonSet = false
Deployment = false
Ingress = false
Job = false
Namespace = true
NetworkPolicy = false
PersistentVolume = false
PersistentVolumeClaim = true
Pod = true
ReplicaSet = false
ReplicationController = true
ResourceQuota = true
Secret = false
ServiceAccount = false
Service = true