fix
This commit is contained in:
124
monitor/loki/apps_v1_StatefulSet_loki.yaml
Normal file
124
monitor/loki/apps_v1_StatefulSet_loki.yaml
Normal file
@@ -0,0 +1,124 @@
|
||||
# Source: loki/templates/single-binary/statefulset.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: loki
|
||||
namespace: vynil-monitor
|
||||
labels:
|
||||
helm.sh/chart: loki-5.41.8
|
||||
app.kubernetes.io/name: loki
|
||||
app.kubernetes.io/instance: loki
|
||||
app.kubernetes.io/version: "2.9.3"
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/component: single-binary
|
||||
app.kubernetes.io/part-of: memberlist
|
||||
spec:
|
||||
replicas: 1
|
||||
podManagementPolicy: Parallel
|
||||
updateStrategy:
|
||||
rollingUpdate:
|
||||
partition: 0
|
||||
serviceName: loki-headless
|
||||
revisionHistoryLimit: 10
|
||||
|
||||
persistentVolumeClaimRetentionPolicy:
|
||||
whenDeleted: Delete
|
||||
whenScaled: Delete
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: loki
|
||||
app.kubernetes.io/instance: loki
|
||||
app.kubernetes.io/component: single-binary
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: 00968f96c123aef1e3b51506bfca47d4009fec466be45ff4db4755acd6142f13
|
||||
labels:
|
||||
app.kubernetes.io/name: loki
|
||||
app.kubernetes.io/instance: loki
|
||||
app.kubernetes.io/component: single-binary
|
||||
app.kubernetes.io/part-of: memberlist
|
||||
spec:
|
||||
serviceAccountName: loki
|
||||
automountServiceAccountToken: true
|
||||
enableServiceLinks: true
|
||||
|
||||
securityContext:
|
||||
fsGroup: 10001
|
||||
runAsGroup: 10001
|
||||
runAsNonRoot: true
|
||||
runAsUser: 10001
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: loki
|
||||
image: docker.io/grafana/loki:2.9.3
|
||||
imagePullPolicy: IfNotPresent
|
||||
args:
|
||||
- -config.file=/etc/loki/config/config.yaml
|
||||
- -target=all
|
||||
ports:
|
||||
- name: http-metrics
|
||||
containerPort: 3100
|
||||
protocol: TCP
|
||||
- name: grpc
|
||||
containerPort: 9095
|
||||
protocol: TCP
|
||||
- name: http-memberlist
|
||||
containerPort: 7946
|
||||
protocol: TCP
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ready
|
||||
port: http-metrics
|
||||
initialDelaySeconds: 30
|
||||
timeoutSeconds: 1
|
||||
volumeMounts:
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
- name: config
|
||||
mountPath: /etc/loki/config
|
||||
- name: runtime-config
|
||||
mountPath: /etc/loki/runtime-config
|
||||
- name: storage
|
||||
mountPath: /var/loki
|
||||
resources:
|
||||
{}
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: loki
|
||||
app.kubernetes.io/instance: loki
|
||||
app.kubernetes.io/component: single-binary
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
||||
volumes:
|
||||
- name: tmp
|
||||
emptyDir: {}
|
||||
- name: config
|
||||
configMap:
|
||||
name: loki
|
||||
items:
|
||||
- key: "config.yaml"
|
||||
path: "config.yaml"
|
||||
- name: runtime-config
|
||||
configMap:
|
||||
name: loki-runtime
|
||||
volumeClaimTemplates:
|
||||
- apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: storage
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: "17Gi"
|
||||
Reference in New Issue
Block a user