values.yaml 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677
  1. # helm repo add bitnami https://charts.bitnami.com/bitnami
  2. # helm upgrade --install redis bitnami/redis -n redis -f values.yaml --version 17.3.8
  3. ## @section Global parameters
  4. ## Global Docker image parameters
  5. ## Please, note that this will override the image parameters, including dependencies, configured to use the global value
  6. ## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
  7. ##
  8. ## @param global.imageRegistry Global Docker image registry
  9. ## @param global.imagePullSecrets Global Docker registry secret names as an array
  10. ## @param global.storageClass Global StorageClass for Persistent Volume(s)
  11. ## @param global.redis.password Global Redis® password (overrides `auth.password`)
  12. ##
  13. global:
  14. imageRegistry: ""
  15. ## E.g.
  16. ## imagePullSecrets:
  17. ## - myRegistryKeySecretName
  18. ##
  19. imagePullSecrets: []
  20. storageClass: "ceph-block"
  21. redis:
  22. password: ""
  23. ## @section Common parameters
  24. ##
  25. ## @param kubeVersion Override Kubernetes version
  26. ##
  27. kubeVersion: ""
  28. ## @param nameOverride String to partially override common.names.fullname
  29. ##
  30. nameOverride: ""
  31. ## @param fullnameOverride String to fully override common.names.fullname
  32. ##
  33. fullnameOverride: ""
  34. ## @param commonLabels Labels to add to all deployed objects
  35. ##
  36. commonLabels:
  37. app: redis
  38. ## @param commonAnnotations Annotations to add to all deployed objects
  39. ##
  40. commonAnnotations: {}
  41. ## @param secretAnnotations Annotations to add to secret
  42. ##
  43. secretAnnotations: {}
  44. ## @param clusterDomain Kubernetes cluster domain name
  45. ##
  46. clusterDomain: cluster.local
  47. ## @param extraDeploy Array of extra objects to deploy with the release
  48. ##
  49. extraDeploy: []
  50. ## Enable diagnostic mode in the deployment
  51. ##
  52. diagnosticMode:
  53. ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
  54. ##
  55. enabled: false
  56. ## @param diagnosticMode.command Command to override all containers in the deployment
  57. ##
  58. command:
  59. - sleep
  60. ## @param diagnosticMode.args Args to override all containers in the deployment
  61. ##
  62. args:
  63. - infinity
  64. ## @section Redis® Image parameters
  65. ##
  66. ## Bitnami Redis® image
  67. ## ref: https://hub.docker.com/r/bitnami/redis/tags/
  68. ## @param image.registry Redis® image registry
  69. ## @param image.repository Redis® image repository
  70. ## @param image.tag Redis® image tag (immutable tags are recommended)
  71. ## @param image.digest Redis® image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  72. ## @param image.pullPolicy Redis® image pull policy
  73. ## @param image.pullSecrets Redis® image pull secrets
  74. ## @param image.debug Enable image debug mode
  75. ##
  76. image:
  77. registry: docker.io
  78. repository: bitnami/redis
  79. tag: 7.0.5-debian-11-r15
  80. digest: ""
  81. ## Specify a imagePullPolicy
  82. ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
  83. ## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
  84. ##
  85. pullPolicy: IfNotPresent
  86. ## Optionally specify an array of imagePullSecrets.
  87. ## Secrets must be manually created in the namespace.
  88. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  89. ## e.g:
  90. ## pullSecrets:
  91. ## - myRegistryKeySecretName
  92. ##
  93. pullSecrets: []
  94. ## Enable debug mode
  95. ##
  96. debug: false
  97. ## @section Redis® common configuration parameters
  98. ## https://github.com/bitnami/containers/tree/main/bitnami/redis#configuration
  99. ##
  100. ## @param architecture Redis® architecture. Allowed values: `standalone` or `replication`
  101. ##
  102. architecture: standalone
  103. ## Redis® Authentication parameters
  104. ## ref: https://github.com/bitnami/containers/tree/main/bitnami/redis#setting-the-server-password-on-first-run
  105. ##
  106. auth:
  107. ## @param auth.enabled Enable password authentication
  108. ##
  109. enabled: true
  110. ## @param auth.sentinel Enable password authentication on sentinels too
  111. ##
  112. sentinel: true
  113. ## @param auth.password Redis® password
  114. ## Defaults to a random 10-character alphanumeric string if not set
  115. ##
  116. password: ""
  117. ## @param auth.existingSecret The name of an existing secret with Redis® credentials
  118. ## NOTE: When it's set, the previous `auth.password` parameter is ignored
  119. ##
  120. existingSecret: "redis-secret"
  121. ## @param auth.existingSecretPasswordKey Password key to be retrieved from existing secret
  122. ## NOTE: ignored unless `auth.existingSecret` parameter is set
  123. ##
  124. existingSecretPasswordKey: "REDIS_PASSWORD"
  125. ## @param auth.usePasswordFiles Mount credentials as files instead of using an environment variable
  126. ##
  127. usePasswordFiles: false
  128. ## @param commonConfiguration [string] Common configuration to be added into the ConfigMap
  129. ## ref: https://redis.io/topics/config
  130. ##
  131. commonConfiguration: |-
  132. # Enable AOF https://redis.io/topics/persistence#append-only-file
  133. appendonly yes
  134. # Disable RDB persistence, AOF persistence already enabled.
  135. save ""
  136. ## @param existingConfigmap The name of an existing ConfigMap with your custom configuration for Redis® nodes
  137. ##
  138. existingConfigmap: ""
  139. ## @section Redis® master configuration parameters
  140. ##
  141. master:
  142. ## @param master.count Number of Redis® master instances to deploy (experimental, requires additional configuration)
  143. ##
  144. count: 1
  145. ## @param master.configuration Configuration for Redis® master nodes
  146. ## ref: https://redis.io/topics/config
  147. ##
  148. configuration: ""
  149. ## @param master.disableCommands Array with Redis® commands to disable on master nodes
  150. ## Commands will be completely disabled by renaming each to an empty string.
  151. ## ref: https://redis.io/topics/security#disabling-of-specific-commands
  152. ##
  153. disableCommands:
  154. - FLUSHDB
  155. - FLUSHALL
  156. ## @param master.command Override default container command (useful when using custom images)
  157. ##
  158. command: []
  159. ## @param master.args Override default container args (useful when using custom images)
  160. ##
  161. args: []
  162. ## @param master.preExecCmds Additional commands to run prior to starting Redis® master
  163. ##
  164. preExecCmds: []
  165. ## @param master.extraFlags Array with additional command line flags for Redis® master
  166. ## e.g:
  167. ## extraFlags:
  168. ## - "--maxmemory-policy volatile-ttl"
  169. ## - "--repl-backlog-size 1024mb"
  170. ##
  171. extraFlags: []
  172. ## @param master.extraEnvVars Array with extra environment variables to add to Redis® master nodes
  173. ## e.g:
  174. ## extraEnvVars:
  175. ## - name: FOO
  176. ## value: "bar"
  177. ##
  178. extraEnvVars: []
  179. ## @param master.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Redis® master nodes
  180. ##
  181. extraEnvVarsCM: ""
  182. ## @param master.extraEnvVarsSecret Name of existing Secret containing extra env vars for Redis® master nodes
  183. ##
  184. extraEnvVarsSecret: ""
  185. ## @param master.containerPorts.redis Container port to open on Redis® master nodes
  186. ##
  187. containerPorts:
  188. redis: 6379
  189. ## Configure extra options for Redis® containers' liveness and readiness probes
  190. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  191. ## @param master.startupProbe.enabled Enable startupProbe on Redis® master nodes
  192. ## @param master.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  193. ## @param master.startupProbe.periodSeconds Period seconds for startupProbe
  194. ## @param master.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  195. ## @param master.startupProbe.failureThreshold Failure threshold for startupProbe
  196. ## @param master.startupProbe.successThreshold Success threshold for startupProbe
  197. ##
  198. startupProbe:
  199. enabled: false
  200. initialDelaySeconds: 20
  201. periodSeconds: 5
  202. timeoutSeconds: 5
  203. successThreshold: 1
  204. failureThreshold: 5
  205. ## @param master.livenessProbe.enabled Enable livenessProbe on Redis® master nodes
  206. ## @param master.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  207. ## @param master.livenessProbe.periodSeconds Period seconds for livenessProbe
  208. ## @param master.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  209. ## @param master.livenessProbe.failureThreshold Failure threshold for livenessProbe
  210. ## @param master.livenessProbe.successThreshold Success threshold for livenessProbe
  211. ##
  212. livenessProbe:
  213. enabled: true
  214. initialDelaySeconds: 20
  215. periodSeconds: 5
  216. timeoutSeconds: 5
  217. successThreshold: 1
  218. failureThreshold: 5
  219. ## @param master.readinessProbe.enabled Enable readinessProbe on Redis® master nodes
  220. ## @param master.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  221. ## @param master.readinessProbe.periodSeconds Period seconds for readinessProbe
  222. ## @param master.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  223. ## @param master.readinessProbe.failureThreshold Failure threshold for readinessProbe
  224. ## @param master.readinessProbe.successThreshold Success threshold for readinessProbe
  225. ##
  226. readinessProbe:
  227. enabled: true
  228. initialDelaySeconds: 20
  229. periodSeconds: 5
  230. timeoutSeconds: 1
  231. successThreshold: 1
  232. failureThreshold: 5
  233. ## @param master.customStartupProbe Custom startupProbe that overrides the default one
  234. ##
  235. customStartupProbe: {}
  236. ## @param master.customLivenessProbe Custom livenessProbe that overrides the default one
  237. ##
  238. customLivenessProbe: {}
  239. ## @param master.customReadinessProbe Custom readinessProbe that overrides the default one
  240. ##
  241. customReadinessProbe: {}
  242. ## Redis® master resource requests and limits
  243. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  244. ## @param master.resources.limits The resources limits for the Redis® master containers
  245. ## @param master.resources.requests The requested resources for the Redis® master containers
  246. ##
  247. resources:
  248. limits: {}
  249. requests: {}
  250. ## Configure Pods Security Context
  251. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  252. ## @param master.podSecurityContext.enabled Enabled Redis® master pods' Security Context
  253. ## @param master.podSecurityContext.fsGroup Set Redis® master pod's Security Context fsGroup
  254. ##
  255. podSecurityContext:
  256. enabled: true
  257. fsGroup: 1001
  258. ## Configure Container Security Context
  259. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  260. ## @param master.containerSecurityContext.enabled Enabled Redis® master containers' Security Context
  261. ## @param master.containerSecurityContext.runAsUser Set Redis® master containers' Security Context runAsUser
  262. ##
  263. containerSecurityContext:
  264. enabled: true
  265. runAsUser: 1001
  266. ## @param master.kind Use either Deployment or StatefulSet (default)
  267. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/
  268. ##
  269. kind: StatefulSet
  270. ## @param master.schedulerName Alternate scheduler for Redis® master pods
  271. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  272. ##
  273. schedulerName: ""
  274. ## @param master.updateStrategy.type Redis® master statefulset strategy type
  275. ## @skip master.updateStrategy.rollingUpdate
  276. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  277. ##
  278. updateStrategy:
  279. ## StrategyType
  280. ## Can be set to RollingUpdate or OnDelete
  281. ##
  282. type: RollingUpdate
  283. rollingUpdate: {}
  284. ## @param master.priorityClassName Redis® master pods' priorityClassName
  285. ##
  286. priorityClassName: ""
  287. ## @param master.hostAliases Redis® master pods host aliases
  288. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  289. ##
  290. hostAliases: []
  291. ## @param master.podLabels Extra labels for Redis® master pods
  292. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
  293. ##
  294. podLabels: {}
  295. ## @param master.podAnnotations Annotations for Redis® master pods
  296. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
  297. ##
  298. podAnnotations: {}
  299. ## @param master.shareProcessNamespace Share a single process namespace between all of the containers in Redis® master pods
  300. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
  301. ##
  302. shareProcessNamespace: false
  303. ## @param master.podAffinityPreset Pod affinity preset. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
  304. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  305. ##
  306. podAffinityPreset: ""
  307. ## @param master.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
  308. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  309. ##
  310. podAntiAffinityPreset: soft
  311. ## Node master.affinity preset
  312. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  313. ##
  314. nodeAffinityPreset:
  315. ## @param master.nodeAffinityPreset.type Node affinity preset type. Ignored if `master.affinity` is set. Allowed values: `soft` or `hard`
  316. ##
  317. type: ""
  318. ## @param master.nodeAffinityPreset.key Node label key to match. Ignored if `master.affinity` is set
  319. ##
  320. key: ""
  321. ## @param master.nodeAffinityPreset.values Node label values to match. Ignored if `master.affinity` is set
  322. ## E.g.
  323. ## values:
  324. ## - e2e-az1
  325. ## - e2e-az2
  326. ##
  327. values: []
  328. ## @param master.affinity Affinity for Redis® master pods assignment
  329. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  330. ## NOTE: `master.podAffinityPreset`, `master.podAntiAffinityPreset`, and `master.nodeAffinityPreset` will be ignored when it's set
  331. ##
  332. affinity: {}
  333. ## @param master.nodeSelector Node labels for Redis® master pods assignment
  334. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  335. ##
  336. nodeSelector: {}
  337. ## @param master.tolerations Tolerations for Redis® master pods assignment
  338. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  339. ##
  340. tolerations: []
  341. ## @param master.topologySpreadConstraints Spread Constraints for Redis® master pod assignment
  342. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
  343. ## E.g.
  344. ## topologySpreadConstraints:
  345. ## - maxSkew: 1
  346. ## topologyKey: node
  347. ## whenUnsatisfiable: DoNotSchedule
  348. ##
  349. topologySpreadConstraints: []
  350. ## @param master.dnsPolicy DNS Policy for Redis® master pod
  351. ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
  352. ## E.g.
  353. ## dnsPolicy: ClusterFirst
  354. dnsPolicy: ""
  355. ## @param master.dnsConfig DNS Configuration for Redis® master pod
  356. ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
  357. ## E.g.
  358. ## dnsConfig:
  359. ## options:
  360. ## - name: ndots
  361. ## value: "4"
  362. ## - name: single-request-reopen
  363. dnsConfig: {}
  364. ## @param master.lifecycleHooks for the Redis® master container(s) to automate configuration before or after startup
  365. ##
  366. lifecycleHooks: {}
  367. ## @param master.extraVolumes Optionally specify extra list of additional volumes for the Redis® master pod(s)
  368. ##
  369. extraVolumes: []
  370. ## @param master.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis® master container(s)
  371. ##
  372. extraVolumeMounts: []
  373. ## @param master.sidecars Add additional sidecar containers to the Redis® master pod(s)
  374. ## e.g:
  375. ## sidecars:
  376. ## - name: your-image-name
  377. ## image: your-image
  378. ## imagePullPolicy: Always
  379. ## ports:
  380. ## - name: portname
  381. ## containerPort: 1234
  382. ##
  383. sidecars: []
  384. ## @param master.initContainers Add additional init containers to the Redis® master pod(s)
  385. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
  386. ## e.g:
  387. ## initContainers:
  388. ## - name: your-image-name
  389. ## image: your-image
  390. ## imagePullPolicy: Always
  391. ## command: ['sh', '-c', 'echo "hello world"']
  392. ##
  393. initContainers: []
  394. ## Persistence parameters
  395. ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
  396. ##
  397. persistence:
  398. ## @param master.persistence.enabled Enable persistence on Redis® master nodes using Persistent Volume Claims
  399. ##
  400. enabled: true
  401. ## @param master.persistence.medium Provide a medium for `emptyDir` volumes.
  402. ##
  403. medium: ""
  404. ## @param master.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
  405. ##
  406. sizeLimit: ""
  407. ## @param master.persistence.path The path the volume will be mounted at on Redis® master containers
  408. ## NOTE: Useful when using different Redis® images
  409. ##
  410. path: /data
  411. ## @param master.persistence.subPath The subdirectory of the volume to mount on Redis® master containers
  412. ## NOTE: Useful in dev environments
  413. ##
  414. subPath: ""
  415. ## @param master.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Redis® master containers
  416. ##
  417. subPathExpr: ""
  418. ## @param master.persistence.storageClass Persistent Volume storage class
  419. ## If defined, storageClassName: <storageClass>
  420. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  421. ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
  422. ##
  423. storageClass: ""
  424. ## @param master.persistence.accessModes Persistent Volume access modes
  425. ##
  426. accessModes:
  427. - ReadWriteOnce
  428. ## @param master.persistence.size Persistent Volume size
  429. ##
  430. size: 8Gi
  431. ## @param master.persistence.annotations Additional custom annotations for the PVC
  432. ##
  433. annotations: {}
  434. ## @param master.persistence.selector Additional labels to match for the PVC
  435. ## e.g:
  436. ## selector:
  437. ## matchLabels:
  438. ## app: my-app
  439. ##
  440. selector: {}
  441. ## @param master.persistence.dataSource Custom PVC data source
  442. ##
  443. dataSource: {}
  444. ## @param master.persistence.existingClaim Use a existing PVC which must be created manually before bound
  445. ## NOTE: requires master.persistence.enabled: true
  446. ##
  447. existingClaim: ""
  448. ## Redis&reg; master service parameters
  449. ##
  450. service:
  451. ## @param master.service.type Redis&reg; master service type
  452. ##
  453. type: ClusterIP
  454. ## @param master.service.ports.redis Redis&reg; master service port
  455. ##
  456. ports:
  457. redis: 6379
  458. ## @param master.service.nodePorts.redis Node port for Redis&reg; master
  459. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  460. ## NOTE: choose port between <30000-32767>
  461. ##
  462. nodePorts:
  463. redis: ""
  464. ## @param master.service.externalTrafficPolicy Redis&reg; master service external traffic policy
  465. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  466. ##
  467. externalTrafficPolicy: Cluster
  468. ## @param master.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
  469. ##
  470. extraPorts: []
  471. ## @param master.service.internalTrafficPolicy Redis&reg; master service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
  472. ## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
  473. ##
  474. internalTrafficPolicy: Cluster
  475. ## @param master.service.clusterIP Redis&reg; master service Cluster IP
  476. ##
  477. clusterIP: ""
  478. ## @param master.service.loadBalancerIP Redis&reg; master service Load Balancer IP
  479. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  480. ##
  481. loadBalancerIP: ""
  482. ## @param master.service.loadBalancerSourceRanges Redis&reg; master service Load Balancer sources
  483. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  484. ## e.g.
  485. ## loadBalancerSourceRanges:
  486. ## - 10.10.10.0/24
  487. ##
  488. loadBalancerSourceRanges: []
  489. ## @param master.service.annotations Additional custom annotations for Redis&reg; master service
  490. ##
  491. annotations: {}
  492. ## @param master.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
  493. ## If "ClientIP", consecutive client requests will be directed to the same Pod
  494. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  495. ##
  496. sessionAffinity: None
  497. ## @param master.service.sessionAffinityConfig Additional settings for the sessionAffinity
  498. ## sessionAffinityConfig:
  499. ## clientIP:
  500. ## timeoutSeconds: 300
  501. ##
  502. sessionAffinityConfig: {}
  503. ## @param master.terminationGracePeriodSeconds Integer setting the termination grace period for the redis-master pods
  504. ##
  505. terminationGracePeriodSeconds: 30
  506. ## ServiceAccount configuration
  507. ##
  508. serviceAccount:
  509. ## @param master.serviceAccount.create Specifies whether a ServiceAccount should be created
  510. ##
  511. create: false
  512. ## @param master.serviceAccount.name The name of the ServiceAccount to use.
  513. ## If not set and create is true, a name is generated using the common.names.fullname template
  514. ##
  515. name: ""
  516. ## @param master.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
  517. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
  518. ##
  519. automountServiceAccountToken: true
  520. ## @param master.serviceAccount.annotations Additional custom annotations for the ServiceAccount
  521. ##
  522. annotations: {}
  523. ## @section Redis&reg; replicas configuration parameters
  524. ##
  525. replica:
  526. ## @param replica.replicaCount Number of Redis&reg; replicas to deploy
  527. ##
  528. replicaCount: 0
  529. ## @param replica.configuration Configuration for Redis&reg; replicas nodes
  530. ## ref: https://redis.io/topics/config
  531. ##
  532. configuration: ""
  533. ## @param replica.disableCommands Array with Redis&reg; commands to disable on replicas nodes
  534. ## Commands will be completely disabled by renaming each to an empty string.
  535. ## ref: https://redis.io/topics/security#disabling-of-specific-commands
  536. ##
  537. disableCommands:
  538. - FLUSHDB
  539. - FLUSHALL
  540. ## @param replica.command Override default container command (useful when using custom images)
  541. ##
  542. command: []
  543. ## @param replica.args Override default container args (useful when using custom images)
  544. ##
  545. args: []
  546. ## @param replica.preExecCmds Additional commands to run prior to starting Redis&reg; replicas
  547. ##
  548. preExecCmds: []
  549. ## @param replica.extraFlags Array with additional command line flags for Redis&reg; replicas
  550. ## e.g:
  551. ## extraFlags:
  552. ## - "--maxmemory-policy volatile-ttl"
  553. ## - "--repl-backlog-size 1024mb"
  554. ##
  555. extraFlags: []
  556. ## @param replica.extraEnvVars Array with extra environment variables to add to Redis&reg; replicas nodes
  557. ## e.g:
  558. ## extraEnvVars:
  559. ## - name: FOO
  560. ## value: "bar"
  561. ##
  562. extraEnvVars: []
  563. ## @param replica.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Redis&reg; replicas nodes
  564. ##
  565. extraEnvVarsCM: ""
  566. ## @param replica.extraEnvVarsSecret Name of existing Secret containing extra env vars for Redis&reg; replicas nodes
  567. ##
  568. extraEnvVarsSecret: ""
  569. ## @param replica.externalMaster.enabled Use external master for bootstrapping
  570. ## @param replica.externalMaster.host External master host to bootstrap from
  571. ## @param replica.externalMaster.port Port for Redis service external master host
  572. ##
  573. externalMaster:
  574. enabled: false
  575. host: ""
  576. port: 6379
  577. ## @param replica.containerPorts.redis Container port to open on Redis&reg; replicas nodes
  578. ##
  579. containerPorts:
  580. redis: 6379
  581. ## Configure extra options for Redis&reg; containers' liveness and readiness probes
  582. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  583. ## @param replica.startupProbe.enabled Enable startupProbe on Redis&reg; replicas nodes
  584. ## @param replica.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  585. ## @param replica.startupProbe.periodSeconds Period seconds for startupProbe
  586. ## @param replica.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  587. ## @param replica.startupProbe.failureThreshold Failure threshold for startupProbe
  588. ## @param replica.startupProbe.successThreshold Success threshold for startupProbe
  589. ##
  590. startupProbe:
  591. enabled: true
  592. initialDelaySeconds: 10
  593. periodSeconds: 10
  594. timeoutSeconds: 5
  595. successThreshold: 1
  596. failureThreshold: 22
  597. ## @param replica.livenessProbe.enabled Enable livenessProbe on Redis&reg; replicas nodes
  598. ## @param replica.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  599. ## @param replica.livenessProbe.periodSeconds Period seconds for livenessProbe
  600. ## @param replica.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  601. ## @param replica.livenessProbe.failureThreshold Failure threshold for livenessProbe
  602. ## @param replica.livenessProbe.successThreshold Success threshold for livenessProbe
  603. ##
  604. livenessProbe:
  605. enabled: true
  606. initialDelaySeconds: 20
  607. periodSeconds: 5
  608. timeoutSeconds: 5
  609. successThreshold: 1
  610. failureThreshold: 5
  611. ## @param replica.readinessProbe.enabled Enable readinessProbe on Redis&reg; replicas nodes
  612. ## @param replica.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  613. ## @param replica.readinessProbe.periodSeconds Period seconds for readinessProbe
  614. ## @param replica.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  615. ## @param replica.readinessProbe.failureThreshold Failure threshold for readinessProbe
  616. ## @param replica.readinessProbe.successThreshold Success threshold for readinessProbe
  617. ##
  618. readinessProbe:
  619. enabled: true
  620. initialDelaySeconds: 20
  621. periodSeconds: 5
  622. timeoutSeconds: 1
  623. successThreshold: 1
  624. failureThreshold: 5
  625. ## @param replica.customStartupProbe Custom startupProbe that overrides the default one
  626. ##
  627. customStartupProbe: {}
  628. ## @param replica.customLivenessProbe Custom livenessProbe that overrides the default one
  629. ##
  630. customLivenessProbe: {}
  631. ## @param replica.customReadinessProbe Custom readinessProbe that overrides the default one
  632. ##
  633. customReadinessProbe: {}
  634. ## Redis&reg; replicas resource requests and limits
  635. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  636. ## @param replica.resources.limits The resources limits for the Redis&reg; replicas containers
  637. ## @param replica.resources.requests The requested resources for the Redis&reg; replicas containers
  638. ##
  639. resources:
  640. # We usually recommend not to specify default resources and to leave this as a conscious
  641. # choice for the user. This also increases chances charts run on environments with little
  642. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  643. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  644. limits: {}
  645. # cpu: 250m
  646. # memory: 256Mi
  647. requests: {}
  648. # cpu: 250m
  649. # memory: 256Mi
  650. ## Configure Pods Security Context
  651. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  652. ## @param replica.podSecurityContext.enabled Enabled Redis&reg; replicas pods' Security Context
  653. ## @param replica.podSecurityContext.fsGroup Set Redis&reg; replicas pod's Security Context fsGroup
  654. ##
  655. podSecurityContext:
  656. enabled: true
  657. fsGroup: 1001
  658. ## Configure Container Security Context
  659. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  660. ## @param replica.containerSecurityContext.enabled Enabled Redis&reg; replicas containers' Security Context
  661. ## @param replica.containerSecurityContext.runAsUser Set Redis&reg; replicas containers' Security Context runAsUser
  662. ##
  663. containerSecurityContext:
  664. enabled: true
  665. runAsUser: 1001
  666. ## @param replica.schedulerName Alternate scheduler for Redis&reg; replicas pods
  667. ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
  668. ##
  669. schedulerName: ""
  670. ## @param replica.updateStrategy.type Redis&reg; replicas statefulset strategy type
  671. ## @skip replica.updateStrategy.rollingUpdate
  672. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  673. ##
  674. updateStrategy:
  675. ## StrategyType
  676. ## Can be set to RollingUpdate or OnDelete
  677. ##
  678. type: RollingUpdate
  679. rollingUpdate: {}
  680. ## @param replica.priorityClassName Redis&reg; replicas pods' priorityClassName
  681. ##
  682. priorityClassName: ""
  683. ## @param replica.podManagementPolicy podManagementPolicy to manage scaling operation of %%MAIN_CONTAINER_NAME%% pods
  684. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
  685. ##
  686. podManagementPolicy: ""
  687. ## @param replica.hostAliases Redis&reg; replicas pods host aliases
  688. ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  689. ##
  690. hostAliases: []
  691. ## @param replica.podLabels Extra labels for Redis&reg; replicas pods
  692. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
  693. ##
  694. podLabels: {}
  695. ## @param replica.podAnnotations Annotations for Redis&reg; replicas pods
  696. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
  697. ##
  698. podAnnotations: {}
  699. ## @param replica.shareProcessNamespace Share a single process namespace between all of the containers in Redis&reg; replicas pods
  700. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/
  701. ##
  702. shareProcessNamespace: false
  703. ## @param replica.podAffinityPreset Pod affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
  704. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  705. ##
  706. podAffinityPreset: ""
  707. ## @param replica.podAntiAffinityPreset Pod anti-affinity preset. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
  708. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
  709. ##
  710. podAntiAffinityPreset: soft
  711. ## Node affinity preset
  712. ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
  713. ##
  714. nodeAffinityPreset:
  715. ## @param replica.nodeAffinityPreset.type Node affinity preset type. Ignored if `replica.affinity` is set. Allowed values: `soft` or `hard`
  716. ##
  717. type: ""
  718. ## @param replica.nodeAffinityPreset.key Node label key to match. Ignored if `replica.affinity` is set
  719. ##
  720. key: ""
  721. ## @param replica.nodeAffinityPreset.values Node label values to match. Ignored if `replica.affinity` is set
  722. ## E.g.
  723. ## values:
  724. ## - e2e-az1
  725. ## - e2e-az2
  726. ##
  727. values: []
  728. ## @param replica.affinity Affinity for Redis&reg; replicas pods assignment
  729. ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
  730. ## NOTE: `replica.podAffinityPreset`, `replica.podAntiAffinityPreset`, and `replica.nodeAffinityPreset` will be ignored when it's set
  731. ##
  732. affinity: {}
  733. ## @param replica.nodeSelector Node labels for Redis&reg; replicas pods assignment
  734. ## ref: https://kubernetes.io/docs/user-guide/node-selection/
  735. ##
  736. nodeSelector: {}
  737. ## @param replica.tolerations Tolerations for Redis&reg; replicas pods assignment
  738. ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  739. ##
  740. tolerations: []
  741. ## @param replica.topologySpreadConstraints Spread Constraints for Redis&reg; replicas pod assignment
  742. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
  743. ## E.g.
  744. ## topologySpreadConstraints:
  745. ## - maxSkew: 1
  746. ## topologyKey: node
  747. ## whenUnsatisfiable: DoNotSchedule
  748. ##
  749. topologySpreadConstraints: []
  750. ## @param replica.dnsPolicy DNS Policy for Redis&reg; replica pods
  751. ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
  752. ## E.g.
  753. ## dnsPolicy: ClusterFirst
  754. dnsPolicy: ""
  755. ## @param replica.dnsConfig DNS Configuration for Redis&reg; replica pods
  756. ## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
  757. ## E.g.
  758. ## dnsConfig:
  759. ## options:
  760. ## - name: ndots
  761. ## value: "4"
  762. ## - name: single-request-reopen
  763. dnsConfig: {}
  764. ## @param replica.lifecycleHooks for the Redis&reg; replica container(s) to automate configuration before or after startup
  765. ##
  766. lifecycleHooks: {}
  767. ## @param replica.extraVolumes Optionally specify extra list of additional volumes for the Redis&reg; replicas pod(s)
  768. ##
  769. extraVolumes: []
  770. ## @param replica.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis&reg; replicas container(s)
  771. ##
  772. extraVolumeMounts: []
  773. ## @param replica.sidecars Add additional sidecar containers to the Redis&reg; replicas pod(s)
  774. ## e.g:
  775. ## sidecars:
  776. ## - name: your-image-name
  777. ## image: your-image
  778. ## imagePullPolicy: Always
  779. ## ports:
  780. ## - name: portname
  781. ## containerPort: 1234
  782. ##
  783. sidecars: []
  784. ## @param replica.initContainers Add additional init containers to the Redis&reg; replicas pod(s)
  785. ## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
  786. ## e.g:
  787. ## initContainers:
  788. ## - name: your-image-name
  789. ## image: your-image
  790. ## imagePullPolicy: Always
  791. ## command: ['sh', '-c', 'echo "hello world"']
  792. ##
  793. initContainers: []
  794. ## Persistence Parameters
  795. ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
  796. ##
  797. persistence:
  798. ## @param replica.persistence.enabled Enable persistence on Redis&reg; replicas nodes using Persistent Volume Claims
  799. ##
  800. enabled: false
  801. ## @param replica.persistence.medium Provide a medium for `emptyDir` volumes.
  802. ##
  803. medium: ""
  804. ## @param replica.persistence.sizeLimit Set this to enable a size limit for `emptyDir` volumes.
  805. ##
  806. sizeLimit: ""
  807. ## @param replica.persistence.path The path the volume will be mounted at on Redis&reg; replicas containers
  808. ## NOTE: Useful when using different Redis&reg; images
  809. ##
  810. path: /data
  811. ## @param replica.persistence.subPath The subdirectory of the volume to mount on Redis&reg; replicas containers
  812. ## NOTE: Useful in dev environments
  813. ##
  814. subPath: ""
  815. ## @param replica.persistence.subPathExpr Used to construct the subPath subdirectory of the volume to mount on Redis&reg; replicas containers
  816. ##
  817. subPathExpr: ""
  818. ## @param replica.persistence.storageClass Persistent Volume storage class
  819. ## If defined, storageClassName: <storageClass>
  820. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  821. ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
  822. ##
  823. storageClass: ""
  824. ## @param replica.persistence.accessModes Persistent Volume access modes
  825. ##
  826. accessModes:
  827. - ReadWriteOnce
  828. ## @param replica.persistence.size Persistent Volume size
  829. ##
  830. size: 8Gi
  831. ## @param replica.persistence.annotations Additional custom annotations for the PVC
  832. ##
  833. annotations: {}
  834. ## @param replica.persistence.selector Additional labels to match for the PVC
  835. ## e.g:
  836. ## selector:
  837. ## matchLabels:
  838. ## app: my-app
  839. ##
  840. selector: {}
  841. ## @param replica.persistence.dataSource Custom PVC data source
  842. ##
  843. dataSource: {}
  844. ## @param replica.persistence.existingClaim Use a existing PVC which must be created manually before bound
  845. ## NOTE: requires replica.persistence.enabled: true
  846. ##
  847. existingClaim: "redis-pvc"
  848. ## Redis&reg; replicas service parameters
  849. ##
  850. service:
  851. ## @param replica.service.type Redis&reg; replicas service type
  852. ##
  853. type: ClusterIP
  854. ## @param replica.service.ports.redis Redis&reg; replicas service port
  855. ##
  856. ports:
  857. redis: 6379
  858. ## @param replica.service.nodePorts.redis Node port for Redis&reg; replicas
  859. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  860. ## NOTE: choose port between <30000-32767>
  861. ##
  862. nodePorts:
  863. redis: ""
  864. ## @param replica.service.externalTrafficPolicy Redis&reg; replicas service external traffic policy
  865. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  866. ##
  867. externalTrafficPolicy: Cluster
  868. ## @param replica.service.internalTrafficPolicy Redis&reg; replicas service internal traffic policy (requires Kubernetes v1.22 or greater to be usable)
  869. ## ref: https://kubernetes.io/docs/concepts/services-networking/service-traffic-policy/
  870. ##
  871. internalTrafficPolicy: Cluster
  872. ## @param replica.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
  873. ##
  874. extraPorts: []
  875. ## @param replica.service.clusterIP Redis&reg; replicas service Cluster IP
  876. ##
  877. clusterIP: ""
  878. ## @param replica.service.loadBalancerIP Redis&reg; replicas service Load Balancer IP
  879. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  880. ##
  881. loadBalancerIP: ""
  882. ## @param replica.service.loadBalancerSourceRanges Redis&reg; replicas service Load Balancer sources
  883. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  884. ## e.g.
  885. ## loadBalancerSourceRanges:
  886. ## - 10.10.10.0/24
  887. ##
  888. loadBalancerSourceRanges: []
  889. ## @param replica.service.annotations Additional custom annotations for Redis&reg; replicas service
  890. ##
  891. annotations: {}
  892. ## @param replica.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
  893. ## If "ClientIP", consecutive client requests will be directed to the same Pod
  894. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  895. ##
  896. sessionAffinity: None
  897. ## @param replica.service.sessionAffinityConfig Additional settings for the sessionAffinity
  898. ## sessionAffinityConfig:
  899. ## clientIP:
  900. ## timeoutSeconds: 300
  901. ##
  902. sessionAffinityConfig: {}
  903. ## @param replica.terminationGracePeriodSeconds Integer setting the termination grace period for the redis-replicas pods
  904. ##
  905. terminationGracePeriodSeconds: 30
  906. ## Autoscaling configuration
  907. ##
  908. autoscaling:
  909. ## @param replica.autoscaling.enabled Enable replica autoscaling settings
  910. ##
  911. enabled: false
  912. ## @param replica.autoscaling.minReplicas Minimum replicas for the pod autoscaling
  913. ##
  914. minReplicas: 1
  915. ## @param replica.autoscaling.maxReplicas Maximum replicas for the pod autoscaling
  916. ##
  917. maxReplicas: 11
  918. ## @param replica.autoscaling.targetCPU Percentage of CPU to consider when autoscaling
  919. ##
  920. targetCPU: ""
  921. ## @param replica.autoscaling.targetMemory Percentage of Memory to consider when autoscaling
  922. ##
  923. targetMemory: ""
  924. ## ServiceAccount configuration
  925. ##
  926. serviceAccount:
  927. ## @param replica.serviceAccount.create Specifies whether a ServiceAccount should be created
  928. ##
  929. create: false
  930. ## @param replica.serviceAccount.name The name of the ServiceAccount to use.
  931. ## If not set and create is true, a name is generated using the common.names.fullname template
  932. ##
  933. name: ""
  934. ## @param replica.serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
  935. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
  936. ##
  937. automountServiceAccountToken: true
  938. ## @param replica.serviceAccount.annotations Additional custom annotations for the ServiceAccount
  939. ##
  940. annotations: {}
  941. ## @section Redis&reg; Sentinel configuration parameters
  942. ##
  943. sentinel:
  944. ## @param sentinel.enabled Use Redis&reg; Sentinel on Redis&reg; pods.
  945. ## IMPORTANT: this will disable the master and replicas services and
  946. ## create a single Redis&reg; service exposing both the Redis and Sentinel ports
  947. ##
  948. enabled: false
  949. ## Bitnami Redis&reg; Sentinel image version
  950. ## ref: https://hub.docker.com/r/bitnami/redis-sentinel/tags/
  951. ## @param sentinel.image.registry Redis&reg; Sentinel image registry
  952. ## @param sentinel.image.repository Redis&reg; Sentinel image repository
  953. ## @param sentinel.image.tag Redis&reg; Sentinel image tag (immutable tags are recommended)
  954. ## @param sentinel.image.digest Redis&reg; Sentinel image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  955. ## @param sentinel.image.pullPolicy Redis&reg; Sentinel image pull policy
  956. ## @param sentinel.image.pullSecrets Redis&reg; Sentinel image pull secrets
  957. ## @param sentinel.image.debug Enable image debug mode
  958. ##
  959. image:
  960. registry: docker.io
  961. repository: bitnami/redis-sentinel
  962. tag: 7.0.5-debian-11-r14
  963. digest: ""
  964. ## Specify a imagePullPolicy
  965. ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
  966. ## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
  967. ##
  968. pullPolicy: IfNotPresent
  969. ## Optionally specify an array of imagePullSecrets.
  970. ## Secrets must be manually created in the namespace.
  971. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  972. ## e.g:
  973. ## pullSecrets:
  974. ## - myRegistryKeySecretName
  975. ##
  976. pullSecrets: []
  977. ## Enable debug mode
  978. ##
  979. debug: false
  980. ## @param sentinel.masterSet Master set name
  981. ##
  982. masterSet: mymaster
  983. ## @param sentinel.quorum Sentinel Quorum
  984. ##
  985. quorum: 2
  986. ## @param sentinel.getMasterTimeout Amount of time to allow before get_sentinel_master_info() times out.
  987. ## NOTE: This is directly related to the startupProbes which are configured to run every 10 seconds for a total of 22 failures. If adjusting this value, also adjust the startupProbes.
  988. getMasterTimeout: 220
  989. ## @param sentinel.automateClusterRecovery Automate cluster recovery in cases where the last replica is not considered a good replica and Sentinel won't automatically failover to it.
  990. ## This also prevents any new replica from starting until the last remaining replica is elected as master to guarantee that it is the one to be elected by Sentinel, and not a newly started replica with no data.
  991. ## NOTE: This feature requires a "downAfterMilliseconds" value less or equal to 2000.
  992. ##
  993. automateClusterRecovery: false
  994. ## Sentinel timing restrictions
  995. ## @param sentinel.downAfterMilliseconds Timeout for detecting a Redis&reg; node is down
  996. ## @param sentinel.failoverTimeout Timeout for performing a election failover
  997. ##
  998. downAfterMilliseconds: 60000
  999. failoverTimeout: 180000
  1000. ## @param sentinel.parallelSyncs Number of replicas that can be reconfigured in parallel to use the new master after a failover
  1001. ##
  1002. parallelSyncs: 1
  1003. ## @param sentinel.configuration Configuration for Redis&reg; Sentinel nodes
  1004. ## ref: https://redis.io/topics/sentinel
  1005. ##
  1006. configuration: ""
  1007. ## @param sentinel.command Override default container command (useful when using custom images)
  1008. ##
  1009. command: []
  1010. ## @param sentinel.args Override default container args (useful when using custom images)
  1011. ##
  1012. args: []
  1013. ## @param sentinel.preExecCmds Additional commands to run prior to starting Redis&reg; Sentinel
  1014. ##
  1015. preExecCmds: []
  1016. ## @param sentinel.extraEnvVars Array with extra environment variables to add to Redis&reg; Sentinel nodes
  1017. ## e.g:
  1018. ## extraEnvVars:
  1019. ## - name: FOO
  1020. ## value: "bar"
  1021. ##
  1022. extraEnvVars: []
  1023. ## @param sentinel.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for Redis&reg; Sentinel nodes
  1024. ##
  1025. extraEnvVarsCM: ""
  1026. ## @param sentinel.extraEnvVarsSecret Name of existing Secret containing extra env vars for Redis&reg; Sentinel nodes
  1027. ##
  1028. extraEnvVarsSecret: ""
  1029. ## @param sentinel.externalMaster.enabled Use external master for bootstrapping
  1030. ## @param sentinel.externalMaster.host External master host to bootstrap from
  1031. ## @param sentinel.externalMaster.port Port for Redis service external master host
  1032. ##
  1033. externalMaster:
  1034. enabled: false
  1035. host: ""
  1036. port: 6379
  1037. ## @param sentinel.containerPorts.sentinel Container port to open on Redis&reg; Sentinel nodes
  1038. ##
  1039. containerPorts:
  1040. sentinel: 26379
  1041. ## Configure extra options for Redis&reg; containers' liveness and readiness probes
  1042. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
  1043. ## @param sentinel.startupProbe.enabled Enable startupProbe on Redis&reg; Sentinel nodes
  1044. ## @param sentinel.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
  1045. ## @param sentinel.startupProbe.periodSeconds Period seconds for startupProbe
  1046. ## @param sentinel.startupProbe.timeoutSeconds Timeout seconds for startupProbe
  1047. ## @param sentinel.startupProbe.failureThreshold Failure threshold for startupProbe
  1048. ## @param sentinel.startupProbe.successThreshold Success threshold for startupProbe
  1049. ##
  1050. startupProbe:
  1051. enabled: true
  1052. initialDelaySeconds: 10
  1053. periodSeconds: 10
  1054. timeoutSeconds: 5
  1055. successThreshold: 1
  1056. failureThreshold: 22
  1057. ## @param sentinel.livenessProbe.enabled Enable livenessProbe on Redis&reg; Sentinel nodes
  1058. ## @param sentinel.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
  1059. ## @param sentinel.livenessProbe.periodSeconds Period seconds for livenessProbe
  1060. ## @param sentinel.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
  1061. ## @param sentinel.livenessProbe.failureThreshold Failure threshold for livenessProbe
  1062. ## @param sentinel.livenessProbe.successThreshold Success threshold for livenessProbe
  1063. ##
  1064. livenessProbe:
  1065. enabled: true
  1066. initialDelaySeconds: 20
  1067. periodSeconds: 5
  1068. timeoutSeconds: 5
  1069. successThreshold: 1
  1070. failureThreshold: 5
  1071. ## @param sentinel.readinessProbe.enabled Enable readinessProbe on Redis&reg; Sentinel nodes
  1072. ## @param sentinel.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
  1073. ## @param sentinel.readinessProbe.periodSeconds Period seconds for readinessProbe
  1074. ## @param sentinel.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
  1075. ## @param sentinel.readinessProbe.failureThreshold Failure threshold for readinessProbe
  1076. ## @param sentinel.readinessProbe.successThreshold Success threshold for readinessProbe
  1077. ##
  1078. readinessProbe:
  1079. enabled: true
  1080. initialDelaySeconds: 20
  1081. periodSeconds: 5
  1082. timeoutSeconds: 1
  1083. successThreshold: 1
  1084. failureThreshold: 5
  1085. ## @param sentinel.customStartupProbe Custom startupProbe that overrides the default one
  1086. ##
  1087. customStartupProbe: {}
  1088. ## @param sentinel.customLivenessProbe Custom livenessProbe that overrides the default one
  1089. ##
  1090. customLivenessProbe: {}
  1091. ## @param sentinel.customReadinessProbe Custom readinessProbe that overrides the default one
  1092. ##
  1093. customReadinessProbe: {}
  1094. ## Persistence parameters
  1095. ## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
  1096. ##
  1097. persistence:
  1098. ## @param sentinel.persistence.enabled Enable persistence on Redis&reg; sentinel nodes using Persistent Volume Claims (Experimental)
  1099. ##
  1100. enabled: false
  1101. ## @param sentinel.persistence.storageClass Persistent Volume storage class
  1102. ## If defined, storageClassName: <storageClass>
  1103. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  1104. ## If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner
  1105. ##
  1106. storageClass: ""
  1107. ## @param sentinel.persistence.accessModes Persistent Volume access modes
  1108. ##
  1109. accessModes:
  1110. - ReadWriteOnce
  1111. ## @param sentinel.persistence.size Persistent Volume size
  1112. ##
  1113. size: 100Mi
  1114. ## @param sentinel.persistence.annotations Additional custom annotations for the PVC
  1115. ##
  1116. annotations: {}
  1117. ## @param sentinel.persistence.selector Additional labels to match for the PVC
  1118. ## e.g:
  1119. ## selector:
  1120. ## matchLabels:
  1121. ## app: my-app
  1122. ##
  1123. selector: {}
  1124. ## @param sentinel.persistence.dataSource Custom PVC data source
  1125. ##
  1126. dataSource: {}
  1127. ## @param sentinel.persistence.medium Provide a medium for `emptyDir` volumes.
  1128. ##
  1129. medium: ""
  1130. ## Redis&reg; Sentinel resource requests and limits
  1131. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  1132. ## @param sentinel.resources.limits The resources limits for the Redis&reg; Sentinel containers
  1133. ## @param sentinel.resources.requests The requested resources for the Redis&reg; Sentinel containers
  1134. ##
  1135. resources:
  1136. limits: {}
  1137. requests: {}
  1138. ## Configure Container Security Context
  1139. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  1140. ## @param sentinel.containerSecurityContext.enabled Enabled Redis&reg; Sentinel containers' Security Context
  1141. ## @param sentinel.containerSecurityContext.runAsUser Set Redis&reg; Sentinel containers' Security Context runAsUser
  1142. ##
  1143. containerSecurityContext:
  1144. enabled: true
  1145. runAsUser: 1001
  1146. ## @param sentinel.lifecycleHooks for the Redis&reg; sentinel container(s) to automate configuration before or after startup
  1147. ##
  1148. lifecycleHooks: {}
  1149. ## @param sentinel.extraVolumes Optionally specify extra list of additional volumes for the Redis&reg; Sentinel
  1150. ##
  1151. extraVolumes: []
  1152. ## @param sentinel.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis&reg; Sentinel container(s)
  1153. ##
  1154. extraVolumeMounts: []
  1155. ## Redis&reg; Sentinel service parameters
  1156. ##
  1157. service:
  1158. ## @param sentinel.service.type Redis&reg; Sentinel service type
  1159. ##
  1160. type: ClusterIP
  1161. ## @param sentinel.service.ports.redis Redis&reg; service port for Redis&reg;
  1162. ## @param sentinel.service.ports.sentinel Redis&reg; service port for Redis&reg; Sentinel
  1163. ##
  1164. ports:
  1165. redis: 6379
  1166. sentinel: 26379
  1167. ## @param sentinel.service.nodePorts.redis Node port for Redis&reg;
  1168. ## @param sentinel.service.nodePorts.sentinel Node port for Sentinel
  1169. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  1170. ## NOTE: choose port between <30000-32767>
  1171. ## NOTE: By leaving these values blank, they will be generated by ports-configmap
  1172. ## If setting manually, please leave at least replica.replicaCount + 1 in between sentinel.service.nodePorts.redis and sentinel.service.nodePorts.sentinel to take into account the ports that will be created while incrementing that base port
  1173. ##
  1174. nodePorts:
  1175. redis: ""
  1176. sentinel: ""
  1177. ## @param sentinel.service.externalTrafficPolicy Redis&reg; Sentinel service external traffic policy
  1178. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  1179. ##
  1180. externalTrafficPolicy: Cluster
  1181. ## @param sentinel.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
  1182. ##
  1183. extraPorts: []
  1184. ## @param sentinel.service.clusterIP Redis&reg; Sentinel service Cluster IP
  1185. ##
  1186. clusterIP: ""
  1187. ## @param sentinel.service.loadBalancerIP Redis&reg; Sentinel service Load Balancer IP
  1188. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  1189. ##
  1190. loadBalancerIP: ""
  1191. ## @param sentinel.service.loadBalancerSourceRanges Redis&reg; Sentinel service Load Balancer sources
  1192. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  1193. ## e.g.
  1194. ## loadBalancerSourceRanges:
  1195. ## - 10.10.10.0/24
  1196. ##
  1197. loadBalancerSourceRanges: []
  1198. ## @param sentinel.service.annotations Additional custom annotations for Redis&reg; Sentinel service
  1199. ##
  1200. annotations: {}
  1201. ## @param sentinel.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
  1202. ## If "ClientIP", consecutive client requests will be directed to the same Pod
  1203. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
  1204. ##
  1205. sessionAffinity: None
  1206. ## @param sentinel.service.sessionAffinityConfig Additional settings for the sessionAffinity
  1207. ## sessionAffinityConfig:
  1208. ## clientIP:
  1209. ## timeoutSeconds: 300
  1210. ##
  1211. sessionAffinityConfig: {}
  1212. ## @param sentinel.terminationGracePeriodSeconds Integer setting the termination grace period for the redis-node pods
  1213. ##
  1214. terminationGracePeriodSeconds: 30
  1215. ## @section Other Parameters
  1216. ##
  1217. ## Network Policy configuration
  1218. ## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
  1219. ##
  1220. networkPolicy:
  1221. ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
  1222. ##
  1223. enabled: false
  1224. ## @param networkPolicy.allowExternal Don't require client label for connections
  1225. ## When set to false, only pods with the correct client label will have network access to the ports
  1226. ## Redis&reg; is listening on. When true, Redis&reg; will accept connections from any source
  1227. ## (with the correct destination port).
  1228. ##
  1229. allowExternal: true
  1230. ## @param networkPolicy.extraIngress Add extra ingress rules to the NetworkPolicy
  1231. ## e.g:
  1232. ## extraIngress:
  1233. ## - ports:
  1234. ## - port: 1234
  1235. ## from:
  1236. ## - podSelector:
  1237. ## - matchLabels:
  1238. ## - role: frontend
  1239. ## - podSelector:
  1240. ## - matchExpressions:
  1241. ## - key: role
  1242. ## operator: In
  1243. ## values:
  1244. ## - frontend
  1245. ##
  1246. extraIngress: []
  1247. ## @param networkPolicy.extraEgress Add extra egress rules to the NetworkPolicy
  1248. ## e.g:
  1249. ## extraEgress:
  1250. ## - ports:
  1251. ## - port: 1234
  1252. ## to:
  1253. ## - podSelector:
  1254. ## - matchLabels:
  1255. ## - role: frontend
  1256. ## - podSelector:
  1257. ## - matchExpressions:
  1258. ## - key: role
  1259. ## operator: In
  1260. ## values:
  1261. ## - frontend
  1262. ##
  1263. extraEgress: []
  1264. ## @param networkPolicy.ingressNSMatchLabels Labels to match to allow traffic from other namespaces
  1265. ## @param networkPolicy.ingressNSPodMatchLabels Pod labels to match to allow traffic from other namespaces
  1266. ##
  1267. ingressNSMatchLabels: {}
  1268. ingressNSPodMatchLabels: {}
  1269. ## PodSecurityPolicy configuration
  1270. ## ref: https://kubernetes.io/docs/concepts/policy/pod-security-policy/
  1271. ##
  1272. podSecurityPolicy:
  1273. ## @param podSecurityPolicy.create Whether to create a PodSecurityPolicy. WARNING: PodSecurityPolicy is deprecated in Kubernetes v1.21 or later, unavailable in v1.25 or later
  1274. ##
  1275. create: false
  1276. ## @param podSecurityPolicy.enabled Enable PodSecurityPolicy's RBAC rules
  1277. ##
  1278. enabled: false
  1279. ## RBAC configuration
  1280. ##
  1281. rbac:
  1282. ## @param rbac.create Specifies whether RBAC resources should be created
  1283. ##
  1284. create: false
  1285. ## @param rbac.rules Custom RBAC rules to set
  1286. ## e.g:
  1287. ## rules:
  1288. ## - apiGroups:
  1289. ## - ""
  1290. ## resources:
  1291. ## - pods
  1292. ## verbs:
  1293. ## - get
  1294. ## - list
  1295. ##
  1296. rules: []
  1297. ## ServiceAccount configuration
  1298. ##
  1299. serviceAccount:
  1300. ## @param serviceAccount.create Specifies whether a ServiceAccount should be created
  1301. ##
  1302. create: true
  1303. ## @param serviceAccount.name The name of the ServiceAccount to use.
  1304. ## If not set and create is true, a name is generated using the common.names.fullname template
  1305. ##
  1306. name: ""
  1307. ## @param serviceAccount.automountServiceAccountToken Whether to auto mount the service account token
  1308. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#use-the-default-service-account-to-access-the-api-server
  1309. ##
  1310. automountServiceAccountToken: true
  1311. ## @param serviceAccount.annotations Additional custom annotations for the ServiceAccount
  1312. ##
  1313. annotations: {}
  1314. ## Redis&reg; Pod Disruption Budget configuration
  1315. ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
  1316. ##
  1317. pdb:
  1318. ## @param pdb.create Specifies whether a PodDisruptionBudget should be created
  1319. ##
  1320. create: false
  1321. ## @param pdb.minAvailable Min number of pods that must still be available after the eviction
  1322. ##
  1323. minAvailable: 1
  1324. ## @param pdb.maxUnavailable Max number of pods that can be unavailable after the eviction
  1325. ##
  1326. maxUnavailable: ""
  1327. ## TLS configuration
  1328. ##
  1329. tls:
  1330. ## @param tls.enabled Enable TLS traffic
  1331. ##
  1332. enabled: false
  1333. ## @param tls.authClients Require clients to authenticate
  1334. ##
  1335. authClients: true
  1336. ## @param tls.autoGenerated Enable autogenerated certificates
  1337. ##
  1338. autoGenerated: false
  1339. ## @param tls.existingSecret The name of the existing secret that contains the TLS certificates
  1340. ##
  1341. existingSecret: ""
  1342. ## @param tls.certificatesSecret DEPRECATED. Use existingSecret instead.
  1343. ##
  1344. certificatesSecret: ""
  1345. ## @param tls.certFilename Certificate filename
  1346. ##
  1347. certFilename: ""
  1348. ## @param tls.certKeyFilename Certificate Key filename
  1349. ##
  1350. certKeyFilename: ""
  1351. ## @param tls.certCAFilename CA Certificate filename
  1352. ##
  1353. certCAFilename: ""
  1354. ## @param tls.dhParamsFilename File containing DH params (in order to support DH based ciphers)
  1355. ##
  1356. dhParamsFilename: ""
  1357. ## @section Metrics Parameters
  1358. ##
  1359. metrics:
  1360. ## @param metrics.enabled Start a sidecar prometheus exporter to expose Redis&reg; metrics
  1361. ##
  1362. enabled: false
  1363. ## Bitnami Redis&reg; Exporter image
  1364. ## ref: https://hub.docker.com/r/bitnami/redis-exporter/tags/
  1365. ## @param metrics.image.registry Redis&reg; Exporter image registry
  1366. ## @param metrics.image.repository Redis&reg; Exporter image repository
  1367. ## @param metrics.image.tag Redis&reg; Exporter image tag (immutable tags are recommended)
  1368. ## @param metrics.image.digest Redis&reg; Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  1369. ## @param metrics.image.pullPolicy Redis&reg; Exporter image pull policy
  1370. ## @param metrics.image.pullSecrets Redis&reg; Exporter image pull secrets
  1371. ##
  1372. image:
  1373. registry: docker.io
  1374. repository: bitnami/redis-exporter
  1375. tag: 1.45.0-debian-11-r1
  1376. digest: ""
  1377. pullPolicy: IfNotPresent
  1378. ## Optionally specify an array of imagePullSecrets.
  1379. ## Secrets must be manually created in the namespace.
  1380. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1381. ## e.g:
  1382. ## pullSecrets:
  1383. ## - myRegistryKeySecretName
  1384. ##
  1385. pullSecrets: []
  1386. ## @param metrics.command Override default metrics container init command (useful when using custom images)
  1387. ##
  1388. command: []
  1389. ## @param metrics.redisTargetHost A way to specify an alternative Redis&reg; hostname
  1390. ## Useful for certificate CN/SAN matching
  1391. ##
  1392. redisTargetHost: "localhost"
  1393. ## @param metrics.extraArgs Extra arguments for Redis&reg; exporter, for example:
  1394. ## e.g.:
  1395. ## extraArgs:
  1396. ## check-keys: myKey,myOtherKey
  1397. ##
  1398. extraArgs: {}
  1399. ## @param metrics.extraEnvVars Array with extra environment variables to add to Redis&reg; exporter
  1400. ## e.g:
  1401. ## extraEnvVars:
  1402. ## - name: FOO
  1403. ## value: "bar"
  1404. ##
  1405. extraEnvVars: []
  1406. ## Configure Container Security Context
  1407. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
  1408. ## @param metrics.containerSecurityContext.enabled Enabled Redis&reg; exporter containers' Security Context
  1409. ## @param metrics.containerSecurityContext.runAsUser Set Redis&reg; exporter containers' Security Context runAsUser
  1410. ##
  1411. containerSecurityContext:
  1412. enabled: true
  1413. runAsUser: 1001
  1414. ## @param metrics.extraVolumes Optionally specify extra list of additional volumes for the Redis&reg; metrics sidecar
  1415. ##
  1416. extraVolumes: []
  1417. ## @param metrics.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the Redis&reg; metrics sidecar
  1418. ##
  1419. extraVolumeMounts: []
  1420. ## Redis&reg; exporter resource requests and limits
  1421. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  1422. ## @param metrics.resources.limits The resources limits for the Redis&reg; exporter container
  1423. ## @param metrics.resources.requests The requested resources for the Redis&reg; exporter container
  1424. ##
  1425. resources:
  1426. limits: {}
  1427. requests: {}
  1428. ## @param metrics.podLabels Extra labels for Redis&reg; exporter pods
  1429. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
  1430. ##
  1431. podLabels: {}
  1432. ## @param metrics.podAnnotations [object] Annotations for Redis&reg; exporter pods
  1433. ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
  1434. ##
  1435. podAnnotations:
  1436. prometheus.io/scrape: "true"
  1437. prometheus.io/port: "9121"
  1438. ## Redis&reg; exporter service parameters
  1439. ##
  1440. service:
  1441. ## @param metrics.service.type Redis&reg; exporter service type
  1442. ##
  1443. type: ClusterIP
  1444. ## @param metrics.service.port Redis&reg; exporter service port
  1445. ##
  1446. port: 9121
  1447. ## @param metrics.service.externalTrafficPolicy Redis&reg; exporter service external traffic policy
  1448. ## ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
  1449. ##
  1450. externalTrafficPolicy: Cluster
  1451. ## @param metrics.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
  1452. ##
  1453. extraPorts: []
  1454. ## @param metrics.service.loadBalancerIP Redis&reg; exporter service Load Balancer IP
  1455. ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
  1456. ##
  1457. loadBalancerIP: ""
  1458. ## @param metrics.service.loadBalancerSourceRanges Redis&reg; exporter service Load Balancer sources
  1459. ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
  1460. ## e.g.
  1461. ## loadBalancerSourceRanges:
  1462. ## - 10.10.10.0/24
  1463. ##
  1464. loadBalancerSourceRanges: []
  1465. ## @param metrics.service.annotations Additional custom annotations for Redis&reg; exporter service
  1466. ##
  1467. annotations: {}
  1468. ## Prometheus Service Monitor
  1469. ## ref: https://github.com/coreos/prometheus-operator
  1470. ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
  1471. ##
  1472. serviceMonitor:
  1473. ## @param metrics.serviceMonitor.enabled Create ServiceMonitor resource(s) for scraping metrics using PrometheusOperator
  1474. ##
  1475. enabled: false
  1476. ## @param metrics.serviceMonitor.namespace The namespace in which the ServiceMonitor will be created
  1477. ##
  1478. namespace: ""
  1479. ## @param metrics.serviceMonitor.interval The interval at which metrics should be scraped
  1480. ##
  1481. interval: 30s
  1482. ## @param metrics.serviceMonitor.scrapeTimeout The timeout after which the scrape is ended
  1483. ##
  1484. scrapeTimeout: ""
  1485. ## @param metrics.serviceMonitor.relabellings Metrics RelabelConfigs to apply to samples before scraping.
  1486. ##
  1487. relabellings: []
  1488. ## @param metrics.serviceMonitor.metricRelabelings Metrics RelabelConfigs to apply to samples before ingestion.
  1489. ##
  1490. metricRelabelings: []
  1491. ## @param metrics.serviceMonitor.honorLabels Specify honorLabels parameter to add the scrape endpoint
  1492. ##
  1493. honorLabels: false
  1494. ## @param metrics.serviceMonitor.additionalLabels Additional labels that can be used so ServiceMonitor resource(s) can be discovered by Prometheus
  1495. ##
  1496. additionalLabels: {}
  1497. ## @param metrics.serviceMonitor.podTargetLabels Labels from the Kubernetes pod to be transferred to the created metrics
  1498. ##
  1499. podTargetLabels: []
  1500. ## Custom PrometheusRule to be defined
  1501. ## ref: https://github.com/coreos/prometheus-operator#customresourcedefinitions
  1502. ##
  1503. prometheusRule:
  1504. ## @param metrics.prometheusRule.enabled Create a custom prometheusRule Resource for scraping metrics using PrometheusOperator
  1505. ##
  1506. enabled: false
  1507. ## @param metrics.prometheusRule.namespace The namespace in which the prometheusRule will be created
  1508. ##
  1509. namespace: ""
  1510. ## @param metrics.prometheusRule.additionalLabels Additional labels for the prometheusRule
  1511. ##
  1512. additionalLabels: {}
  1513. ## @param metrics.prometheusRule.rules Custom Prometheus rules
  1514. ## e.g:
  1515. ## rules:
  1516. ## - alert: RedisDown
  1517. ## expr: redis_up{service="{{ template "common.names.fullname" . }}-metrics"} == 0
  1518. ## for: 2m
  1519. ## labels:
  1520. ## severity: error
  1521. ## annotations:
  1522. ## summary: Redis&reg; instance {{ "{{ $labels.instance }}" }} down
  1523. ## description: Redis&reg; instance {{ "{{ $labels.instance }}" }} is down
  1524. ## - alert: RedisMemoryHigh
  1525. ## expr: >
  1526. ## redis_memory_used_bytes{service="{{ template "common.names.fullname" . }}-metrics"} * 100
  1527. ## /
  1528. ## redis_memory_max_bytes{service="{{ template "common.names.fullname" . }}-metrics"}
  1529. ## > 90
  1530. ## for: 2m
  1531. ## labels:
  1532. ## severity: error
  1533. ## annotations:
  1534. ## summary: Redis&reg; instance {{ "{{ $labels.instance }}" }} is using too much memory
  1535. ## description: |
  1536. ## Redis&reg; instance {{ "{{ $labels.instance }}" }} is using {{ "{{ $value }}" }}% of its available memory.
  1537. ## - alert: RedisKeyEviction
  1538. ## expr: |
  1539. ## increase(redis_evicted_keys_total{service="{{ template "common.names.fullname" . }}-metrics"}[5m]) > 0
  1540. ## for: 1s
  1541. ## labels:
  1542. ## severity: error
  1543. ## annotations:
  1544. ## summary: Redis&reg; instance {{ "{{ $labels.instance }}" }} has evicted keys
  1545. ## description: |
  1546. ## Redis&reg; instance {{ "{{ $labels.instance }}" }} has evicted {{ "{{ $value }}" }} keys in the last 5 minutes.
  1547. ##
  1548. rules: []
  1549. ## @section Init Container Parameters
  1550. ##
  1551. ## 'volumePermissions' init container parameters
  1552. ## Changes the owner and group of the persistent volume mount point to runAsUser:fsGroup values
  1553. ## based on the *podSecurityContext/*containerSecurityContext parameters
  1554. ##
  1555. volumePermissions:
  1556. ## @param volumePermissions.enabled Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup`
  1557. ##
  1558. enabled: false
  1559. ## Bitnami Shell image
  1560. ## ref: https://hub.docker.com/r/bitnami/bitnami-shell/tags/
  1561. ## @param volumePermissions.image.registry Bitnami Shell image registry
  1562. ## @param volumePermissions.image.repository Bitnami Shell image repository
  1563. ## @param volumePermissions.image.tag Bitnami Shell image tag (immutable tags are recommended)
  1564. ## @param volumePermissions.image.digest Bitnami Shell image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  1565. ## @param volumePermissions.image.pullPolicy Bitnami Shell image pull policy
  1566. ## @param volumePermissions.image.pullSecrets Bitnami Shell image pull secrets
  1567. ##
  1568. image:
  1569. registry: docker.io
  1570. repository: bitnami/bitnami-shell
  1571. tag: 11-debian-11-r48
  1572. digest: ""
  1573. pullPolicy: IfNotPresent
  1574. ## Optionally specify an array of imagePullSecrets.
  1575. ## Secrets must be manually created in the namespace.
  1576. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1577. ## e.g:
  1578. ## pullSecrets:
  1579. ## - myRegistryKeySecretName
  1580. ##
  1581. pullSecrets: []
  1582. ## Init container's resource requests and limits
  1583. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  1584. ## @param volumePermissions.resources.limits The resources limits for the init container
  1585. ## @param volumePermissions.resources.requests The requested resources for the init container
  1586. ##
  1587. resources:
  1588. limits: {}
  1589. requests: {}
  1590. ## Init container Container Security Context
  1591. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
  1592. ## @param volumePermissions.containerSecurityContext.runAsUser Set init container's Security Context runAsUser
  1593. ## NOTE: when runAsUser is set to special value "auto", init container will try to chown the
  1594. ## data folder to auto-determined user&group, using commands: `id -u`:`id -G | cut -d" " -f2`
  1595. ## "auto" is especially useful for OpenShift which has scc with dynamic user ids (and 0 is not allowed)
  1596. ##
  1597. containerSecurityContext:
  1598. runAsUser: 0
  1599. ## init-sysctl container parameters
  1600. ## used to perform sysctl operation to modify Kernel settings (needed sometimes to avoid warnings)
  1601. ##
  1602. sysctl:
  1603. ## @param sysctl.enabled Enable init container to modify Kernel settings
  1604. ##
  1605. enabled: false
  1606. ## Bitnami Shell image
  1607. ## ref: https://hub.docker.com/r/bitnami/bitnami-shell/tags/
  1608. ## @param sysctl.image.registry Bitnami Shell image registry
  1609. ## @param sysctl.image.repository Bitnami Shell image repository
  1610. ## @param sysctl.image.tag Bitnami Shell image tag (immutable tags are recommended)
  1611. ## @param sysctl.image.digest Bitnami Shell image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
  1612. ## @param sysctl.image.pullPolicy Bitnami Shell image pull policy
  1613. ## @param sysctl.image.pullSecrets Bitnami Shell image pull secrets
  1614. ##
  1615. image:
  1616. registry: docker.io
  1617. repository: bitnami/bitnami-shell
  1618. tag: 11-debian-11-r48
  1619. digest: ""
  1620. pullPolicy: IfNotPresent
  1621. ## Optionally specify an array of imagePullSecrets.
  1622. ## Secrets must be manually created in the namespace.
  1623. ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
  1624. ## e.g:
  1625. ## pullSecrets:
  1626. ## - myRegistryKeySecretName
  1627. ##
  1628. pullSecrets: []
  1629. ## @param sysctl.command Override default init-sysctl container command (useful when using custom images)
  1630. ##
  1631. command: []
  1632. ## @param sysctl.mountHostSys Mount the host `/sys` folder to `/host-sys`
  1633. ##
  1634. mountHostSys: false
  1635. ## Init container's resource requests and limits
  1636. ## ref: https://kubernetes.io/docs/user-guide/compute-resources/
  1637. ## @param sysctl.resources.limits The resources limits for the init container
  1638. ## @param sysctl.resources.requests The requested resources for the init container
  1639. ##
  1640. resources:
  1641. limits: {}
  1642. requests: {}
  1643. ## @section useExternalDNS Parameters
  1644. ##
  1645. ## @param useExternalDNS.enabled Enable various syntax that would enable external-dns to work. Note this requires a working installation of `external-dns` to be usable.
  1646. ## @param useExternalDNS.additionalAnnotations Extra annotations to be utilized when `external-dns` is enabled.
  1647. ## @param useExternalDNS.annotationKey The annotation key utilized when `external-dns` is enabled. Setting this to `false` will disable annotations.
  1648. ## @param useExternalDNS.suffix The DNS suffix utilized when `external-dns` is enabled. Note that we prepend the suffix with the full name of the release.
  1649. ##
  1650. useExternalDNS:
  1651. enabled: false
  1652. suffix: ""
  1653. annotationKey: external-dns.alpha.kubernetes.io/
  1654. additionalAnnotations: {}