github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/helm/promtail/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: 2.0.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: "" # Defaults to "${RELEASE}-loki" if not set 33 servicePort: 3100 34 serviceScheme: http 35 # user: user 36 # password: pass 37 38 nameOverride: promtail 39 40 ## Node labels for pod assignment 41 ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ 42 nodeSelector: {} 43 44 pipelineStages: 45 - docker: {} 46 47 ## Pod Labels 48 podLabels: {} 49 50 podAnnotations: 51 prometheus.io/scrape: "true" 52 prometheus.io/port: "http-metrics" 53 54 ## Assign a PriorityClassName to pods if set 55 # priorityClassName: 56 57 rbac: 58 create: true 59 pspEnabled: true 60 61 podSecurityPolicy: 62 privileged: false 63 allowPrivilegeEscalation: false 64 volumes: 65 - 'secret' 66 - 'configMap' 67 - 'hostPath' 68 - 'projected' 69 - 'downwardAPI' 70 - 'emptyDir' 71 hostNetwork: false 72 hostIPC: false 73 hostPID: false 74 runAsUser: 75 rule: 'RunAsAny' 76 seLinux: 77 rule: 'RunAsAny' 78 supplementalGroups: 79 rule: 'RunAsAny' 80 fsGroup: 81 rule: 'RunAsAny' 82 readOnlyRootFilesystem: true 83 requiredDropCapabilities: 84 - ALL 85 86 readinessProbe: 87 failureThreshold: 5 88 httpGet: 89 path: /ready 90 port: http-metrics 91 initialDelaySeconds: 10 92 periodSeconds: 10 93 successThreshold: 1 94 timeoutSeconds: 1 95 96 resources: {} 97 # limits: 98 # cpu: 200m 99 # memory: 128Mi 100 # requests: 101 # cpu: 100m 102 # memory: 128Mi 103 104 # Custom scrape_configs to override the default ones in the configmap 105 scrapeConfigs: [] 106 107 # Custom scrape_configs together with the default ones in the configmap 108 extraScrapeConfigs: [] 109 110 securityContext: 111 readOnlyRootFilesystem: true 112 runAsGroup: 0 113 runAsUser: 0 114 115 serviceAccount: 116 create: true 117 name: 118 119 ## Tolerations for pod assignment 120 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ 121 tolerations: 122 - key: node-role.kubernetes.io/master 123 operator: Exists 124 effect: NoSchedule 125 126 # Extra volumes to scrape logs from 127 volumes: 128 - name: docker 129 hostPath: 130 path: /var/lib/docker/containers 131 - name: pods 132 hostPath: 133 path: /var/log/pods 134 135 # Custom volumes together with the default ones 136 extraVolumes: [] 137 138 volumeMounts: 139 - name: docker 140 mountPath: /var/lib/docker/containers 141 readOnly: true 142 - name: pods 143 mountPath: /var/log/pods 144 readOnly: true 145 146 # Custom volumeMounts together with the default ones 147 extraVolumeMounts: [] 148 149 # Add extra Commandline args while starting up promtail. 150 # more info : https://github.com/grafana/loki/pull/1530 151 152 extraCommandlineArgs: [] 153 # example: 154 # extraCommandlineArgs: 155 # - -client.external-labels=hostname=$(HOSTNAME) 156 157 config: 158 client: 159 # Maximum wait period before sending batch 160 batchwait: 1s 161 # Maximum batch size to accrue before sending, unit is byte 162 batchsize: 1048576 163 164 # Maximum time to wait for server to respond to a request 165 timeout: 10s 166 167 backoff_config: 168 # Initial backoff time between retries 169 min_period: 500ms 170 # Maximum backoff time between retries 171 max_period: 5m 172 # Maximum number of retries when sending batches, 0 means infinite retries 173 max_retries: 10 174 175 # The labels to add to any time series or alerts when communicating with loki 176 external_labels: {} 177 178 server: 179 http_listen_port: 3101 180 181 positions: 182 filename: /run/promtail/positions.yaml 183 target_config: 184 # Period to resync directories being watched and files being tailed 185 sync_period: 10s 186 187 serviceMonitor: 188 enabled: false 189 interval: "" 190 additionalLabels: {} 191 annotations: {} 192 # scrapeTimeout: 10s 193 194 # Extra env variables to pass to the promtail container 195 env: [] 196 197 # enable and configure if using the syslog scrape config 198 syslogService: 199 enabled: false 200 type: ClusterIP 201 port: 1514 202 # externalIPs: [] 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