Skip to content

Instantly share code, notes, and snippets.

@alecrajeev
Created March 12, 2021 18:44
Show Gist options
  • Save alecrajeev/0fcb15afed504a359150d1cffd4e4857 to your computer and use it in GitHub Desktop.
Save alecrajeev/0fcb15afed504a359150d1cffd4e4857 to your computer and use it in GitHub Desktop.
Output windows helm template
---
# Source: fluent-bit/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "1.7.1"
app.kubernetes.io/managed-by: Helm
---
# Source: fluent-bit/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "1.7.1"
app.kubernetes.io/managed-by: Helm
data:
custom_parsers.conf: |
[PARSER]
Name docker_no_time
Format json
Time_Keep Off
Time_Key time
Time_Format %Y-%m-%dT%H:%M:%S.%L
fluent-bit.conf: |
[SERVICE]
Flush 1
Daemon Off
Log_Level info
Parsers_File parsers.conf
Parsers_File custom_parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port 2020
[INPUT]
Name tail
Path /var/log/containers/*.log
Parser docker
Tag kube.*
Mem_Buf_Limit 5MB
Skip_Long_Lines On
[INPUT]
Name systemd
Tag host.*
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
Read_From_Tail On
[FILTER]
Name kubernetes
Match kube.*
Merge_Log On
Keep_Log Off
K8S-Logging.Parser On
K8S-Logging.Exclude On
[OUTPUT]
Name es
Match kube.*
Host elasticsearch-master
Logstash_Format On
Retry_Limit False
[OUTPUT]
Name es
Match host.*
Host elasticsearch-master
Logstash_Format On
Logstash_Prefix node
Retry_Limit False
---
# Source: fluent-bit/templates/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "1.7.1"
app.kubernetes.io/managed-by: Helm
rules:
- apiGroups:
- ""
resources:
- pods
- namespaces
verbs:
- get
- list
- watch
---
# Source: fluent-bit/templates/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "1.7.1"
app.kubernetes.io/managed-by: Helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: RELEASE-NAME-fluent-bit
subjects:
- kind: ServiceAccount
name: RELEASE-NAME-fluent-bit
namespace: default
---
# Source: fluent-bit/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "1.7.1"
app.kubernetes.io/managed-by: Helm
spec:
type: ClusterIP
ports:
- port: 2020
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
---
# Source: fluent-bit/templates/daemonset.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: RELEASE-NAME-fluent-bit
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "1.7.1"
app.kubernetes.io/managed-by: Helm
spec:
selector:
matchLabels:
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
template:
metadata:
annotations:
checksum/config: 02f011b35a088cf4a14819cf0ea0f14af9d0a43bc18e45b1596437bcce74b556
checksum/luascripts: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
labels:
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
spec:
serviceAccountName: RELEASE-NAME-fluent-bit
securityContext:
{}
containers:
- name: fluent-bit
securityContext:
{}
image: "fluent/fluent-bit:1.7.1"
imagePullPolicy: Always
ports:
- name: http
containerPort: 2020
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{}
volumeMounts:
- name: config
mountPath: C:\\fluent-bit\\fluent-bit.conf
subPath: fluent-bit.conf
- name: config
mountPath: C:\\fluent-bit\\custom_parsers.conf
subPath: custom_parsers.conf
- name: varlog
mountPath: C:\\var\\log
- name: varlibdockercontainers
mountPath: C:\\ProgramData\\docker\\containers
readOnly: true
volumes:
- name: config
configMap:
name: RELEASE-NAME-fluent-bit
- name: varlog
hostPath:
path: C:\\var\\log
- name: varlibdockercontainers
hostPath:
path: C:\\ProgramData\\docker\\containers
---
# Source: fluent-bit/templates/tests/test-connection.yaml
apiVersion: v1
kind: Pod
metadata:
name: "RELEASE-NAME-fluent-bit-test-connection"
labels:
helm.sh/chart: fluent-bit-0.12.4
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "1.7.1"
app.kubernetes.io/managed-by: Helm
annotations:
"helm.sh/hook": test-success
spec:
containers:
- name: wget
image: "busybox:latest"
imagePullPolicy: Always
command: ['wget']
args: ['RELEASE-NAME-fluent-bit:2020']
restartPolicy: Never
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment