-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
charts,build,salt: Add fluent-bit pod memory limits to 1Gi
Add a fluent-bit pod memory limits to 1Gi and make it configurable Re-render fluent-bit salt state using: ``` ./charts/render.py fluent-bit \ charts/fluent-bit.yaml charts/fluent-bit/ \ --namespace metalk8s-logging \ --service-config fluent-bit metalk8s-fluent-bit-config \ metalk8s/addons/logging/fluent-bit/config/fluent-bit.yaml metalk8s-logging \ > salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls ```
- Loading branch information
1 parent
17a6ad7
commit c79f9e6
Showing
9 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
salt/metalk8s/addons/logging/fluent-bit/config/fluent-bit.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!yaml | ||
|
||
# Configuration of the fluent-bit service | ||
apiVersion: addons.metalk8s.scality.com | ||
kind: FluentBitConfig | ||
spec: | ||
deployment: | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
limits: | ||
memory: 1Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
salt/metalk8s/addons/logging/fluent-bit/deployed/service-configuration.sls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
include: | ||
- ...deployed.namespace | ||
|
||
{%- set fluent-bit_config = salt.metalk8s_kubernetes.get_object( | ||
kind='ConfigMap', | ||
apiVersion='v1', | ||
namespace='metalk8s-logging', | ||
name='metalk8s-fluent-bit-config', | ||
) | ||
%} | ||
|
||
{%- if fluent-bit_config is none %} | ||
|
||
Create metalk8s-fluent-bit-config ConfigMap: | ||
metalk8s_kubernetes.object_present: | ||
- manifest: | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: metalk8s-fluent-bit-config | ||
namespace: metalk8s-logging | ||
data: | ||
config.yaml: |- | ||
apiVersion: addons.metalk8s.scality.com | ||
kind: FluentBitConfig | ||
spec: {} | ||
|
||
{%- else %} | ||
|
||
metalk8s-fluent-bit-config ConfigMap already exists: | ||
test.succeed_without_changes: [] | ||
|
||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters