|
| 1 | ++++ |
| 2 | +date = '2025-01-30T18:19:08-05:00' |
| 3 | +draft = false |
| 4 | +title = 'Configuration Options' |
| 5 | ++++ |
| 6 | + |
| 7 | +# Configuration Options |
| 8 | + |
| 9 | +This page describes the configuration options available for instatiating a new Valkey Cluster. |
| 10 | + |
| 11 | +```yaml |
| 12 | +apiVersion: hyperspike.io/v1 |
| 13 | +kind: Valkey |
| 14 | +metadata: |
| 15 | + labels: |
| 16 | + app.kubernetes.io/name: keyval |
| 17 | + name: keyval |
| 18 | +spec: |
| 19 | + # the number of master nodes in the cluster |
| 20 | + nodes: 3 |
| 21 | + # the number of replicas per master node |
| 22 | + replicas: 0 |
| 23 | + # the resource requests and limits for the Valkey Container |
| 24 | + resources: |
| 25 | + limits: |
| 26 | + cpu: 100m |
| 27 | + memory: 128Mi |
| 28 | + requests: |
| 29 | + cpu: 100m |
| 30 | + memory: 128Mi |
| 31 | + # boolean value to enable or disable TLS, cert-manager is required for TLS |
| 32 | + tls: true |
| 33 | + # the cert issuer to use for the Valkey Container |
| 34 | + certIssuer: selfsigned |
| 35 | + # the cert issuer type to use for the Valkey Container (ClusterIssuer or Issuer) |
| 36 | + certIssuerType: ClusterIssuer |
| 37 | + # Enalbe or disable external access to the Valkey Container |
| 38 | + externalAccess: |
| 39 | + # boolean value to enable or disable external access |
| 40 | + enabled: false |
| 41 | + # the type of service to use for external access (LoadBalancer or Proxy) |
| 42 | + type: LoadBalancer |
| 43 | + certIssuer: selfsigned |
| 44 | + certIssuerType: ClusterIssuer |
| 45 | + type: LoadBalancer |
| 46 | + loadBalancer: |
| 47 | + annotations: |
| 48 | + cert-manager.io/cluster-issuer: selfsigned |
| 49 | + proxy: |
| 50 | + annotations: |
| 51 | + cert-manager.io/cluster-issuer: selfsigned |
| 52 | + extraConfig: | |
| 53 | + proxy_buffer_size 128k; |
| 54 | + proxy_buffers 4 256k; |
| 55 | + proxy_busy_buffers_size 256k; |
| 56 | + hostname: valkey.example.com |
| 57 | + image: envoyproxy/envoy:v1.19-latest |
| 58 | + replicas: 1 |
| 59 | + resources: |
| 60 | + limits: |
| 61 | + cpu: 100m |
| 62 | + memory: 128Mi |
| 63 | + requests: |
| 64 | + cpu: 100m |
| 65 | + memory: 128Mi |
| 66 | + # Volume Permissions ensures that the PVC volume ownership is set to the correct user |
| 67 | + volumePermissions: true |
| 68 | + # the image to use for the Valkey Sidecar Container/Exporter image |
| 69 | + exporterImage: ghcr.io/hyperspike/valkey-sidecar:latest |
| 70 | + # the image to use for the Valkey Container |
| 71 | + image: ghcr.io/hyperspike/valkey:latest |
| 72 | + # Enable or disable the Prometheus metrics endpoint requires servicemonitor crd (proetheus-operator|alloy) to be installed |
| 73 | + prometheus: true |
| 74 | + # the Prometheus metric labels to be used to target the correct prometheus instance |
| 75 | + prometheusLabels: |
| 76 | + prometheus: prometheus |
| 77 | + # the PVC object template to use for the Valkey Containers (corev1.PersistentVolumeClaim is used) |
| 78 | + storage: |
| 79 | + labels: |
| 80 | + custome: label |
| 81 | + spec: |
| 82 | + accessModes: |
| 83 | + - ReadWriteOnce |
| 84 | + resources: |
| 85 | + requests: |
| 86 | + storage: 1Gi |
| 87 | + storageClassName: standard |
| 88 | +``` |
0 commit comments