Importing Kubernetes YAML in Octopus
Blog post from Octopus Deploy
Matthew Casperson's blog post discusses the process of migrating existing Kubernetes YAML resource definitions into Octopus Deploy using the new features introduced in Octopus 2020.2. This integration allows users to import, export, and edit raw YAML while managing Kubernetes resources in an opinionated manner through the Octopus platform. The article provides a step-by-step guide on how to use the Deploy Kubernetes containers step to define both deployment and service resources, simplifying the management process by abstracting some of the underlying linking mechanics. The Edit YAML feature enables users to input their existing YAML, which Octopus then populates into its system, allowing for easy export of the modified YAML with additional default labels linking resources together. Despite its utility, the step only imports recognized YAML values, and unrecognized values can be handled using the Deploy raw Kubernetes YAML step, offering flexibility for users who might outgrow the opinionated step.