Kubernetes and CloudFlare

Posted February 17, 2019 1.7k views

Hi everyone,

I’m searching for a solution to protect an api running with kubernetes on Digital Ocean.

I didn’t found anything about the new Kubernetes hosting (LTD), DDoS protection and DigitalOcean in the same place…

I’m playing around right now, I would like to protect it from DDOS attacks.

Do you have some documentation or tutorial or tips to implement a way to hide/protect an API with the new Kubernetes hosting of DO ? :)

Thx a lot !

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

What exactly would you want? How is your current setup, or how will it be?
I am not very familiar with kubernetes, but I think you would be able to create a Service, and let Nginx or some other proxy listen to it.

Then you can use your public IP and add a DNS record in Cloudflare towards this IP.

  • I want to protect my API from DDOS without thinking about it! (or less)

    I agree with the Nginx solution and the public ip and CloudFlare :)

    I think, i was searching for a double validation ahah :p

    Thx for your response, it’s calming my anxiety ahah :D