Using Admission hook with custom resource objects

Cluster information:

Kubernetes version: 1.11
Cloud being used: GCP
Installation method: GKE
Host OS: centos
CNI and version:
CRI and version:

I am using CRD’s and a custom controller to simplify my deployment. I am trying to implement a validation hook and I want to reject requests when already some release(increasing no of replicas, change of image) etc is going on.

My concern is does api-server provide some kind of locks for the concurrent requests and do they work for CRD’s.

Basically, is it safe to have concurrent requests to saem CRD object

1 Like