Install extension using the Kustomize and CR YAMLs
The extension folder contains the following samples based on which you need to create new YAMLs with the relevant values as per your environment:
kustomization.yaml
cloudpoint_crd.yaml
node_select.yaml
cloudpoint_service.yaml
kustomization.yaml
In the kustomization.yaml, update the parameters in the section with relevant values as described in the following table.
Parameter | Description |
|---|---|
newName | Specify the NetBackup Snapshot Manager image name, along with the container registry path. Example: <account_id>.dkr.ecr.us-east-2.amazonaws.com/veritas/flexsnap-deploy |
newTag | Specify the tag of the NetBackup Snapshot Manager image to be deployed. Example: |
namespace | The namespace that was created earlier in the preparation steps, in which to deploy NetBackup Snapshot Manager. |
Example:
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cloudpoint_service.yaml
patchesStrategicMerge:
- node_select.yaml
namespace: demo-cloudpoint-ns
images:
- name: CLOUDPOINT_IMAGE
newName: <account_id>.dkr.ecr.us-east-2.amazonaws.com/veritas/flexsnap-deploy
newTag: 11.1.x.x-xxxx
vars:
- name: ServiceAccount.cloudpoint-acc.metadata.namespace
objref:
kind: ServiceAccount
name: cloudpoint-acc
apiVersion: v1
fieldref:
fieldpath: metadata.namespace
configurations:
- cloudpoint_kustomize.yamlcloudpoint_service.yaml
If deploying the extension on GCP platform, then in cloudpoint_service.yaml, replace the with .
cloudpoint_crd.yaml
Edit the cloudpoint_crd.yaml manifest file as follows:
For GCP platform: Delete the line with word in it.
For Non-GCP platform: Delete the line with word in it.
Now update the parameters in the section with relevant values as described in the following table.
Parameter | Description |
|---|---|
cloudpointHost | Specify the NetBackup Snapshot Manager hostname or IP. |
cloudpointExtensionToken | Paste the contents of the NetBackup Snapshot Manager token that was downloaded earlier from NetBackup Web UI - Add extension dialog. |
storageClassName | Kubernetes storage class that was created earlier in the preparation steps. Example: Note: Not required for GCP platform. |
size | Volume size in GB to be provisioned as per your scaling requirements. |
namespace | The namespace that was created earlier in the preparation steps, in which to deploy NetBackup Snapshot Manager. |
volumeName | The name of the Persistent Volume created earlier in preparation steps. Note: Required for GCP platform. |
Example:
apiVersion: veritas.com/v1
kind: CloudpointRule
metadata:
name: cloudpoint-config-rule
namespace: demo-cloudpoint-ns
spec:
CLOUDPOINT_HOST: 3.17.**.*** .
CLOUDPOINT_EXTENSION_TOKEN: <extension_token>
RENEW: false
LOG_STORAGE:
STORAGE_CLASS_NAME: efs-sc-new
SIZE: 100node_select.yaml
Navigate to under the section and replace the values of NODE_AFFINITY_KEY and NODE_AFFINITY_VALUE in the node_select.yaml file. User can obtain these details using the following commands:
Use the following command to obtain the name of any node from the dedicated node-pool for our extension:
# kubectl get nodes
Depending on the specific cloud provider, use the following respective commands based on the the label:
For Azure: # kubectl describe node <node_name> | grep -i labels
Output example:
agentpool=azure-node-poolFor AWS: # kubectl describe node <node_name> | grep -i <node_group_name>
Output example:
eks.amazonaws.com/nodegroup=aws-node-poolFor GCP: # kubectl describe node <node_name> | grep -i <node_pool_name>
Output example:
cloud.google.com/gke-nodepool=gcp-node-pool
Parameter | Description |
|---|---|
NODE_AFFINITY_KEY |
|
NODE_AFFINITY_VALUE | Name of the node pool.
|
Then run the following commands from the folder where the YAML files are located.
To apply the Kustomization YAML: kubectl apply -k <location of the kustomization.yaml file>
To apply the NetBackup Snapshot Manager CR: kubectl apply -f cloudpoint_crd.yaml