RedisLabs / redis-enterprise-k8s-docs

154 stars 91 forks source link

Unable to create the DB service using the DBSpec YAML in redis enterprise on Openshift #141

Closed sudarshntn closed 3 years ago

sudarshntn commented 4 years ago

Problem Description: I am trying to create the Redis DB using the YAML route by apply the redis db YAML into the Openshift 4.4 Cluster where I already have Redis Enterprise Cluster running by using the documentation and YAML's provided by RedisLab -- https://github.com/RedisLabs/redis-enterprise-k8s-docs/blob/master/openshift/redis-enterprise-cluster_rhel.yaml and other required YAML as per the document.(https://github.com/RedisLabs/redis-enterprise-k8s-docs#installation-on-openshift)

Now post setup of Redis Enterprise Cluster I want to create few databases using the YAML route and I am able to create the redb entries but the issue is that it is not creating the required services and hence when I login to the Redis UI I am not able to view the DB or able to access the DB created by the YAML.

DB YAML sample used is as below:

`apiVersion: app.redislabs.com/v1alpha1 kind: RedisEnterpriseDatabase metadata: name: testdb1 spec: redisEnterpriseCluster: name: redis-enterprise memorySize: 100MB replication: true databaseSecretName: dbaascred1 tlsMode: enabled host: testdb1 port: 17123 clientAuthenticationCertificates:

Kindly let me know how I can get the service automatically created when I create the DB using the YAML and get the db accessible.

When I create the DB using UI it creates the service but I can't see it in the kubectl -n <redis ent name space> get redb

laurentdroin commented 4 years ago

Hi Sudarshan,

Creating a database in the UI is done outside of Kubernetes' control and therefore the database will not be managed by the Redis Enterprise DB controller (which is why you won't have a corresponding REDB resource). But a successfully created REDB object should show a database in the Redis Enterprise UI. There was probably a problem at the REDB creation. Can you generate a Support Package by running the https://github.com/RedisLabs/redis-enterprise-k8s-docs/blob/master/log_collector/log_collector.py script and open a Support Ticket with Redis Labs' Support ?

yuvallevy2 commented 3 years ago

thanks @sudarshntn closing due to inactivity assuming support was contacted