diff --git a/modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc b/modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc index 6ec1546b88..54d9a73628 100644 --- a/modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc +++ b/modules/get-started/pages/licensing/add-license-redpanda/kubernetes.adoc @@ -198,16 +198,42 @@ If the license is provided through a Kubernetes Secret, follow these steps to up kubectl delete secret redpanda-license --namespace ---- -. Create a new Secret with the updated license: +. Create a new Secret with a **new name** that contains the contents of the updated license: + [,bash] ---- -kubectl create secret generic redpanda-license \ +kubectl create secret generic redpanda-license-updated \ --from-file=license=./redpanda.license \ --namespace ---- + +. Update the Redpanda CRD to use the new Secret. +.`redpanda-cluster.yaml` +[,yaml] +---- +apiVersion: cluster.redpanda.com/v1alpha2 +kind: Redpanda +metadata: + name: redpanda +spec: + chartRef: {} + clusterSpec: + enterprise: + licenseSecretRef: + name: redpanda-license-updated + key: license +---- + +. Apply the changes to the Redpanda CRD: ++ +[,bash] +--- +kubectl apply -f redpanda-cluster.yaml --namespace +--- ++ +The Redpanda Operator updates the license without restarting the Repanda broker. + . Check the status of new license to make sure it was successfully applied: + [,bash] @@ -321,4 +347,4 @@ kubectl delete pod $(kubectl get pod --namespace | grep redpanda-con == Next steps -xref:get-started:licensing/monitor-license-status.adoc[]. \ No newline at end of file +xref:get-started:licensing/monitor-license-status.adoc[].