--- title: "BC v4.x dep" slug: "bc-v4x-dep" updated: 2024-11-22T21:40:18Z published: 2024-11-22T21:40:18Z canonical: "support.beast-code.com/bc-v4x-dep" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.beast-code.com/llms.txt > Use this file to discover all available pages before exploring further. # Beast Core 4 Deployment Guide # **Prerequisites** 1. Kubernetes cluster 2. kubectl CLI installed ## **Files Required** Please download or have available the following files: 1. b29-persistentvolumeclaim.yaml 2. beast-core-deployment.yaml 3. beast-core-service.yaml 4. pod.yaml 5. uss-persistentvolumeclaim.yaml 6. artifacts_b29.zip 7. artifacts_nvr_sleeps.zip # **Steps** ## **1.Create the beast-core namespace:** | kubectl create ns beast-core | | --- | ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(1).png) ## **2. Create the secret:** kubectl create secret docker-registry regcred --docker-server=registry1.dso.mil --docker-username= --docker-password= -n beast-core ## **3. Apply the PVCs:** | kubectl apply -f b29-persistentvolumeclaim.yaml -n beast-core kubectl apply -f uss-persistentvolumeclaim.yaml -n beast-core | | --- | ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(2).png) ## **4. Apply the pod.yaml to spin up a temporary pod for copying artifacts:** | kubectl apply -f pod.yaml -n beast-core | | --- | ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(3).png) ## **5. Copy workspace zips into the pod:** kubectl cp artifacts_b29.zip beast-core/app:/data -n beast-core kubectl cp artifacts_nvr_sleeps.zip beast-core/app:/data -n beast-core ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(4).png) ## **6. Exec into the pod and unzip artifacts:** kubectl exec -it app -n beast-core -- /bin/bash apt update apt install unzip unzip data/artifacts_b29.zip -d data/b29 unzip data/artifacts_nvr_sleeps.zip -d data/uss-never-sleeps ![](file:///C:/Users/dpeters/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(5).png) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(7).png) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(8).png) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(9).png) ## **7. Move contents in each workspace's develop-converted out one level:** cp data/b29/develop-converted/* data/b29 -R cp data/uss-never-sleeps/develop-converted/* data/uss-never-sleeps -R rm data/b29/develop-converted -r rm data/uss-never-sleeps/develop-converted -r ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(10).png) ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(11).png) ## **8. Exit out of the pod** exit ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(15).png) ## **9. Apply the beast-core deployment:** kubectl apply -f beast-core-deployment.yaml -n beast-core ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(18).png) ## **10. Apply the service:** kubectl apply -f beast-core-service.yaml -n beast-core ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image(17).png) ## **11. Delete the temporary pod for copying artifacts as it is not needed again:** kubectl delete pod/app -n beast-core ## **12. Port forward to access beast-core on “localhost”:** kubectl port-forward svc/beast-core -n beast-core 8100:8100 ![](https://cdn.document360.io/820c65d9-cf4e-4289-9237-5bc834b3bd3e/Images/Documentation/image.png)