Kubernetes Plugin


Get the latest docs

You are looking at documentation for an older release. Not what you want? Go to the current release documentation.

The Kubernetes Plugin enables you to deploy Kubernetes resources against an existing Kubernetes cluster. For information about the library, click here.

Plugin Requirements

  • Python versions:
    • 2.7.x
  • Kubernetes Cluster See example.

Compatibility

  • Tested with Cloudify Premium 4.0.1 and Community Version 17.3.31
  • Tested with Kubernetes 1.6

Release History

See releases.

Example

Add resource definition in your node template like this:

  nginx_pod:
    type: cloudify.kubernetes.resources.Pod
    properties:
      definition:
        apiVersion: v1
        metadata:
          name: nginx
        spec:
          containers:
          - name: nginx
            image: nginx:1.7.9
            ports:
            - containerPort: 80
    relationships:
      - type: cloudify.kubernetes.relationships.managed_by_master
        target: kubernetes_master