Installing and deploying Kubernetes Backup Support images in the Kubernetes environment
Before you can back up and restore persistent volumes that are attached to your containers in a Kubernetes cluster environment, you must install and deploy Kubernetes Backup Support images.
Before you begin
- By downloading and installing the Helm package from IBM® Helm Charts Repository and IBM Entitled Registry
- The Helm package is smaller in size and therefore takes less time to download. Internet access is required to pull containers at deployment time. You can download the Helm package file named ibm-spectrum-protect-plus-prod-1.0.0.tgz at https://github.com/IBM/charts/tree/master/repo/entitled.
- By downloading and installing the product package from IBM Passport Advantage® Online
- The installation package from IBM Passport Advantage is a larger but self-contained package. Internet access is not required at deployment time. Instructions for downloading and installing the package are provided in this topic.
Complete the following tasks to download the installation package from IBM Passport Advantage:
- Ensure that your system environment meets the requirements that are described in Kubernetes Backup Support requirements and Prerequisites for Kubernetes Backup Support.
- Download the installation file SPP_V10.1.6_for_Containers.tar.gz from Passport Advantage® Online. For information about downloading files, see technote 5693313.
- Validate the downloaded file by using one of the following methods:
- Verify the MD5 checksum of the downloaded installation file. Ensure that the generated checksum matches the one provided in the MD5 Checksum file, which is part of the software download.
- Verify the signed file that is associated with the installation package by issuing the following
command:
openssl dgst -sha256 -verify IBMSPSignCertificatePublic -signature ./SPP_V10.1.6_for_Containers.tar.gz.sig ./SPP_V10.1.6_for_Containers.tar.gz
- A rollback to a previous version of Kubernetes Backup Support is not supported. In other words, you cannot use Kubernetes Backup Support V10.1.5 to restore data that was backed up by Kubernetes Backup Support V10.1.6.
- Upgrading the product from Kubernetes Backup Support V10.1.5 is not supported.
- Due to underlying changes in the
BaasReq
object, you cannot use Kubernetes Backup Support V10.1.6 to restore data that was backed up by Kubernetes Backup Support V10.1.5.
About this task
During the installation and deployment procedure, you must update the baas_config.cfg configuration file with specifications for your environment, and then run the installation script baas_install.sh. When you run the installation script, an appropriate Helm Chart is automatically called to deploy Kubernetes Backup Support in your environment.
Procedure
Complete the following steps on the command line in the Kubernetes environment:
Results
Running
state and no components are missing, issue the following
command:kubectl get pods -n baas
orkubectl describe pod pod_name -n baas
kubcectl get pods -n baas
NAME READY STATUS RESTARTS AGE
baas-controller-768869468c-crtd4 1/1 Running 0 4m24s
baas-kafka-68d7ff8455-m96cc 1/1 Running 0 4m24s
baas-scheduler-656978d87f-thqv2 1/1 Running 1 4m24s
baas-spp-agent-cdb784466-v9tnz 1/1 Running 0 4m24s
baas-transaction-manager-657db7bb8b-6dgqb 1/1 Running 2 4m24s
------------------------------------------------------------------------
All pods are running.
All resources are installed successfully.
Installation is completed.
Product release >>baas<< version 10.1.6 has been isntalled in namespace >>baas<< at Wed May 20 17:58:02 MST 2020.
Script baas_install.sh finished at Wed May 20 17:58:02 MST 2020. A log of this transaction has been written to /tmp
/baas_installation.sh_20200520-175605.log .
If the data mover container is not listed in the output, the data mover container is deployed at run time.
kubectl get services -n baas
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
baas-kafka-svc ClusterIP 10.110.116.210 <none> 9092/TCP,2181/TCP 4m27s
baas-scheduler ClusterIP 10.96.38.170 <none> 8000/TCP 4m27s
baas-spp-agent NodePort 10.110.164.151 <none> 22:30412/TCP 4m27s
baas-transaction-manager ClusterIP 10.108.42.194 <none> 5000/TCP 4m27s
The baas-datamover
service is deployed at runtime with type
NodePort
instead of the ClusterIP
range with the TCP protocol.
kubectl get networkpolicies -n baas
NAME POD SELECTOR AGE
baas-ctl-networkpolicy app.kubernetes.io/component=controller,app.kubernetes.io/name=baas,app.kubernetes.io/version=10.1.6 4m30s
baas-kafka app.kubernetes.io/component=kafka,app.kubernetes.io/name=baas,app.kubernetes.io/version=10.1.6 4m30s
baas-scheduler app.kubernetes.io/component=scheduler,app.kubernetes.io/name=baas,app.kubernetes.io/version=10.1.6 4m30s
baas-spp-agent app.kubernetes.io/component=spp-agent,app.kubernetes.io/name=baas,app.kubernetes.io/version=10.1.6 4m30s
baas-transaction-manager app.kubernetes.io/component=transaction-manager,app.kubernetes.io/name=baas,app.kubernetes.io/version=10.1.6 4m30s
The network policy for the data mover is deployed at runtime with the
pod-selector
app.kubernetes.io/name=baas,app.kubernetes.io/component=datamover,version=10.1.6
.
What to do next
After the deployment is completed, the application host for the Kubernetes Backup Support container is automatically registered upon startup of the cluster host in Kubernetes. However, if the automatic registration was unsuccessful, you can manually register the cluster by using the IBM Spectrum Protect Plus user interface. For instructions, see Registering a Kubernetes cluster.
./baas_install.sh -u