mirror of
https://github.com/hanzo-ml/kuberay.git
synced 2026-10-30 19:48:47 +00:00
26 lines
782 B
Plaintext
26 lines
782 B
Plaintext
# Create
|
|
curl -X POST 'localhost:8888/apis/v1/namespaces/default/compute_templates' \
|
|
--header 'Content-Type: application/json' \
|
|
--data '{
|
|
"name": "default-template",
|
|
"namespace": "default",
|
|
"cpu": 2,
|
|
"memory": 4
|
|
}'
|
|
|
|
# List for given namespace
|
|
curl 'localhost:8888/apis/v1/namespaces/default/compute_templates' \
|
|
--header 'Content-Type: application/json'
|
|
|
|
# List for all namespaces
|
|
curl 'localhost:8888/apis/v1/compute_templates' \
|
|
--header 'Content-Type: application/json'
|
|
|
|
# Get by name
|
|
curl 'localhost:8888/apis/v1/namespaces/default/compute_templates/default-template' \
|
|
--header 'Content-Type: application/json'
|
|
|
|
# Delete by name
|
|
curl -X DELETE 'localhost:8888/apis/v1/namespaces/default/compute_templates/default-template' \
|
|
--header 'Content-Type: application/json'
|