Upgrading Spring Cloud Data Flow for Kubernetes
This topic describes how to upgrade an existing deployment of Spring Cloud Data Flow for Kubernetes (SCDF for Kubernetes).
To upgrade SCDF for Kubernetes:
Download the latest release of SCDF for Kubernetes (see Preparing to install Spring Cloud Data Flow for Kubernetes).
Extract the downloaded archive file.
$ tar xzvf data-flow-1.1.4.tgz
Compare the directory contents between the new release and the currently-installed release. For information about the directory structure of the “SCDF for Kubernetes installation files” archive, see Directory Structure.
Use a file comparison (diff) tool to compare files in the new release and the currently-installed release. Especially look for changes in the following files:
bootstrap.yamlconfiguration files. These files may contain new configuration values that correspond to features added to the Data Flow or Skipper servers.
kustomization.yamlfiles. These files will include updates to the container image tag (the
- Kubernetes resource files in the
basesubdirectories. These files will contain any new suggested resource limits or other improvements that take advantage of Kubernetes features.
Merge the changes into the existing files and directory structure of the currently-installed release.
Using the Kubernetes tool of your choice, apply the changes to your Kubernetes cluster. For example, using
kapp, you might run the following commands:
$ kubectl kustomize [SKIPPER_OVERLAY_DIR] | kapp -y deploy -a skipper -f -` $ kubectl kustomize [DATA_FLOW_OVERLAY_DIR] | kapp -y deploy -a data-flow -f -`
In these example commands, replace the
SKIPPER_OVERLAY_DIRplaceholder with the path to the
overlaysdirectory for the Skipper application, and replace the
DATA_FLOW_OVERLAY_DIRplaceholder with the path to the
overlaysdirectory for the Data Flow application.