environment-hub

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

environment-hub

This project aims to provide a Kubernetes compatible environment quickly. Especially for the testing purpose.

Get started

docker run -v /var/run/docker.sock:/var/run/docker.sock \
    -p 9090:8080 \
    ghcr.io/linuxsuren/environment-hub:master

Use Case 1

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

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"}'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL