Resource Type: kubernetes_lifecycle

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

Overview

Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • post_start

    PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

  • pre_stop

    PreStop is called immediately before a container is terminated. The container is terminated after the handler completes. The reason for termination is passed to the handler. Regardless of the outcome of the handler, the container is eventually terminated. Other management of the container blocks until the hook completes. More info: kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks

Parameters

  • name (namevar)

    Name of the lifecycle.

  • provider

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