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
**Alternative: Install from local chart directory (if you have the source code):**
84
98
```bash
85
-
# Quick deployment with automated script
99
+
# Quick deployment with automated script (watches all namespaces by default)
86
100
./helm-deploy.sh
87
101
88
102
# Manual Helm deployment from local chart
89
103
helm install slaking ./charts/slaking \
90
104
--namespace slaking \
91
105
--create-namespace \
92
106
--set env.SLACK_TOKEN="xoxb-your-token" \
93
-
--set env.SLACK_DEFAULT_CHANNEL="#alerts"
107
+
--set env.SLACK_DEFAULT_CHANNEL="#alerts" \
108
+
--set env.K8S_WATCH_ALL_NAMESPACES="true"
94
109
```
95
110
96
111
**Benefits of Helm deployment:**
@@ -144,6 +159,55 @@ metadata:
144
159
| `slaking.max-lines` | Maximum lines per message | `10` |
145
160
| `slaking.cooldown` | Cooldown period between messages (seconds) | `60` |
146
161
162
+
### Namespace Configuration
163
+
164
+
Slaking supports two modes for watching Kubernetes namespaces:
165
+
166
+
#### 🦥 Watch All Namespaces (Recommended)
167
+
This is the default and recommended configuration. Slaking will monitor all namespaces in your cluster and only process logs from workloads that have the `slaking.enabled: "true"` annotation.
168
+
169
+
**Environment Configuration:**
170
+
```bash
171
+
# Set to watch all namespaces
172
+
K8S_WATCH_ALL_NAMESPACES=true
173
+
# Leave K8S_NAMESPACES empty or unset
174
+
```
175
+
176
+
**Helm Configuration:**
177
+
```bash
178
+
helm install slaking slaking/slaking \
179
+
--set env.K8S_WATCH_ALL_NAMESPACES="true"
180
+
```
181
+
182
+
**Benefits:**
183
+
- ✅ No need to specify namespaces manually
184
+
- ✅ Automatically picks up new namespaces
185
+
- ✅ Works with any workload regardless of namespace
186
+
- ✅ Simpler configuration and maintenance
187
+
188
+
#### 🎯 Watch Specific Namespaces Only
189
+
For environments where you want to limit Slaking's scope to specific namespaces (e.g., for security or performance reasons).
0 commit comments