-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtips.txt
28 lines (19 loc) · 1.62 KB
/
tips.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(Quarkus build to OCP)
./mvnw clean package -Dquarkus.kubernetes.deploy=true
Use "sudo -i" on the funcbuilder
oc get secret infinispan-generated-secret -o jsonpath="{.data.identities\.yaml}" | base64 --decode
(Example call to add data)
http://gridconnect-insecuretest.apps.bloomfield.demolab.local/grid/add?cache=testcache5&key=entry1&value=hello%20world
(Adding and testing for data)
sh-5.0$ curl -k -X POST -u developer:yqDVtkqPECriaLRi https://infinispan:11222/rest/v2/caches/default
sh-5.0$ curl -k -X POST -u developer:yqDVtkqPECriaLRi -H 'Content-type: text/plain' -d 'world' https://infinispan:11222/rest/v2/caches/default/hello
sh-5.0$ curl -k -X GET -u developer:yqDVtkqPECriaLRi https://infinispan:11222/rest/v2/caches/default/hello
(Insecure mode, using insecuregrid.yaml)
curl -X POST http://kneuralgrid:11222/rest/v2/caches/neuralnet
curl -X POST -H 'Content-type: text/plain' -d 'world' http://kneuralgrid:11222/rest/v2/caches/neuralnet/hello
curl -X GET http://kneuralgrid:11222/rest/v2/caches/neuralnet/hello
curl --digest -k -L -D - "https://infinispan:11222/rest/v2/cache/neuralcache" --header "Content-Type: application/json" -u "developer:NQFcLwsEVBUWFtLK" --verbose
(Example data process)
(Create cache) https://gridconnect-serverlessdemo.apps.cluster-nx2vs.nx2vs.sandbox1571.opentlc.com/grid/create?cache=mytestcache
(Add data) https://gridconnect-serverlessdemo.apps.cluster-nx2vs.nx2vs.sandbox1571.opentlc.com/grid/add?cache=mytestcache&key=testkey1&value=testvalue1
(Fetch data) https://gridconnect-serverlessdemo.apps.cluster-nx2vs.nx2vs.sandbox1571.opentlc.com/grid/add?cache=mytestcache&key=testkey1&value=testvalue1