-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
got an error when applying envoyfilter-redis-proxy.yaml #1
Comments
@drmy I just tried it on Istio 1.8.0 and it works. What's the output of |
Hi @zhaohuabing , Thank you for your help. I tested it on Istio 1.8.1 and got the following errors. And with the Istio 1.8.1, do we still apply the instruction of Envoy Redis Proxy? [root@kubemaster221 istio-redis-culster]# sed -i .bak "s/${REDIS_VIP}/ |
No, we don't need to inject sidecar in the redis side because the envoyfilter only add redis proxy at the client side.
No, we wo don't need to apply the crd because the REPLACE operation has already been supported in 1.8
|
Hi @zhaohuabing , I followed your guide and made more attempts in my other labs and still failed at verification with the errors below. redis-cluster:6379> set c c [root@kubemaster231 istio-redis-culster]# kubectl exec -it redis-cluster-0 -c redis -n redis -- redis-cli cluster info |
It can be tricky to configure Istio and Envoy manually to support Redis. I have created project Aeraki to support layer-7 protocols in an Istio service mesh. Thrift, Dubbo, Kafka, Zookeeper have been implemented, Redis is on the way. |
Great! I will take a look at this project and learn from it. |
Hi @zhaohuabing I got similar error with Istio 1.8.1. I've not applied CRD for REPLACE op.
|
It seems that the default tcp filter has not been replaced by an Redis proxy. You can check the config dump of the day proxy. |
How do you check it? |
@rhzs @drmy Redis has been supported in Aeraki https://github.com/aeraki-framework/aeraki/blob/master/docs/zh/redis.md |
Hi @zhaohuabing , |
Hi , Any ideas to get the REDIS_VIP without using kubectl? |
Aeraki (https://github.com/aeraki-framework/aeraki) can help with that. It's a control plane component working alongside Istio, automatically generating the configuration for redis proxies in the data plane. By using Aeraki, you don't have to worry about how to keep vip updated in the Envoy configuration, because Aeraki takes care of it for you. Aeraki also provides user friendly k8s crd An example can be found here: https://github.com/aeraki-framework/aeraki/tree/master/test/e2e/redis |
I am getting the same error , also check config dump , I can see tcp proxy has been replaced. |
Hi Huabing,
Happy New Year!
I really appreciate your work. Because I am also trying to implement the similar thing for my work. I've got an issue when following the instructions here. I've not got enough time to figure it out but just want to firstly send you my issue.
So, I actually have installed the latest Istio 1.8.1 on my k8s cluster. I know your REPLACE PR has been merged to this release, and I am not sure if this post is still available for 1.8.1.
And then my issue is that, when I was running the following command:
kubectl apply -f istio/envoyfilter-redis-proxy.yaml
I got the following error:
Error from server: error when creating "istio/envoyfilter-redis-proxy.yaml": admission webhook "validation.istio.io" denied the request: error decoding configuration: unknown value "REPLACE" for enum istio.networking.v1alpha3.EnvoyFilter_Patch_Operation
I am wondering if this resource has already been integrated into 1.8.1 or if I need to update the yaml file so as to apply it successfully?
BTW. I am running your solution is because I found that the bitnami/redis and bitnami/redis-cluster helm chart don't work well when Istio is enabled, therefore I am looking at your redis solution for my Istio environment.
Thank you very much!
@drmy
The text was updated successfully, but these errors were encountered: