ucloud / redis-cluster-operator

Redis Cluster Operator creates and manages Redis Clusters atop Kubernetes.
Apache License 2.0
380 stars 138 forks source link

PostStartHookError #76

Closed shixinghong closed 3 years ago

shixinghong commented 3 years ago

I want to use the definition password , then I have changed the "custom-password.yaml" ,Change the password: MWYyZDFlMmU2N2Rm to password: MTIzNDU2Cg==
kubeclt apply -f custom-password.yaml ,There's an error "PostStartHookError: command '/bin/sh -c echo ${REDIS_PASSWORD} > /data/redis_password' exited with 126: 0 " kubectl logs -f drc-redis-cluster-0-0 ,like this ` FATAL CONFIG FILE ERROR Reading the configuration file, at line 4

'requirepass '123456' Unbalanced quotes in configuration line `

xmanta commented 3 years ago

I want to use the definition password , then I have changed the "custom-password.yaml" ,Change the password: MWYyZDFlMmU2N2Rm to password: MTIzNDU2Cg== kubeclt apply -f custom-password.yaml ,There's an error "PostStartHookError: command '/bin/sh -c echo ${REDIS_PASSWORD} > /data/redis_password' exited with 126: 0 " kubectl logs -f drc-redis-cluster-0-0 ,like this ` FATAL CONFIG FILE ERROR Reading the configuration file, at line 4

'requirepass '123456' Unbalanced quotes in configuration line `

you can use stringData

shixinghong commented 3 years ago

I have solved it,thx !