From ea471fc63f33bf803cad4c378ee4b9e5d3b2adba Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Tue, 29 Jan 2019 02:00:18 +0530 Subject: [PATCH] PodPreset: Add minikube specific instructions (#12129) Signed-off-by: Suraj Deshmukh --- content/en/docs/concepts/workloads/pods/podpreset.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/en/docs/concepts/workloads/pods/podpreset.md b/content/en/docs/concepts/workloads/pods/podpreset.md index dfae21fd4fd..5d7ab78c464 100644 --- a/content/en/docs/concepts/workloads/pods/podpreset.md +++ b/content/en/docs/concepts/workloads/pods/podpreset.md @@ -68,10 +68,14 @@ In order to use Pod Presets in your cluster you must ensure the following: 1. You have enabled the API type `settings.k8s.io/v1alpha1/podpreset`. For example, this can be done by including `settings.k8s.io/v1alpha1=true` in - the `--runtime-config` option for the API server. + the `--runtime-config` option for the API server. In minikube add this flag + `--extra-config=apiserver.runtime-config=settings.k8s.io/v1alpha1=true` while + starting the cluster. 1. You have enabled the admission controller `PodPreset`. One way to doing this is to include `PodPreset` in the `--enable-admission-plugins` option value specified - for the API server. + for the API server. In minikube add this flag + `--extra-config=apiserver.enable-admission-plugins=Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,PodPreset` + while starting the cluster. 1. You have defined your Pod Presets by creating `PodPreset` objects in the namespace you will use.