Resource Type: kubernetes_affinity

Defined in:
lib/puppet/type/kubernetes_affinity.rb
Providers:
swagger

Overview

Affinity is a group of affinity scheduling rules.

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • node_affinity

    Describes node affinity scheduling rules for the pod.

  • pod_affinity

    Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).

  • pod_anti_affinity

    Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).

Parameters

  • name (namevar)

    Name of the affinity.

  • provider

    The specific backend to use for this ‘kubernetes_affinity` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.