#1 Global Leader in Data Resilience

How to Patch Veeam Kasten for Kubernetes CR used by Red Hat Marketplace Operator

KB ID: 4614
Product: Veeam Kasten for Kubernetes
Published: 2024-06-12
Last Modified: 2024-06-12
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Purpose

This article provides an easy way to patch the Veeam Kasten for Kubernetes operand and make changes to the Veeam Kasten for Kubernetes configuration in an operator-based installation.

Solution

Veeam Kasten for Kubernetes is available for installation in an OCP cluster through either helm charts or the Red Hat Marketplace operator. 

When using helm, configuration changes to Veeam Kasten for Kubernetes can be made through helm upgrades, which support using either a values file or helm values as arguments with --set or --set-string

On the other hand, the K10 operator is a helm-based operator that allows the configuration of Veeam Kasten for Kubernetes values using an operand CR called k10s.apik10.kasten.io. Updating the Veeam Kasten for Kubernetes configuration requires modifying this resource. 

However, this resource is a large file with over a thousand lines, making manual editing extremely difficult. This article aims to provide a more straightforward method for modifying the contents of the K10 operand using the kubectl patch

 

Example Scenario

Below are examples demonstrating how to enable OpenShift OAuth integration in Veeam Kasten for Kubernetes with helm and operator-based installation.

Helm

Run the following command with the specified values provided as helm arguments using the --set parameter.

helm install k10 kasten/k10 --namespace=kasten-io \ 
  --set scc.create=true \
  --set route.enabled=true \
  --set route.tls.enabled=true \
  --set auth.openshift.enabled=true \
  --set auth.openshift.serviceAccount=k10-dex-sa \
  --set auth.openshift.clientSecret=${DEX_TOKEN} \
  --set auth.openshift.dashboardURL=https://k10-route-kasten-io.${APPS_BASE_DOMAIN}/k10/ \
  --set auth.openshift.openshiftURL=https://${API_BASE_DOMAIN}:6443 \
  --set auth.openshift.insecureCA=true
Alternatively, the following values can be specified in a YAML file and used for upgrade. 
# values.yaml 
scc:
  create: true
route:
  enabled: true
  tls:
    enabled: true
auth:
  openshift:
    enabled: true
    serviceAccount: k10-dex-sa
    clientSecret: ${DEX_TOKEN}
    dashboardURL: https://k10-route-kasten-io.${APPS_BASE_DOMAIN}/k10/
    openshiftURL: https://${API_BASE_DOMAIN}:6443
    insecureCA: true
Veeam Kasten for Kubernetes instance can be upgraded using the following helm upgrade command, assuming the above values are saved in the values.yaml file.
helm upgrade k10 --namespace kasten-io -f values.yaml 

Veeam Kasten for Kubernetes Operand

Making the same changes mentioned above by editing the Veeam Kasten for Kubernetes operand can be a bit cumbersome. The Veeam Kasten for Kubernetes operand manifest contains the values for configuring Veeam Kasten for Kubernetes, following a similar schema as the helm values file. 

All the values are listed under a top-level object called spec. For example, if the helm values used scc.create, it would be spec.scc.create in the operand. Similarly, route.enabled in helm would be spec.route.enabled in the operand. 

Hence, the provided patch file can be used to configure the same values in the Veeam Kasten for Kubernetes operator.

#patch.yaml 
spec:
  scc:
    create: true
  route:
    enabled: true
    tls:
      enabled: true
  auth:
    openshift:
      enabled: true
      serviceAccount: k10-dex-sa
      clientSecret: ${DEX_TOKEN}
      dashboardURL: https://k10-route-kasten-io.${APPS_BASE_DOMAIN}/k10/
      openshiftURL: https://${API_BASE_DOMAIN}:6443
      insecureCA: true
To upgrade the K10 operator-based installation, following patch command can be used, assuming the above values are saved in the `patch.yaml` file. 
kubectl patch k10s.apik10.kasten.io k10 -n kasten-io --type=merge --patch-file patch.yaml 
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.