I was reviewing some material related to kubernetes security and I found it is possible to expose Kubernetes API server to be accessible from the outside world, My question is what would be the benefit from doing something vulnerable like this, Anyone knows business cases for example that let you did that? Thanks
Asked
Active
Viewed 157 times
1 Answers
1
Simply, you can use endpoints to deploy any service from your local. for sure you must implement security on your api. I have created an application locally which builds using docker api, and deploy using kubernetes api. Don't forget about securing your apis.

hakik ayoub
- 55
- 1
- 7
-
I appreciate your answer but I can't find it worth the risk of exposing k8s API to just be able to deploy from local. Simply you can push you image to a registry and deploy it inside k8s. Anyway thanks :) – Muhammad Badawy Dec 29 '21 at 11:36
-
you can expose it only to you ;) – hakik ayoub Dec 30 '21 at 13:04