Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tensorchord/envd-server
Backend server for envd
https://github.com/tensorchord/envd-server
hacktoberfest kubernetes
Last synced: about 2 months ago
JSON representation
Backend server for envd
- Host: GitHub
- URL: https://github.com/tensorchord/envd-server
- Owner: tensorchord
- License: mpl-2.0
- Created: 2022-09-21T07:40:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T02:17:46.000Z (9 months ago)
- Last Synced: 2024-07-28T16:36:16.479Z (about 2 months ago)
- Topics: hacktoberfest, kubernetes
- Language: Go
- Homepage:
- Size: 936 KB
- Stars: 21
- Watchers: 8
- Forks: 13
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envd-server
envd-server is the backend server for `envd`, which talks to Kubernetes and manages environments for users.
## Install
```bash
helm install --debug envd-server ./manifests
# skip 8080 if you're going to run the envd-server locally
kubectl --namespace default port-forward service/envd-server 8080:8080 &
kubectl --namespace default port-forward service/envd-server 2222:2222 &
```To run the envd-server locally:
```bash
make build-local
./bin/envd-server --kubeconfig $HOME/.kube/config --hostkey manifests/secretkeys/hostkey
```## Usage
```bash
envd context create --name server --runner envd-server --runner-address http://localhost:8080 --use
envd login
envd create --image gaocegege/test-envd
```# Development Guide of Dashboard
## Build
Enter into [`./dashboard`](./dashboard) directory to develop just like normal vue application.
If you want to build envd-server with dashboard
```bash
pushd dashboard
npm install
npm run build
popd
DASHBOARD_BUILD=release make build-local
```When envd-server is running, you can visit [http://localhost:8080/dashboard](http://localhost:8080/dashboard) to see it.
## Develop locally
- Port forward the postgresql service to local
```bash
kubectl port-forward svc/postgres-service 5432:5432
```
- Setup environment variable
```bash
export KUBECONFIG=~/.kube/config
export ENVD_DB_URL=postgres://postgresadmin:admin12345@localhost:5432/postgresdb?sslmode=disable
```
- Run envd-server locally
```bash
./bin/envd-server --debug --no-auth # Remove no-auth if auth is needed
```