-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
19 changed files
with
286 additions
and
14 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
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
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,10 @@ | ||
parameters: | ||
fluentbit: | ||
secret: | ||
AWS_ACCESS_KEY_ID: <SUPER_SECRET> | ||
AWS_SECRET_ACCESS_KEY: <EVEN_MORE_SUPERER> | ||
|
||
helm_values: | ||
envFrom: | ||
- secretRef: | ||
name: ${fluentbit:secretName} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
parameters: | ||
fluentbit: {} | ||
# Overwrite parameters here | ||
|
||
# parameters: {...} |
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,3 @@ | ||
spec: | ||
source: | ||
path: manifests/fluentbit/fluentbit |
7 changes: 7 additions & 0 deletions
7
tests/golden/config/fluentbit/fluentbit/fluentbit/00_namespace.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,7 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: {} | ||
labels: | ||
name: syn-fluentbit | ||
name: syn-fluentbit |
20 changes: 20 additions & 0 deletions
20
...luentbit/fluentbit/fluentbit/01_fluentbit_helmchart/fluent-bit/templates/clusterrole.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,20 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: fluent-bit | ||
app.kubernetes.io/version: 3.1.4 | ||
helm.sh/chart: fluent-bit-0.47.5 | ||
name: fluentbit | ||
rules: | ||
- apiGroups: | ||
- '' | ||
resources: | ||
- namespaces | ||
- pods | ||
verbs: | ||
- get | ||
- list | ||
- watch |
18 changes: 18 additions & 0 deletions
18
...t/fluentbit/fluentbit/01_fluentbit_helmchart/fluent-bit/templates/clusterrolebinding.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,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: fluent-bit | ||
app.kubernetes.io/version: 3.1.4 | ||
helm.sh/chart: fluent-bit-0.47.5 | ||
name: fluentbit | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: fluentbit | ||
subjects: | ||
- kind: ServiceAccount | ||
name: fluentbit | ||
namespace: syn-fluentbit |
78 changes: 78 additions & 0 deletions
78
.../fluentbit/fluentbit/fluentbit/01_fluentbit_helmchart/fluent-bit/templates/daemonset.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,78 @@ | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: fluent-bit | ||
app.kubernetes.io/version: 3.1.4 | ||
helm.sh/chart: fluent-bit-0.47.5 | ||
name: fluentbit | ||
namespace: syn-fluentbit | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/name: fluent-bit | ||
template: | ||
metadata: | ||
annotations: | ||
checksum/config: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 | ||
checksum/syn-config: 06e588437d65a5b9ef0171f6ac0a59e7 | ||
fluentbit.io/exclude: 'true' | ||
labels: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/name: fluent-bit | ||
spec: | ||
containers: | ||
- args: | ||
- --workdir=/fluent-bit/etc | ||
- --config=/fluent-bit/etc/conf/fluent-bit.conf | ||
command: | ||
- /fluent-bit/bin/fluent-bit | ||
envFrom: | ||
- secretRef: | ||
name: fluentbit | ||
image: docker.io/fluent/fluent-bit:3.1.4 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: http | ||
name: fluent-bit | ||
ports: | ||
- containerPort: 2020 | ||
name: http | ||
protocol: TCP | ||
readinessProbe: | ||
httpGet: | ||
path: /api/v1/health | ||
port: http | ||
volumeMounts: | ||
- mountPath: /fluent-bit/etc/conf | ||
name: config | ||
- mountPath: /var/log | ||
name: varlog | ||
- mountPath: /var/lib/docker/containers | ||
name: varlibdockercontainers | ||
readOnly: true | ||
- mountPath: /etc/machine-id | ||
name: etcmachineid | ||
readOnly: true | ||
dnsPolicy: ClusterFirst | ||
hostNetwork: false | ||
serviceAccountName: fluentbit | ||
volumes: | ||
- configMap: | ||
name: fluentbit | ||
name: config | ||
- hostPath: | ||
path: /var/log | ||
name: varlog | ||
- hostPath: | ||
path: /var/lib/docker/containers | ||
name: varlibdockercontainers | ||
- hostPath: | ||
path: /etc/machine-id | ||
type: File | ||
name: etcmachineid |
21 changes: 21 additions & 0 deletions
21
...ig/fluentbit/fluentbit/fluentbit/01_fluentbit_helmchart/fluent-bit/templates/service.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,21 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: fluent-bit | ||
app.kubernetes.io/version: 3.1.4 | ||
helm.sh/chart: fluent-bit-0.47.5 | ||
name: fluentbit | ||
namespace: syn-fluentbit | ||
spec: | ||
ports: | ||
- name: http | ||
port: 2020 | ||
protocol: TCP | ||
targetPort: http | ||
selector: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/name: fluent-bit | ||
type: ClusterIP |
11 changes: 11 additions & 0 deletions
11
...ntbit/fluentbit/fluentbit/01_fluentbit_helmchart/fluent-bit/templates/serviceaccount.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,11 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/name: fluent-bit | ||
app.kubernetes.io/version: 3.1.4 | ||
helm.sh/chart: fluent-bit-0.47.5 | ||
name: fluentbit | ||
namespace: syn-fluentbit |
44 changes: 44 additions & 0 deletions
44
tests/golden/config/fluentbit/fluentbit/fluentbit/10_custom_config.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,44 @@ | ||
apiVersion: v1 | ||
data: | ||
custom_parsers.conf: '' | ||
fluent-bit.conf: | | ||
[SERVICE] | ||
Daemon Off | ||
Flush 1 | ||
HTTP_Listen 0.0.0.0 | ||
HTTP_Port 2020 | ||
HTTP_Server On | ||
Log_Level info | ||
Parsers_File parsers.conf | ||
Plugins_File plugins.conf | ||
[FILTER] | ||
Name kubernetes | ||
K8S-Logging.Exclude On | ||
K8S-Logging.Parser On | ||
Keep_Log On | ||
Match kube.* | ||
Merge_Log On | ||
[INPUT] | ||
Name tail | ||
Mem_Buf_Limit 5MB | ||
Parser docker | ||
Path /var/log/containers/*.log | ||
Skip_Long_lines On | ||
Tag kube.* | ||
[INPUT] | ||
Name systemd | ||
Read_From_Tail On | ||
Systemd_Filter _SYSTEMD_UNIT=kubelet.service | ||
Tag host.* | ||
kind: ConfigMap | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: fluent-bit | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: fluent-bit | ||
app.kubernetes.io/version: 3.1.4 | ||
name: fluentbit | ||
name: fluentbit | ||
namespace: syn-fluentbit |
16 changes: 16 additions & 0 deletions
16
tests/golden/config/fluentbit/fluentbit/fluentbit/10_custom_secret.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,16 @@ | ||
apiVersion: v1 | ||
data: {} | ||
kind: Secret | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app.kubernetes.io/component: fluent-bit | ||
app.kubernetes.io/instance: fluentbit | ||
app.kubernetes.io/managed-by: commodore | ||
app.kubernetes.io/name: fluentbit | ||
name: fluentbit | ||
name: fluentbit | ||
stringData: | ||
AWS_ACCESS_KEY_ID: <SUPER_SECRET> | ||
AWS_SECRET_ACCESS_KEY: <EVEN_MORE_SUPERER> | ||
type: Opaque |