BlueXP is now NetApp Console
Monitor and run hybrid cloud data services
Welcome to the Astrocontrol SDK video series. I'm Michael Heg, a technical marketing engineer at NetApp and I maintain the Astrocontrol SDK. If you're not familiar, Astro Control provides applicationaware data protection and mobility for Kubernetes. It has a robust UI and API. And if you don't want to build your automation from scratch, we also have an open-source SDK to help you get started. Our goal is to provide an unopinionated software development kit. So, there are several ways to install and consume the SDK depending upon your automation goals. Today's video walks you through the three main methods which are forking and cloning a git repo, installing a Python package, or utilizing our prepared docker image. Let's get started. First up is our NetApp Astra toolkits get repo fork and clone. This is great for a developer use case where you want to modify the SDK to suit your needs. It's also the most complicated use case as a number of software dependencies which are listed in our readme are required for installation. To start, click the fork button in the upper right. Select your desired owner [music] for the fork. Optionally modify the repo name or description and then click create fork. On the page that appears, [music] appears, [music] appears, [music] click the green code button and then copy the clone URL. Head over into your terminal. run a git clone command with the URL that was just copied and then change into the new directory. Next, we'll create a Python virtual environment, source the environment, and then use pip to install all of the required Python dependencies. At this point, the SDK is ready [music] to use. We can run a toolkit.py command, which we expect to fail as we have yet to configure our credential file. And we can also drop into the Python interpreter and import the Astra SDK library. Our next installation method is via a Python package. This is great for DevOps and GitOps use cases in software pipelines or for users who plan to use the SDK without modification. In our terminal, I've dropped into an Alpine container for demo purposes. However, you're welcome to run these commands directly on your local workstation. We'll first install Python 3 and pip as this lightweight container does not ship with them pre-installed. We now run a pip install command to install AC toolkit which is the name of our SDK Python package. This will automatically install all of the required Python dependencies. [music] dependencies. [music] dependencies. [music] However, other software dependencies like cubectl or Helm must be manually installed depending on your use case. After the pip install command, AC toolkit, which is an entry point for toolkit. [music] toolkit. [music] toolkit. [music] py is added to our path and can be invoked directly. We can also drop into the Python interpreter and import the Astra SDK [music] library. Our final installation method is using the prepared Docker image. This Docker image contains all of the necessary software dependencies in a single image, absolving the user from any local workstation configuration. Running this docker pull command will download the image and then executing a docker run command will drop us into the container. This container not only ships with the AC toolkit Python package pre-installed, it also contains all other required dependencies like cubectl, helm, git, and hyperscaler CLI. You can also use this docker image in conjunction with your forked git repo from the first use case. I hope you found that useful. [music] Thanks for watching and stay tuned for our next video where we create our credential file.
Learn about the various ways to install the open source Astra Control Python SDK to help achieve your Kubernetes data protection automation goals.