Files
kubernetes-course/pod-presets
2019-09-29 14:46:53 +02:00
..
2019-09-29 14:46:53 +02:00
2018-08-13 17:59:57 +00:00
2018-08-13 17:59:57 +00:00

PodPresets

Alpha status

As long as the PodPresets is in alpha status, the following changes need to be made in kops:

spec:
  kubeAPIServer:
    enableAdmissionPlugins:
    - Initializers
    - NamespaceLifecycle
    - LimitRanger
    - ServiceAccount
    - PersistentVolumeLabel
    - DefaultStorageClass
    - DefaultTolerationSeconds
    - MutatingAdmissionWebhook
    - ValidatingAdmissionWebhook
    - NodeRestriction
    - ResourceQuota
    - PodPreset
    runtimeConfig:
      settings.k8s.io/v1alpha1: "true"

running the demo

First apply the PodPresets:

kubectl create -f pod-presets.yaml

Then run the deployments

kubectl create -f deployments.yaml