Minimal Redis from Operator » Historie » Zyklus 1
Peter Pfläging, 11.04.2022 07:31
| 1 | 1 | Peter Pfläging | # Minimal Redis from Operator |
|---|---|---|---|
| 2 | |||
| 3 | Very much new workload inside OPenShift / OKD or Kubernetes using Redis as distributed cache or session storage. |
||
| 4 | |||
| 5 | To address this there's an operator (https://) |
||
| 6 | |||
| 7 | ```yaml |
||
| 8 | apiVersion: redis.redis.opstreelabs.in/v1beta1 |
||
| 9 | kind: Redis |
||
| 10 | metadata: |
||
| 11 | name: redis-standalone |
||
| 12 | spec: |
||
| 13 | kubernetesConfig: |
||
| 14 | image: 'quay.io/opstree/redis:v6.2.5' |
||
| 15 | imagePullPolicy: IfNotPresent |
||
| 16 | resources: |
||
| 17 | limits: |
||
| 18 | cpu: 101m |
||
| 19 | memory: 128Mi |
||
| 20 | requests: |
||
| 21 | cpu: 101m |
||
| 22 | memory: 128Mi |
||
| 23 | serviceType: ClusterIP |
||
| 24 | redisExporter: |
||
| 25 | enabled: false |
||
| 26 | image: 'quay.io/opstree/redis-exporter:1.0' |
||
| 27 | storage: |
||
| 28 | volumeClaimTemplate: |
||
| 29 | spec: |
||
| 30 | resources: |
||
| 31 | requests: |
||
| 32 | storage: 1Gi |
||
| 33 | storageClassName: rook-ceph-block |
||
| 34 | ``` |