how to deploy podpreset on kubernetes1.19.rst

  1. enable podpreset

    –runtime-config=settings.k8s.io/v1alpha1=true –enable-admission-plugins=NamespaceLifecycle…,PodPreset

  2. using

    cat podpreset.yaml

    kind: PodPreset
    metadata:
      name: timezone
    spec:
      selector:
        matchLabels:
      env:
        - name: TZ
          value: CST-8