Kubernetes Plugin


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

This example demonstrates how to add resource definition in your node template.

  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