github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/docs/sources/clients/aws/eks/values.yaml (about) 1 ## Affinity for pod assignment 2 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity 3 affinity: {} 4 5 annotations: {} 6 7 # The update strategy to apply to the DaemonSet 8 ## 9 deploymentStrategy: {} 10 # rollingUpdate: 11 # maxUnavailable: 1 12 # type: RollingUpdate 13 14 initContainer: 15 enabled: false 16 fsInotifyMaxUserInstances: 128 17 18 image: 19 repository: grafana/promtail 20 tag: 1.6.0 21 pullPolicy: IfNotPresent 22 ## Optionally specify an array of imagePullSecrets. 23 ## Secrets must be manually created in the namespace. 24 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ 25 ## 26 # pullSecrets: 27 # - myRegistryKeySecretName 28 29 livenessProbe: {} 30 31 loki: 32 serviceName: "logs-prod-us-central1.grafana.net" 33 servicePort: 443 34 serviceScheme: https 35 user: <grafana cloud user id> 36 password: <grafana cloud api key> 37 38 39 nameOverride: promtail 40 41 ## Node labels for pod assignment 42 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ 43 nodeSelector: {} 44 45 pipelineStages: 46 - docker: 47 - match: 48 selector: '{app="eventrouter"}' 49 stages: 50 - json: 51 expressions: 52 namespace: event.metadata.namespace 53 - labels: 54 namespace: "" 55 56 ## Pod Labels 57 podLabels: {} 58 59 podAnnotations: 60 prometheus.io/scrape: "true" 61 prometheus.io/port: "http-metrics" 62 63 ## Assign a PriorityClassName to pods if set 64 # priorityClassName: 65 66 rbac: 67 create: true 68 pspEnabled: true 69 70 readinessProbe: 71 failureThreshold: 5 72 httpGet: 73 path: /ready 74 port: http-metrics 75 initialDelaySeconds: 10 76 periodSeconds: 10 77 successThreshold: 1 78 timeoutSeconds: 1 79 80 resources: {} 81 # limits: 82 # cpu: 200m 83 # memory: 128Mi 84 # requests: 85 # cpu: 100m 86 # memory: 128Mi 87 88 # Custom scrape_configs to override the default ones in the configmap 89 scrapeConfigs: [] 90 91 # Custom scrape_configs together with the default ones in the configmap 92 extraScrapeConfigs: 93 - job_name: journal 94 journal: 95 path: /var/log/journal 96 max_age: 12h 97 labels: 98 job: systemd-journal 99 relabel_configs: 100 - source_labels: ['__journal__systemd_unit'] 101 target_label: 'unit' 102 - source_labels: ['__journal__hostname'] 103 target_label: 'hostname' 104 105 securityContext: 106 readOnlyRootFilesystem: true 107 runAsGroup: 0 108 runAsUser: 0 109 110 serviceAccount: 111 create: true 112 name: 113 114 ## Tolerations for pod assignment 115 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ 116 tolerations: 117 - key: node-role.kubernetes.io/master 118 operator: Exists 119 effect: NoSchedule 120 121 # Extra volumes to scrape logs from 122 volumes: 123 - name: docker 124 hostPath: 125 path: /var/lib/docker/containers 126 - name: pods 127 hostPath: 128 path: /var/log/pods 129 130 # Custom volumes together with the default ones 131 extraVolumes: 132 - name: journal 133 hostPath: 134 path: /var/log/journal 135 136 volumeMounts: 137 - name: docker 138 mountPath: /var/lib/docker/containers 139 readOnly: true 140 - name: pods 141 mountPath: /var/log/pods 142 readOnly: true 143 144 # Custom volumeMounts together with the default ones 145 extraVolumeMounts: 146 - name: journal 147 mountPath: /var/log/journal 148 readOnly: true 149 150 # Add extra Commandline args while starting up promtail. 151 # more info : https://github.com/grafana/loki/pull/1530 152 153 extraCommandlineArgs: [] 154 # example: 155 # extraCommandlineArgs: 156 # - -client.external-labels=hostname=$(HOSTNAME) 157 158 config: 159 client: 160 # Maximum wait period before sending batch 161 batchwait: 1s 162 # Maximum batch size to accrue before sending, unit is byte 163 batchsize: 1048576 164 165 # Maximum time to wait for server to respond to a request 166 timeout: 10s 167 168 backoff_config: 169 # Initial backoff time between retries 170 min_period: 500ms 171 # Maximum backoff time between retries 172 max_period: 5m 173 # Maximum number of retries when sending batches, 0 means infinite retries 174 max_retries: 10 175 176 # The labels to add to any time series or alerts when communicating with loki 177 external_labels: {} 178 179 server: 180 http_listen_port: 3101 181 182 positions: 183 filename: /run/promtail/positions.yaml 184 target_config: 185 # Period to resync directories being watched and files being tailed 186 sync_period: 10s 187 188 serviceMonitor: 189 enabled: false 190 interval: "" 191 additionalLabels: {} 192 annotations: {} 193 # scrapeTimeout: 10s 194 195 # Extra env variables to pass to the promtail container 196 env: [] 197 198 # enable and configure if using the syslog scrape config 199 syslogService: 200 enabled: false 201 type: ClusterIP 202 port: 1514 203 ## Specify the nodePort value for the LoadBalancer and NodePort service types. 204 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport 205 ## 206 # nodePort: 207 ## Provide any additional annotations which may be required. This can be used to 208 ## set the LoadBalancer service type to internal only. 209 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer 210 ## 211 annotations: {} 212 labels: {} 213 ## Use loadBalancerIP to request a specific static IP, 214 ## otherwise leave blank 215 ## 216 loadBalancerIP: 217 # loadBalancerSourceRanges: [] 218 ## Set the externalTrafficPolicy in the Service to either Cluster or Local 219 # externalTrafficPolicy: Cluster