https://github.com/linuxsuren/environment-hub
Cloud-native environment hub
https://github.com/linuxsuren/environment-hub
cloud-native k3d kind
Last synced: 12 months ago
JSON representation
Cloud-native environment hub
- Host: GitHub
- URL: https://github.com/linuxsuren/environment-hub
- Owner: LinuxSuRen
- License: apache-2.0
- Created: 2023-12-07T03:14:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-25T06:55:40.000Z (about 2 years ago)
- Last Synced: 2025-02-05T03:16:43.457Z (about 1 year ago)
- Topics: cloud-native, k3d, kind
- Language: Go
- Homepage:
- Size: 222 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# environment-hub
This project aims to provide a Kubernetes compatible environment quickly. Especially for the testing purpose.
## Get started
```shell
docker run -v /var/run/docker.sock:/var/run/docker.sock \
-p 9090:8080 \
ghcr.io/linuxsuren/environment-hub:master
```
## Use Case 1
```shell
export SERVER=http://172.11.0.6:9090
curl -XPOST '$SERVER/v1/k3d/clusters' -d '{"servers":1,"agents":1,"port":30000,"name":"hello"}'
curl '$SERVER/v1/k3d/clusters/hello/kubeconfig' -o test.yaml
helm --kubeconfig=test.yaml --kube-insecure-skip-tls-verify=true install atest oci://docker.io/linuxsuren/api-testing \
--version v0.0.2-helm \
--set service.nodePort=30000 \
--set service.type=NodePort \
--set image.tag=v0.0.15 \
--set persistence.enabled=false
kubectl --kubeconfig=test.yaml --insecure-skip-tls-verify=true get pod -A
curl 'http://172.11.0.6:9090/v1/k3d/clusters/hello/portbinding?port=30000'
```
## Install Helm
```shell
curl http://localhost:9090/v1/k3d/clusters/test/install -XPOST \
-d '{"name": "skywalking", "values": ["ui.image.tag=9.2.0", "oap.image.tag=9.2.0", "oap.storageType=elasticsearch"], "namespace": "default", "repoURL": "https://apache.jfrog.io/artifactory/skywalking-helm", "version": "4.3.0"}'
```