How to install and configure Kasten to protect container workloads on Red Hat OpenShift and VMware vSphere
Tags: kubernetes, veeam, backup, configure
Published: 2021-06-08 18:00:10

---
title: How to install and configure Kasten to protect container workloads on Red Hat OpenShift and VMware vSphere
published: true
date: 2021-03-02 18:51:55 UTC
tags: Kubernetes,Veeam,backup,Configure
canonical_url: https://veducate.co.uk/kasten-install-configure-openshift/?utm_source=rss&utm_medium=rss&utm_campaign=kasten-install-configure-openshift
---

In this blog post I’m going to cover deploying and configuring Kasten, the container based enterprise backup software now owned by Veeam Software.

This deployment will be inside my Red Hat OpenShift Environment which is running on top of VMware vSphere.

I’ll be protecting a cool gaming application that has data persistence using MongoDB.

###### Installing Kasten on Red Hat OpenShift

In this guide, I am going to use Helm, you can learn [how to install it here](https://helm.sh/docs/intro/install/).

Create a OpenShift project (Kubernetes namespace) called “kasten-io”

```
oc new-project kasten-io
```

[![oc new project kasten-io](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-new-project-kasten-io.png?resize=604%2C117&ssl=1)](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-new-project-kasten-io.png?ssl=1)

Next we are going to use Helm to install the Kasten software into our OpenShift cluster.

```
helm install k10 kasten/k10 --namespace=kasten-io --set scc.create=true --set route.enabled=true --set route.path="/k10" --set auth.tokenAuth.enabled=true
```

Breaking down the command arguments;

- –set scc.create=true
  - This creates the correct [Security Contexts](https://docs.openshift.com/container-platform/4.6/authentication/managing-security-context-constraints.html#security-context-constraints-about_configuring-internal-oauth) against the users created by the install. This is needed in OpenShift as the security context stance is higher OOTB than that of a vanilla Kubernetes install.
- –set route.enabled=true
  - This creates a route in OpenShift using the default ingress, so that the Kasten dashboard is accessible externally. This will use the default cluster ID domain name.
- –set route.path=”/k10″
  - This sets the route path for the redirection of the dashboard. Without this, your users will need to go to http://{FQDN}/ and append the path to the end (k10).
- –set auth.tokenAuth.enabled=true
  - This sets the [authentication type](https://docs.kasten.io/latest/install/openshift/openshift.html#authentication) of the Kasten Dashboard.

[![helm install k10 kasten kasten-io](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/helm-install-k10-kasten-kasten-io.png?resize=604%2C189)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/helm-install-k10-kasten-kasten-io.png?ssl=1)

Once the installation has completed. You will see all your pods running;

```
oc get pods -n kasten-io
```

_[![oc get pods -n kasten-io](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-get-pods-n-kasten-io.png?resize=574%2C305&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-get-pods-n-kasten-io.png?ssl=1)_

We also want to check the route information that’s been configured;

```
oc get route -n kasten-io
```

[![oc get route](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-get-route.png?resize=604%2C26&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-get-route.png?ssl=1)

To view the setting of our route;

```
oc describe route k10-route -n kasten-io
```

Below you can see highlighted the FQDN of the Kasten instance that our users can access the Kasten Dashboard.

[![oc describe route k10-route](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-describe-route-k10-route.png?resize=604%2C298&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/oc-describe-route-k10-route.png?ssl=1)

Before we browse to our FQDN we also need to get the token from our user to access the environment. For this example I am going to use the default user “k10-k10”, which has full administrator privileges to Kasten. You have the ability to create a new user with the correct level of access also, [see here](https://docs.kasten.io/latest/access/authentication.html#obtaining-tokens).

```
sa_secret=$(kubectl get serviceaccount k10-k10 -o jsonpath="{.secrets[0].name}" --namespace kasten-io)

kubectl get secret $sa_secret --namespace kasten-io -ojsonpath="{.data.token}{'\n'}" | base64 --decode
```

The first command passes our secret into a variable, which is reference in the second command.

Extract your token as per the below screenshot.

[![kubectl get secret](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kubectl-get-secret.png?resize=604%2C42&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kubectl-get-secret.png?ssl=1)

And input into the login for the dashboard.

[![kasten dashboard token authentication](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kasten-dashboard-token-authentication.png?resize=604%2C396&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kasten-dashboard-token-authentication.png?ssl=1)

Once authenticated you can see by clicking the user name in the top right hand corner, we have the highest of permissions.

[![kasten k10-k10 user](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kasten-k10-k10-user-.png?resize=372%2C267&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kasten-k10-k10-user-.png?ssl=1)

You will also see a pop up asking you to accept the EULA.

[![kasten accept eula](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kasten-accept-eula.png?resize=604%2C354&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/kasten-accept-eula.png?ssl=1)

###### Configuring Kasten to integrate with VMware vSphere

The [VMware CSI Driver](https://vsphere-csi-driver.sigs.k8s.io) does not support snapshotting first class disks (FCD) currently. However Kasten can snapshot the FCD by using its integration into vSphere by calling the vCenter API. To enable this capability we need to configure an [infrastructure profile](https://docs.kasten.io/latest/install/storage.html#vsphere).

1. Click the “Settings” button in the top right hand corner of the dashboard.
2. Select Infrastructure tab on the left hand side of the dashboard
3. Click New Profile.

[![kasten create infrastructure profile](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-infrastructure-profile.png?resize=604%2C242&ssl=1)](https://i2.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-infrastructure-profile.png?ssl=1)

This will open up a configuration pane on the right-hand side of the dashboard.

Provide a profile name and enter the details as necessary. Click validate and save once done.

[![Kasten Create infrastructure profile vSphere](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-infrastructure-profile-vSphere.png?resize=439%2C919&ssl=1)](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-infrastructure-profile-vSphere.png?ssl=1)

You will return to the settings screen and see a dialog box pop up stating the profile creation was successful.

[![Kasten - Create infrastructure profile - vSphere - profile created](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-infrastructure-profile-vSphere-profile-created.png?resize=604%2C344&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-infrastructure-profile-vSphere-profile-created.png?ssl=1)

###### Create a location profile to enable backup storage

The next component we need is to create a [location profile](https://docs.kasten.io/latest/usage/configuration.html#location-profile). Without this, we can create a snapshot of our data which is useful for our cluster, but it is not a full backup or provides DR. Similar to that compared to snapshots of a Virtual Machine.

A location profile provides Kasten and the protection policies we will create access to external object storage or [external NFS file storage (tech preview)](https://docs.kasten.io/latest/usage/configuration.html#nfs-file-storage-location).

1. Under the Settings dashboard (click in the top right hand corner if needed).
2. Select the Locations Tab.
3. Click new profile.

[![Kasten - Create Location profile](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-Location-profile-.png?resize=604%2C278&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-Location-profile-.png?ssl=1)

A dialog box will appear on the right hand side of the dashboard interface.

Select your Cloud Storage Provider of choice and enter the necessary details. Click validate and save.

[![Kasten - Create Location profile - azure](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-Location-profile-azure.png?resize=441%2C935&ssl=1)](https://i0.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-Location-profile-azure.png?ssl=1)

You will then see a Profile Created message if this is successful.

[![Kasten Create Location profile azure profile created](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-Location-profile-azure-profile-created.png?resize=604%2C344&ssl=1)](https://i1.wp.com/veducate.co.uk/wp-content/uploads/2020/11/Kasten-Create-Location-profile-azure-profile-created.png?ssl=1)

###### Creating Backup Policies, protecting and restoring your data

Now we have deployed our Kasten environment to our Red Hat OpenShift environment running on VMware vSphere, set up the base configuration, we move onto the next phase:

- [How to create protection policies, backup your data and restore your data.](https://veducate.co.uk/kasten-backup-restore)

Regards

[Follow @Saintdle](https://twitter.com/saintdle)<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

[Dean Lewis](https://uk.linkedin.com/in/saintdle?trk=profile-badge)

The post [How to install and configure Kasten to protect container workloads on Red Hat OpenShift and VMware vSphere](https://veducate.co.uk/kasten-install-configure-openshift/) appeared first on [vEducate.co.uk](https://veducate.co.uk).