GKE | Statefulset gets deleted along with a service when deployed in the kube-system namespace

Solution 1:

To close i think it would make sense to paste the final answer here.


I understand your curiousity, i guess GCP just started preventing people from deploying stuff to the kube-system namespaces as it has the risk of messing with GKE. I never tried to deploy stuff to the kube-system namespace before so i'm sure if it was always like this or we just changed it

Overall i recommend avoiding deploying stuff into the kube-system namespace in GKE```