cloudsoft.io

Deploying Containers, Deployments, and Helm Charts

Cloudsoft AMP supports the following resources for deploying to Kubernetes:

  • org.apache.brooklyn.container.entity.kubernetes.KubernetesPod: to deploy a container as a pod
  • org.apache.brooklyn.container.entity.kubernetes.KubernetesResource: to discover or deploy a resource, from a YAML file
  • org.apache.brooklyn.container.entity.helm.HelmEntity: to deploy a helm chart

Some examples are as follows:

type: org.apache.brooklyn.container.entity.kubernetes.KubernetesPod
brooklyn.config:
  docker.container.imageName: 'brooklyncentral/ubuntu:18.04-tomcat-war'
  docker.container.inboundPorts: [ 8080 ]
type: org.apache.brooklyn.container.entity.helm.HelmEntity
brooklyn.config:
  helm.template: template-reference-or-url
  helm.deployment.name: name-of-deployment
  # optional, to set up a helm repo from which the template reference should be taken
  repo.name: ...
  repo.url: ...
  # optional, to pull override values from a URL
  helm.install.values: ...
type: org.apache.brooklyn.container.entity.kubernetes.KubernetesResource
name: DB Deployment
brooklyn.config:
  resource: classpath://db-deployment.yaml