Skip to main content
版本:v1.2

阿里云 REDIS

描述

用于部署阿里云 Redis 的组件说明

示例

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: redis-cloud-source
spec:
components:
- name: sample-redis
type: alibaba-redis
properties:
instance_name: oam-redis
account_name: oam
password: Xyfff83jfewGGfaked
writeConnectionSecretToRef:
name: redis-conn

参数说明

属性

名称描述类型是否必须默认值
account_nameRedis instance user account namestringfalse
instance_nameRedis instance namestringfalse
passwordRDS instance account passwordstringfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef

名称描述类型是否必须默认值
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

输出

如果设置了 writeConnectionSecretToRef,一个 Kubernetes Secret 将会被创建,并且,它的数据里有这些键(key):

名称描述
REDIS_CONNECT_ADDRESSRedis connect address
REDIS_NAMERedis instance name
REDIS_PASSWORDRedis password
REDIS_USERRedis user
RESOURCE_IDENTIFIERThe identifier of the resource