oneinfra console is the Web UI + proxy API to manage oneinfra
resources from your browser.
It is tightly tied to the oneinfra
project.
In order to launch a local environment you will need to follow these instructions:
-
Run
make run-kindin theoneinfra/oneinfraproject- This will start a
kindsingle control plane cluster, deploying all backend required pieces and starting theoneinfracontroller manager as a regular process in your machine. You will need it running if you want the reconcile cycles to execute while you alter resources.
- This will start a
-
Run the
consoleAPI backend-
Inside the
apifolder execute:SERVE_ARGS="--auth=kubernetes-secrets" JWT_KEY=thisisaverysecretjwtkey make runWhere
JWT_KEYis a key of your own. If it changes across executions, all user sessions will become invalid.
-
-
Run the frontend
- Inside the
frontendfolder execute:yarn start.
- Inside the
If you are going to create clusters, you will need to create some
hypervisors where oneinfra will schedule them. You can run the
following command to create some local fake hypervisors:
$ oi-local-hypervisor-set create | kubectl apply -f -This will register the hypervisors in the management Kubernetes
cluster (kind in this case).