Kubernetes Integration

Available under the Integration Family: deploy

Kubernetes Integration is used to connect Shippable DevOps Assembly Lines platform to self-hosted Kubernetes so that you can deploy Docker based applications.

You can create this from the integrations page by following instructions here: Adding an account integration.

This is the information you would require to create this integration:

  • Name -- friendly name for the integration
  • Cluster Access Type -- dropdown that sets how Shippable accesses your cluster
    • Kubernetes Master -- when your master server is publicly accessible
      • KubeConfig File -- Configuration file to access Kubernetes cluster
    • Bastion Host -- When you need to access Kube master thats behind a firewall, then you can use a publicly accessible bastion host on the edge to get through the firewall
      • Nodes -- IP address of the Bastion Host
      • KubeConfig File -- Configuration file to access Kubernetes cluster

Resources that use this Integration

Resources are the building blocks of assembly lines and some types of resources refer to integrations by their names. The following resource types can be created with a Kubernetes integration.

Default Environment Variables

When you create a resource with this integration, and use it as an IN or OUT for a job that can execute user defined scripts, a set of environment variables are configured by the platform that may be useful to set the context before user defined scripts execute as part of the job. These variables are available when a resource with this integration type is used.

<NAME> is the the friendly name of the resource.

Environment variable Description
<NAME>_INTEGRATION_NAME Name supplied in the integration
<NAME>_INTEGRATION_CLUSTERACCESSTYPE Access Type supplied in the integration
<NAME>_INTEGRATION_MASTERKUBECONFIGCONTENT Kube config when kube master was chosen as access type
<NAME>_INTEGRATION_BASTIONKUBECONFIGCONTENT Kube config when bastion was chosen as access type
<NAME>_INTEGRATION_BASTIONHOSTIP Bastion Host IP when bastion was chosen as access type
<NAME>_INTEGRATION_BASTIONPRIVATEKEY Private Key to access the bastion host
<NAME>_INTEGRATION_BASTIONPUBLICKEY Public Key to access the bastion host

Shippable Utility Functions

To make it easy to use these environment variables, the platform provides a command line utility that can be used to work with these values.

How to use these utility functions is documented here.

Further Reading