runway.blueprints.k8s.k8s_master module

Module with k8s cluster resources.

class runway.blueprints.k8s.k8s_master.Cluster(name, context, mappings=None, description=None)[source]

Bases: runway.cfngin.blueprints.base.Blueprint

Stacker blueprint for creating k8s cluster resources.

Instantiate class.

Parameters
  • name (str) – A name for the blueprint.

  • context (runway.cfngin.context.Context) – Context the blueprint is being executed under.

  • mappings (dict, optional) – CloudFormation Mappings to be used in the template.

  • description (str) – Used to describe the resulting CloudFormation template.

VARIABLES = {'EksClusterName': {'description': 'Name of the Kubernetes cluster', 'max_length': 40, 'min_length': 2, 'type': <runway.cfngin.blueprints.variables.types.CFNType object>}, 'EksSubnets': {'description': 'Subnets where the Kubernetes cluster will live', 'type': <runway.cfngin.blueprints.variables.types.CFNType object>}, 'EksVersion': {'description': 'Kubernetes version', 'type': <runway.cfngin.blueprints.variables.types.CFNType object>}, 'VPC': {'description': 'VPC where the Kubernetes cluster will live', 'type': <runway.cfngin.blueprints.variables.types.CFNType object>}}
create_template()[source]

Create template (main function called by Stacker).