Desde el directorio K8S ejecutar make (esto hace todo: la imagen, para los pods y los lanza otra vez)
## Opción 1
La primera vez, hay que entrar en el pod con 'entra.sh' y
oc adm policy add-scc-to-user anyuid -z default
python manage.py createsuperuser
## Opción 2
Esta es la que usé la primera vez, pero hay que hacerlo para cada deployment. La opción 1 es una vez por proyecto.
python manage.py makemigrations
Running commands as root in OpenShift is restricted by default due to security policies. To allow a container to run as root, you need to use the anyuid Security Context Constraints (SCC) or create a custom SCC. Here are the steps to enable running commands as root:
python manage.py migrate
1. Create a Service Account: First, create a new service account in the project where you want to run the container as root.
## Comprobar la base de datos
oc create serviceaccount runasanyuid

2. Grant the anyuid SCC to the Service Account: As a cluster administrator, grant the anyuid SCC to the service account.