tl;dr: newbie questions.
(First off, this is my first email to k8s dev. Sorry if the questions are misdirected, any help with question triage is most welcome and I'll try to heed the advice from there in the future.)
What is a (the?) good way to deploy a cluster-wide webhook authorizer (i.e. if I have multiple clusters, each gets its own authorizer)?
The intention is that a webhook authorizer becomes part of a custom k8s deployment. This suggests to me that the authorizer program should run alongside the apiserver. Assuming that's correct, how does one effectively make this configuration work?
It would seem to me that the authorizer can not run as a pod, or at least can not use the service discovery via DNS, as there would be bootstrapping issues. Is this understanding correct? If not, what can one do to bootstrap?
Alternatively, how would one run a webhook alongside any other programs that run on the k8s master node? (related: how does a k8s master start up, i.e. where is the list of programs to run on master specified?)
And maybe most relevantly, could you point me at working webhook examples? I've read the documentation for webhook and could find examples of authn servers (thanks to the kind folks on
slack.k8s.io) and admission controllers; but not for webhook authz.
Thanks for your time and help,
F