<p>I am using <a href="https://github.com/kubernetes-sigs/kubespray" rel="nofollow noreferrer">kubespray</a> for the deployment of a kubernetes cluster and 
want to set some API Server parameters for the deployment. In specific I want to configure the authentication via OpenID Connect (e.g set the <a href="https://kubernetes.io/docs/reference/access-authn-authz/authentication/#configuring-the-api-server" rel="nofollow noreferrer"><code>oidc-issuer-url</code></a> parameter). I saw that kubespray has some vars to set (<a href="https://github.com/kubernetes-sigs/kubespray/blob/master/docs/vars.md" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/kubespray/blob/master/docs/vars.md</a>), but not the ones I am looking for.</p>

<p>Is there a way to set these parameters via kubespray? I don't want to configure each master manually (e.g by editing the <code>/etc/kubernetes/manifests/kube-apiserver.yaml</code> files).</p>

<p>Thanks for your help</p>

chresse
<p>On the bottom of the page you are referring to there is description how to define custom flags for various components of k8s:</p>

<pre><code>kubelet_custom_flags:
  - "--eviction-hard=memory.available&lt;100Mi"
  - "--eviction-soft-grace-period=memory.available=30s"
  - "--eviction-soft=memory.available&lt;300Mi"
</code></pre>

<p>The possible vars are:</p>

<pre><code>apiserver_custom_flags
controller_mgr_custom_flags
scheduler_custom_flags
kubelet_custom_flags
kubelet_node_custom_flags
</code></pre>
