RedisCluster
| Property | Value |
|---|---|
| Google Cloud Service Name | Cloud Memorystore for Redis |
| Google Cloud Service Documentation | /memorystore/docs/redis/ |
| Google Cloud REST Resource Name | v1.projects.locations.instances |
| Google Cloud REST Resource Documentation | /memorystore/docs/redis/reference/rest/v1/projects.locations.instances |
| Config Connector Resource Short Names | gcprediscluster gcpredisclusters rediscluster |
| Config Connector Service Name | redis.googleapis.com |
| Config Connector Resource Fully Qualified Name | redisclusters.redis.cnrm.cloud.google.com |
| Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
| Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Spec
Schema
authorizationMode: string
automatedBackupConfig:
automatedBackupMode: string
fixedFrequencySchedule:
startTime:
hours: integer
minutes: integer
nanos: integer
seconds: integer
retention: string
deletionProtectionEnabled: boolean
kmsKeyRef:
external: string
name: string
namespace: string
location: string
maintenancePolicy:
weeklyMaintenanceWindow:
- day: string
startTime:
hours: integer
minutes: integer
nanos: integer
seconds: integer
nodeType: string
persistenceConfig:
aofConfig:
appendFsync: string
mode: string
rdbConfig:
rdbSnapshotPeriod: string
rdbSnapshotStartTime: string
projectRef:
external: string
kind: string
name: string
namespace: string
pscConfigs:
- networkRef:
external: string
name: string
namespace: string
redisConfigs:
string: string
replicaCount: integer
resourceID: string
shardCount: integer
transitEncryptionMode: string
zoneDistributionConfig:
mode: string
zone: string
| Fields | |
|---|---|
|
Optional |
Optional. The authorization mode of the Redis cluster. If not provided, auth feature is disabled for the cluster. |
|
Optional |
Optional. The automated backup config for the cluster. |
|
Optional |
Optional. The automated backup mode. If the mode is disabled, the other fields will be ignored. |
|
Optional |
Optional. Trigger automated backups at a fixed frequency. |
|
Optional |
Required. The start time of every automated backup in UTC. It must be set to the start of an hour. This field is required. |
|
Optional |
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
|
Optional |
Minutes of hour of day. Must be from 0 to 59. |
|
Optional |
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
|
Optional |
Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. |
|
Optional |
Optional. How long to keep automated backups before the backups are deleted. The value should be between 1 day and 365 days. If not specified, the default value is 35 days. |
|
Optional |
Optional. The delete operation will fail when the value is set to true. |
|
Optional |
Optional. The KMS key name to encrypt data at rest. |
|
Optional |
A reference to an externally managed KMSCryptoKey. Should be in the format `projects/[kms_project_id]/locations/[region]/keyRings/[key_ring_id]/cryptoKeys/[key]`. |
|
Optional |
The `name` of a `KMSCryptoKey` resource. |
|
Optional |
The `namespace` of a `KMSCryptoKey` resource. |
|
Required* |
Immutable. Location of the resource. |
|
Optional |
Optional. ClusterMaintenancePolicy determines when to allow or deny updates. |
|
Optional |
Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_maintenance_window is expected to be one. |
|
Optional |
|
|
Optional |
Allows to define schedule that runs specified day of the week. |
|
Optional |
Start time of the window in UTC. |
|
Optional |
Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. |
|
Optional |
Minutes of hour of day. Must be from 0 to 59. |
|
Optional |
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
|
Optional |
Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. |
|
Optional |
Optional. The type of a redis node in the cluster. NodeType determines the underlying machine-type of a redis node. |
|
Optional |
Optional. Persistence config (RDB, AOF) for the cluster. |
|
Optional |
Optional. AOF configuration. This field will be ignored if mode is not AOF. |
|
Optional |
Optional. fsync configuration. |
|
Optional |
Optional. The mode of persistence. |
|
Optional |
Optional. RDB configuration. This field will be ignored if mode is not RDB. |
|
Optional |
Optional. Period between RDB snapshots. |
|
Optional |
Optional. The time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used. |
|
Required* |
Immutable. The Project that this resource belongs to. |
|
Optional |
The `projectID` field of a project, when not managed by Config Connector. |
|
Optional |
The kind of the Project resource; optional but must be `Project` if provided. |
|
Optional |
The `name` field of a `Project` resource. |
|
Optional |
The `namespace` field of a `Project` resource. |
|
Optional |
Required. Each PscConfig configures the consumer network where IPs will be designated to the cluster for client access through Private Service Connect Automation. Currently, only one PscConfig is supported. |
|
Optional |
|
|
Required* |
Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}. |
|
Optional |
A reference to an externally managed ComputeNetwork resource. Should be in the format "projects/{{projectID}}/global/networks/{{networkID}}". |
|
Optional |
The name of a ComputeNetwork resource. |
|
Optional |
The namespace of a ComputeNetwork resource. |
|
Optional |
Optional. Key/Value pairs of customer overrides for mutable Redis Configs |
|
Optional |
Optional. The number of replica nodes per shard. |
|
Optional |
The RedisCluster name. If not given, the metadata.name will be used. |
|
Optional |
Required. Number of shards for the Redis cluster. |
|
Optional |
Optional. The in-transit encryption for the Redis cluster. If not provided, encryption is disabled for the cluster. |
|
Optional |
Optional. This config will be used to determine how the customer wants us to distribute cluster resources within the region. |
|
Optional |
Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified. |
|
Optional |
Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters. |
* Field is required when parent field is specified
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
externalRef: string
observedGeneration: integer
observedState:
createTime: string
discoveryEndpoints:
- address: string
port: integer
pscConfig:
network: string
encryptionInfo:
encryptionType: string
kmsKeyPrimaryState: string
kmsKeyVersions:
- string
lastUpdateTime: string
maintenancePolicy:
createTime: string
updateTime: string
maintenanceSchedule:
endTime: string
startTime: string
preciseSizeGb: float
pscConnections:
- address: string
forwardingRule: string
network: string
projectID: string
pscConnectionID: string
serviceAttachment: string
pscServiceAttachments:
- connectionType: string
serviceAttachment: string
sizeGb: integer
state: string
stateInfo:
updateInfo:
targetReplicaCount: integer
targetShardCount: integer
uid: string
| Fields | |
|---|---|
conditions |
Conditions represent the latest available observations of the object's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
externalRef |
A unique specifier for the RedisCluster resource in Google Cloud. |
observedGeneration |
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. |
observedState |
ObservedState is the state of the resource as most recently observed in Google Cloud. |
observedState.createTime |
Output only. The timestamp associated with the cluster creation request. |
observedState.discoveryEndpoints |
Output only. Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one discovery endpoint is supported. |
observedState.discoveryEndpoints[] |
|
observedState.discoveryEndpoints[].address |
Output only. Address of the exposed Redis endpoint used by clients to connect to the service. The address could be either IP or hostname. |
observedState.discoveryEndpoints[].port |
Output only. The port number of the exposed Redis endpoint. |
observedState.discoveryEndpoints[].pscConfig |
Output only. Customer configuration for where the endpoint is created and accessed from. |
observedState.discoveryEndpoints[].pscConfig.network |
Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}. |
observedState.encryptionInfo |
Output only. Encryption information for the client to retrieve. |
observedState.encryptionInfo.encryptionType |
Output only. Type of encryption. |
observedState.encryptionInfo.kmsKeyPrimaryState |
Output only. The state of the primary version of the KMS key perceived by the system. This field is not populated in backups. |
observedState.encryptionInfo.kmsKeyVersions |
Output only. KMS key versions that are being used to protect the data at-rest. |
observedState.encryptionInfo.kmsKeyVersions[] |
|
observedState.encryptionInfo.lastUpdateTime |
Output only. The most recent time when the encryption info was updated. |
observedState.maintenancePolicy |
Optional. ClusterMaintenancePolicy determines when to allow or deny updates. |
observedState.maintenancePolicy.createTime |
Output only. The time when the policy was created i.e. Maintenance Window or Deny Period was assigned. |
observedState.maintenancePolicy.updateTime |
Output only. The time when the policy was updated i.e. Maintenance Window or Deny Period was updated. |
observedState.maintenanceSchedule |
Output only. ClusterMaintenanceSchedule Output only Published maintenance schedule. |
observedState.maintenanceSchedule.endTime |
Output only. The end time of any upcoming scheduled maintenance for this instance. |
observedState.maintenanceSchedule.startTime |
Output only. The start time of any upcoming scheduled maintenance for this instance. |
observedState.preciseSizeGb |
Output only. Precise value of redis memory size in GB for the entire cluster. |
observedState.pscConnections |
Output only. PSC connections for discovery of the cluster topology and accessing the cluster. |
observedState.pscConnections[] |
|
observedState.pscConnections[].address |
Required. The IP allocated on the consumer network for the PSC forwarding rule. |
observedState.pscConnections[].forwardingRule |
Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. |
observedState.pscConnections[].network |
Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}. |
observedState.pscConnections[].projectID |
Optional. Project ID of the consumer project where the forwarding rule is created in. |
observedState.pscConnections[].pscConnectionID |
Required. The PSC connection id of the forwarding rule connected to the service attachment. |
observedState.pscConnections[].serviceAttachment |
Required. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}. |
observedState.pscServiceAttachments |
Output only. Service attachment details to configure Psc connections. |
observedState.pscServiceAttachments[] |
|
observedState.pscServiceAttachments[].connectionType |
Output only. Type of a PSC connection targeting this service attachment. |
observedState.pscServiceAttachments[].serviceAttachment |
Output only. Service attachment URI which your self-created PscConnection should use as target |
observedState.sizeGb |
Output only. Redis memory size in GB for the entire cluster rounded up to the next integer. |
observedState.state |
Output only. The current state of this cluster. Can be CREATING, READY, UPDATING, DELETING and SUSPENDED |
observedState.stateInfo |
Output only. Additional information about the current state of the cluster. |
observedState.stateInfo.updateInfo |
Describes ongoing update on the cluster when cluster state is UPDATING. |
observedState.stateInfo.updateInfo.targetReplicaCount |
Target number of replica nodes per shard. |
observedState.stateInfo.updateInfo.targetShardCount |
Target number of shards for redis cluster |
observedState.uid |
Output only. System assigned, unique identifier for the cluster. |
Sample YAML(s)
Typical Use Case
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: redis.cnrm.cloud.google.com/v1beta1
kind: RedisCluster
metadata:
labels:
label-one: "value-one"
name: rediscluster-sample
spec:
shardCount: 6
pscConfigs:
- networkRef:
name: rediscluster-dep
location: us-central1
projectRef:
external: ${PROJECT_ID?}
replicaCount: 2
nodeType: REDIS_STANDARD_SMALL
transitEncryptionMode: TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION
authorizationMode: AUTH_MODE_IAM_AUTH
redisConfigs:
maxmemory-policy: volatile-ttl
zoneDistributionConfig:
mode: SINGLE_ZONE
zone: us-central1-b
persistenceConfig:
mode: AOF
aofConfig:
appendFsync: EVERYSEC
deletionProtectionEnabled: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: rediscluster-dep
spec:
description: Test network for the project
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: rediscluster-dep
spec:
ipCidrRange: 10.128.0.0/20
region: us-central1
networkRef:
name: rediscluster-dep
---
apiVersion: networkconnectivity.cnrm.cloud.google.com/v1alpha1
kind: NetworkConnectivityServiceConnectionPolicy
metadata:
name: rediscluster-dep
labels:
label-one: "value-one"
spec:
projectRef:
external: ${PROJECT_ID?}
location: us-central1
serviceClass: "gcp-memorystore-redis"
description: "Service Connection Policy for redis"
networkRef:
name: rediscluster-dep
pscConfig:
subnetworkRefs:
- name: rediscluster-dep