Perhaps you could make the associated changes on container create, using the redis-cli? There’s a great kubernetes document on adding command arguments to a container.
In this case we’d want to look at something like:
containers:
Depending on your use, you may want to look at adding a shell script to the container as a mount, so that you can run an FT.INFO to determine if the index exists. FT.INFO will fail if no index exists, and will pass if it does.
How can I create these 2 indexes with args for the first option suggested?
FT.CREATE topic-h3-idx ON HASH PREFIX 1 DEVLOC: SCHEMA topic TEXT h3r0 TAG h3r1 TAG h3r2 TAG h3r3 TAG h3r4 TAG h3r5 TAG h3r6 TAG h3r7 TAG h3r8 TAG h3r9 TAG h3r10 TAG h3r11 TAG h3r12 TAG h3r13 TAG h3r14 TAG h3r15 TAG dts NUMERIC batt NUMERIC fv TEXT
FT.CREATE topic-lnglat-idx ON HASH PREFIX 1 DEVLOC: SCHEMA topic TEXT lnglat GEO dts NUMERIC batt NUMERIC fv TEXT