Disable promtail

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2021-11-27 14:27:04 +00:00
parent 8ce2c08c34
commit 513af4f9c5
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -554,81 +554,81 @@ subjects:
name: promtail
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: promtail
namespace: monitoring
labels:
app.kubernetes.io/name: promtail
annotations:
configmap.reloader.stakater.com/reload: "promtail"
spec:
selector:
matchLabels:
app.kubernetes.io/name: promtail
template:
metadata:
labels:
app.kubernetes.io/name: promtail
annotations:
prometheus.io/port: http-metrics
prometheus.io/scrape: "true"
spec:
serviceAccountName: promtail
containers:
- name: promtail
image: "grafana/promtail:2.2.1"
imagePullPolicy: IfNotPresent
args:
- "-config.file=/etc/promtail/promtail.yaml"
volumeMounts:
- name: config
mountPath: /etc/promtail
- name: run
mountPath: /run/promtail
- mountPath: /var/lib/docker/containers
name: docker
readOnly: true
- mountPath: /var/log/pods
name: pods
readOnly: true
env:
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: 3101
name: http-metrics
securityContext:
readOnlyRootFilesystem: true
runAsGroup: 0
runAsUser: 0
readinessProbe:
failureThreshold: 5
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
volumes:
- name: config
configMap:
name: promtail
- name: run
hostPath:
path: /run/promtail
- hostPath:
path: /var/lib/docker/containers
name: docker
- hostPath:
path: /var/log/pods
name: pods
# apiVersion: apps/v1
# kind: DaemonSet
# metadata:
# name: promtail
# namespace: monitoring
# labels:
# app.kubernetes.io/name: promtail
# annotations:
# configmap.reloader.stakater.com/reload: "promtail"
# spec:
# selector:
# matchLabels:
# app.kubernetes.io/name: promtail
# template:
# metadata:
# labels:
# app.kubernetes.io/name: promtail
# annotations:
# prometheus.io/port: http-metrics
# prometheus.io/scrape: "true"
# spec:
# serviceAccountName: promtail
# containers:
# - name: promtail
# image: "grafana/promtail:2.2.1"
# imagePullPolicy: IfNotPresent
# args:
# - "-config.file=/etc/promtail/promtail.yaml"
# volumeMounts:
# - name: config
# mountPath: /etc/promtail
# - name: run
# mountPath: /run/promtail
# - mountPath: /var/lib/docker/containers
# name: docker
# readOnly: true
# - mountPath: /var/log/pods
# name: pods
# readOnly: true
# env:
# - name: HOSTNAME
# valueFrom:
# fieldRef:
# fieldPath: spec.nodeName
# ports:
# - containerPort: 3101
# name: http-metrics
# securityContext:
# readOnlyRootFilesystem: true
# runAsGroup: 0
# runAsUser: 0
# readinessProbe:
# failureThreshold: 5
# httpGet:
# path: /ready
# port: http-metrics
# initialDelaySeconds: 10
# periodSeconds: 10
# successThreshold: 1
# timeoutSeconds: 1
# tolerations:
# - effect: NoSchedule
# key: node-role.kubernetes.io/master
# operator: Exists
# volumes:
# - name: config
# configMap:
# name: promtail
# - name: run
# hostPath:
# path: /run/promtail
# - hostPath:
# path: /var/lib/docker/containers
# name: docker
# - hostPath:
# path: /var/log/pods
# name: pods
---