I am using redisearch docker image on kubernetes and need to create 2 indexes with FT.CREATE
What are the possible ways to create these indexes so they are available when the container starts?
I tried using “command” in the spec and did not manage to have the pod starting. Thanks in advance
apiVersion: v1
kind: Service
metadata:
name: redisearch-service
namespace: default
labels:
app: redisearch-svc
spec:
selector:
app: redisearch-app
type: ClusterIP
ports:
- name: redis-service
port: 6379
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redisearch
namespace: default
labels:
app: redisearch
spec:
selector:
matchLabels:
app: redisearch-app
replicas: 1
template:
metadata:
labels:
app: redisearch-app
spec:
containers:
- name: redisearch
image: redislabs/redisearch:latest
ports:
- containerPort: 6379