Mohammed Naser | 9ad0d46 | 2023-01-15 20:36:37 -0500 | [diff] [blame] | 1 | # Default values for prometheus-pushgateway. |
| 2 | # This is a YAML-formatted file. |
| 3 | # Declare variables to be passed into your templates. |
| 4 | |
| 5 | # Provide a name in place of prometheus-pushgateway for `app:` labels |
| 6 | nameOverride: "" |
| 7 | |
| 8 | # Provide a name to substitute for the full names of resources |
| 9 | fullnameOverride: "" |
| 10 | |
| 11 | image: |
| 12 | repository: prom/pushgateway |
| 13 | tag: v1.4.2 |
| 14 | pullPolicy: IfNotPresent |
| 15 | |
| 16 | # Optional pod imagePullSecrets |
| 17 | imagePullSecrets: [] |
| 18 | |
| 19 | service: |
| 20 | type: ClusterIP |
| 21 | port: 9091 |
| 22 | targetPort: 9091 |
| 23 | |
| 24 | # Optional - Can be used for headless if value is "None" |
| 25 | clusterIP: "" |
| 26 | |
| 27 | loadBalancerIP: "" |
| 28 | loadBalancerSourceRanges: [] |
| 29 | |
| 30 | # Optional pod annotations |
| 31 | podAnnotations: {} |
| 32 | |
| 33 | # Optional pod labels |
| 34 | podLabels: {} |
| 35 | |
| 36 | # Optional service annotations |
| 37 | serviceAnnotations: {} |
| 38 | |
| 39 | # Optional service labels |
| 40 | serviceLabels: {} |
| 41 | |
| 42 | # Optional serviceAccount labels |
| 43 | serviceAccountLabels: {} |
| 44 | |
| 45 | # Optional persistentVolume labels |
| 46 | persistentVolumeLabels: {} |
| 47 | |
| 48 | # Optional additional environment variables |
| 49 | extraVars: [] |
| 50 | |
| 51 | ## Additional pushgateway container arguments |
| 52 | ## |
| 53 | ## example: |
| 54 | ## extraArgs: |
| 55 | ## - --persistence.file=/data/pushgateway.data |
| 56 | ## - --persistence.interval=5m |
| 57 | extraArgs: [] |
| 58 | |
| 59 | resources: {} |
| 60 | # We usually recommend not to specify default resources and to leave this as a conscious |
| 61 | # choice for the user. This also increases chances charts run on environments with little |
| 62 | # resources, such as Minikube. If you do want to specify resources, uncomment the following |
| 63 | # lines, adjust them as necessary, and remove the curly braces after 'resources:'. |
| 64 | # limits: |
| 65 | # cpu: 200m |
| 66 | # memory: 50Mi |
| 67 | # requests: |
| 68 | # cpu: 100m |
| 69 | # memory: 30Mi |
| 70 | |
| 71 | liveness: |
| 72 | enabled: true |
| 73 | probe: |
| 74 | httpGet: |
| 75 | path: /-/ready |
| 76 | port: 9091 |
| 77 | initialDelaySeconds: 10 |
| 78 | timeoutSeconds: 10 |
| 79 | |
| 80 | readiness: |
| 81 | enabled: true |
| 82 | probe: |
| 83 | httpGet: |
| 84 | path: /-/ready |
| 85 | port: 9091 |
| 86 | initialDelaySeconds: 10 |
| 87 | timeoutSeconds: 10 |
| 88 | |
| 89 | serviceAccount: |
| 90 | # Specifies whether a ServiceAccount should be created |
| 91 | create: true |
| 92 | # The name of the ServiceAccount to use. |
| 93 | # If not set and create is true, a name is generated using the fullname template |
| 94 | name: |
| 95 | |
| 96 | ## Configure ingress resource that allow you to access the |
| 97 | ## pushgateway installation. Set up the URL |
| 98 | ## ref: http://kubernetes.io/docs/user-guide/ingress/ |
| 99 | ## |
| 100 | ingress: |
| 101 | ## Enable Ingress. |
| 102 | ## |
| 103 | enabled: false |
| 104 | # AWS ALB requires path of /* |
| 105 | className: "" |
| 106 | path: / |
| 107 | pathType: ImplementationSpecific |
| 108 | |
| 109 | ## Annotations. |
| 110 | ## |
| 111 | # annotations: |
| 112 | # kubernetes.io/ingress.class: nginx |
| 113 | # kubernetes.io/tls-acme: 'true' |
| 114 | |
| 115 | ## Hostnames. |
| 116 | ## Must be provided if Ingress is enabled. |
| 117 | ## |
| 118 | # hosts: |
| 119 | # - pushgateway.domain.com |
| 120 | |
| 121 | ## TLS configuration. |
| 122 | ## Secrets must be manually created in the namespace. |
| 123 | ## |
| 124 | # tls: |
| 125 | # - secretName: pushgateway-tls |
| 126 | # hosts: |
| 127 | # - pushgateway.domain.com |
| 128 | |
| 129 | tolerations: {} |
| 130 | # - effect: NoSchedule |
| 131 | # operator: Exists |
| 132 | |
| 133 | ## Node labels for pushgateway pod assignment |
| 134 | ## Ref: https://kubernetes.io/docs/user-guide/node-selection/ |
| 135 | ## |
| 136 | nodeSelector: {} |
| 137 | |
| 138 | replicaCount: 1 |
| 139 | |
| 140 | ## Security context to be added to push-gateway pods |
| 141 | ## |
| 142 | securityContext: |
| 143 | fsGroup: 65534 |
| 144 | runAsUser: 65534 |
| 145 | runAsNonRoot: true |
| 146 | |
| 147 | ## Security context to be added to push-gateway containers |
| 148 | ## Having a separate variable as securityContext differs for pods and containers. |
| 149 | containerSecurityContext: {} |
| 150 | # allowPrivilegeEscalation: false |
| 151 | # readOnlyRootFilesystem: true |
| 152 | # runAsUser: 65534 |
| 153 | # runAsNonRoot: true |
| 154 | |
| 155 | ## Affinity for pod assignment |
| 156 | ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity |
| 157 | affinity: {} |
| 158 | |
| 159 | # Enable this if you're using https://github.com/coreos/prometheus-operator |
| 160 | serviceMonitor: |
| 161 | enabled: false |
| 162 | namespace: monitoring |
| 163 | |
| 164 | # Fallback to the prometheus default unless specified |
| 165 | # interval: 10s |
| 166 | |
| 167 | # Fallback to the prometheus default unless specified |
| 168 | # scrapeTimeout: 30s |
| 169 | |
| 170 | ## Used to pass Labels that are used by the Prometheus installed in your cluster to select Service Monitors to work with |
| 171 | ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec |
| 172 | additionalLabels: {} |
| 173 | |
| 174 | # Retain the job and instance labels of the metrics pushed to the Pushgateway |
| 175 | # [Scraping Pushgateway](https://github.com/prometheus/pushgateway#configure-the-pushgateway-as-a-target-to-scrape) |
| 176 | honorLabels: true |
| 177 | |
| 178 | ## Metric relabel configs to apply to samples before ingestion. |
| 179 | ## [Metric Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs) |
| 180 | metricRelabelings: [] |
| 181 | # - action: keep |
| 182 | # regex: 'kube_(daemonset|deployment|pod|namespace|node|statefulset).+' |
| 183 | # sourceLabels: [__name__] |
| 184 | |
| 185 | ## Relabel configs to apply to samples before ingestion. |
| 186 | ## [Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config) |
| 187 | relabelings: [] |
| 188 | # - sourceLabels: [__meta_kubernetes_pod_node_name] |
| 189 | # separator: ; |
| 190 | # regex: ^(.*)$ |
| 191 | # targetLabel: nodename |
| 192 | # replacement: $1 |
| 193 | # action: replace |
| 194 | |
| 195 | # The values to set in the PodDisruptionBudget spec (minAvailable/maxUnavailable) |
| 196 | # If not set then a PodDisruptionBudget will not be created |
| 197 | podDisruptionBudget: {} |
| 198 | |
| 199 | priorityClassName: |
| 200 | |
| 201 | # Deployment Strategy type |
| 202 | strategy: |
| 203 | type: Recreate |
| 204 | |
| 205 | persistentVolume: |
| 206 | ## If true, pushgateway will create/use a Persistent Volume Claim |
| 207 | ## If false, use emptyDir |
| 208 | ## |
| 209 | enabled: false |
| 210 | |
| 211 | ## pushgateway data Persistent Volume access modes |
| 212 | ## Must match those of existing PV or dynamic provisioner |
| 213 | ## Ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ |
| 214 | ## |
| 215 | accessModes: |
| 216 | - ReadWriteOnce |
| 217 | |
| 218 | ## pushgateway data Persistent Volume Claim annotations |
| 219 | ## |
| 220 | annotations: {} |
| 221 | |
| 222 | ## pushgateway data Persistent Volume existing claim name |
| 223 | ## Requires pushgateway.persistentVolume.enabled: true |
| 224 | ## If defined, PVC must be created manually before volume will be bound |
| 225 | existingClaim: "" |
| 226 | |
| 227 | ## pushgateway data Persistent Volume mount root path |
| 228 | ## |
| 229 | mountPath: /data |
| 230 | |
| 231 | ## pushgateway data Persistent Volume size |
| 232 | ## |
| 233 | size: 2Gi |
| 234 | |
| 235 | ## pushgateway data Persistent Volume Storage Class |
| 236 | ## If defined, storageClassName: <storageClass> |
| 237 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 238 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 239 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 240 | ## GKE, AWS & OpenStack) |
| 241 | ## |
| 242 | # storageClass: "-" |
| 243 | |
| 244 | ## Subdirectory of pushgateway data Persistent Volume to mount |
| 245 | ## Useful if the volume's root directory is not empty |
| 246 | ## |
| 247 | subPath: "" |
| 248 | |
| 249 | extraVolumes: {} |
| 250 | # - name: extra |
| 251 | # emptyDir: {} |
| 252 | extraVolumeMounts: {} |
| 253 | # - name: extra |
| 254 | # mountPath: /usr/share/extras |
| 255 | # readOnly: true |
| 256 | |
| 257 | # Configuration for clusters with restrictive network policies in place: |
| 258 | # - allowAll allows access to the PushGateway from any namespace |
| 259 | # - customSelector is a list of pod/namespaceSelectors to allow access from |
| 260 | # These options are mutually exclusive and the latter will take precedence. |
| 261 | networkPolicy: {} |
| 262 | # allowAll: true |
| 263 | # customSelectors: |
| 264 | # - namespaceSelector: |
| 265 | # matchLabels: |
| 266 | # type: admin |
| 267 | # - podSelector: |
| 268 | # matchLabels: |
| 269 | # app: myapp |