阿里云 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_name | Redis instance user account name | string | false | |
instance_name | Redis instance name | string | false | |
password | RDS instance account password | string | false | |
writeConnectionSecretToRef | The secret which the cloud resource connection will be written to | writeConnectionSecretToRef | false |
writeConnectionSecretToRef
名称 | 描述 | 类型 | 是否必须 | 默认值 |
---|---|---|---|---|
name | The secret name which the cloud resource connection will be written to | string | true | |
namespace | The secret namespace which the cloud resource connection will be written to | string | false |
输出
如果设置了 writeConnectionSecretToRef
,一个 Kubernetes Secret 将会被创建,并且,它的数据里有这些键(key):
名称 | 描述 |
---|---|
REDIS_CONNECT_ADDRESS | Redis connect address |
REDIS_NAME | Redis instance name |
REDIS_PASSWORD | Redis password |
REDIS_USER | Redis user |
RESOURCE_IDENTIFIER | The identifier of the resource |