add loki
This commit is contained in:
		
							
								
								
									
										40
									
								
								apps/loki.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								apps/loki.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
			
		||||
apiVersion: argoproj.io/v1alpha1
 | 
			
		||||
kind: ApplicationSet
 | 
			
		||||
metadata:
 | 
			
		||||
  name: loki
 | 
			
		||||
spec:
 | 
			
		||||
  goTemplate: true
 | 
			
		||||
  goTemplateOptions: ["missingkey=error"]
 | 
			
		||||
  generators:
 | 
			
		||||
    - list:
 | 
			
		||||
        elements:
 | 
			
		||||
        - cluster: production
 | 
			
		||||
          url: https://kubernetes.default.svc
 | 
			
		||||
        - cluster: staging
 | 
			
		||||
          url: https://k3s-ctrl-lb.lab.kill0.net:6443
 | 
			
		||||
        - cluster: development
 | 
			
		||||
          url: https://k0s-ctrl-vip.lab.kill0.net:6443
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      name: 'loki-{{.cluster}}'
 | 
			
		||||
    spec:
 | 
			
		||||
      project: default
 | 
			
		||||
      source:
 | 
			
		||||
        path: loki
 | 
			
		||||
        repoURL: https://git.kill0.net/ryanc/argocd.git
 | 
			
		||||
        targetRevision: HEAD
 | 
			
		||||
        helm:
 | 
			
		||||
          releaseName: loki
 | 
			
		||||
          valueFiles:
 | 
			
		||||
            - values.yaml
 | 
			
		||||
            - values-{{.cluster}}.yaml
 | 
			
		||||
          ignoreMissingValueFiles: true
 | 
			
		||||
      destination:
 | 
			
		||||
        server: '{{.url}}'
 | 
			
		||||
        namespace: loki
 | 
			
		||||
      syncPolicy:
 | 
			
		||||
        automated:
 | 
			
		||||
          prune: true
 | 
			
		||||
          selfHeal: true
 | 
			
		||||
        syncOptions:
 | 
			
		||||
          - CreateNamespace=true
 | 
			
		||||
							
								
								
									
										9
									
								
								loki/Chart.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								loki/Chart.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v2
 | 
			
		||||
name: loki
 | 
			
		||||
version: "1.0.0"
 | 
			
		||||
 | 
			
		||||
dependencies:
 | 
			
		||||
  - name: loki
 | 
			
		||||
    version: 6.31.0
 | 
			
		||||
    repository: https://grafana.github.io/helm-charts
 | 
			
		||||
							
								
								
									
										54
									
								
								loki/values-development.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								loki/values-development.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,54 @@
 | 
			
		||||
loki:
 | 
			
		||||
  commonConfig:
 | 
			
		||||
    replication_factor: 1
 | 
			
		||||
  schemaConfig:
 | 
			
		||||
    configs:
 | 
			
		||||
      - from: "2024-04-01"
 | 
			
		||||
        store: tsdb
 | 
			
		||||
        object_store: s3
 | 
			
		||||
        schema: v13
 | 
			
		||||
        index:
 | 
			
		||||
          prefix: loki_index_
 | 
			
		||||
          period: 24h
 | 
			
		||||
  pattern_ingester:
 | 
			
		||||
      enabled: true
 | 
			
		||||
  limits_config:
 | 
			
		||||
    allow_structured_metadata: true
 | 
			
		||||
    volume_enabled: true
 | 
			
		||||
  ruler:
 | 
			
		||||
    enable_api: true
 | 
			
		||||
 | 
			
		||||
minio:
 | 
			
		||||
  enabled: true
 | 
			
		||||
      
 | 
			
		||||
deploymentMode: SingleBinary
 | 
			
		||||
 | 
			
		||||
singleBinary:
 | 
			
		||||
  replicas: 1
 | 
			
		||||
 | 
			
		||||
# Zero out replica counts of other deployment modes
 | 
			
		||||
backend:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
read:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
write:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
 | 
			
		||||
ingester:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
querier:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
queryFrontend:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
queryScheduler:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
distributor:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
compactor:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
indexGateway:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
bloomCompactor:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
bloomGateway:
 | 
			
		||||
  replicas: 0
 | 
			
		||||
		Reference in New Issue
	
	Block a user