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 | 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
deletionProtectionEnabled: boolean
location: string
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 delete operation will fail when the value is set to true. |
Required* |
Immutable. Location of the resource. |
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 Compute Network resource. Should be in the format `projects/{{projectID}}/global/networks/{{network}}`. |
Optional |
The `name` field of a `ComputeNetwork` resource. |
Optional |
The `namespace` field 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
preciseSizeGb: float
pscConnections:
- address: string
forwardingRule: string
network: string
projectID: string
pscConnectionID: 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 GCP. |
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 GCP. |
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.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 |
Output only. The IP allocated on the consumer network for the PSC forwarding rule. |
observedState.pscConnections[].forwardingRule |
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. |
observedState.pscConnections[].network |
The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}. |
observedState.pscConnections[].projectID |
Output only. The consumer project_id where the forwarding rule is created from. |
observedState.pscConnections[].pscConnectionID |
Output only. The PSC connection id of the forwarding rule connected to the service attachment. |
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