Added promtail
This commit is contained in:
parent
c9d60d45a8
commit
ccdc40b5bc
|
@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ./loki.yaml
|
- ./loki.yaml
|
||||||
|
- ./promtail.yaml
|
||||||
|
|
18
infra/loki/promtail.yaml
Normal file
18
infra/loki/promtail.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: promtail
|
||||||
|
namespace: flux-system
|
||||||
|
labels:
|
||||||
|
alert: flux-infra
|
||||||
|
spec:
|
||||||
|
interval: 15m
|
||||||
|
path: ./infra/loki/promtail
|
||||||
|
dependsOn:
|
||||||
|
- name: loki
|
||||||
|
prune: true
|
||||||
|
timeout: 2m
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
wait: true
|
18
infra/loki/promtail/helm-release.yaml
Normal file
18
infra/loki/promtail/helm-release.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: promtail
|
||||||
|
spec:
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: promtail
|
||||||
|
reconcileStrategy: ChartVersion
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: grafana
|
||||||
|
version: 6.16.6
|
||||||
|
interval: 15m
|
||||||
|
timeout: 5m
|
||||||
|
valuesFrom:
|
||||||
|
- kind: ConfigMap
|
||||||
|
name: promtail-values
|
13
infra/loki/promtail/kustomization.yaml
Normal file
13
infra/loki/promtail/kustomization.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: loki
|
||||||
|
resources:
|
||||||
|
- ./helm-release.yaml
|
||||||
|
|
||||||
|
configurations:
|
||||||
|
- ../../../common/name-reference/helm-release.yaml
|
||||||
|
|
||||||
|
configMapGenerator:
|
||||||
|
- name: promtail-values
|
||||||
|
files:
|
||||||
|
- ./values.yaml
|
14
infra/loki/promtail/values.yaml
Normal file
14
infra/loki/promtail/values.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
initContainer:
|
||||||
|
# -- Specifies whether the init container for setting inotify max user instances is to be enabled
|
||||||
|
- name: init
|
||||||
|
# -- Docker registry, image and tag for the init container image
|
||||||
|
image: docker.io/busybox:1.33
|
||||||
|
# -- Docker image pull policy for the init container image
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
# -- The inotify max user instances to configure
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- sysctl -w fs.inotify.max_user_instances=512
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
Loading…
Reference in New Issue
Block a user