<p>I want to know that how to use api to curd my crd resources with api. And I can write a sdk to control resources.</p>
<p>Use kubectl just</p>
<pre class="lang-sh prettyprint-override"><code>kubectl get inferenceservices test-sklearn -n kserve-test

kubectl apply -f xx.yaml -n kserve-test
kubectl delete -f xx.yaml -n kserve-test
</code></pre>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: &quot;serving.kubeflow.org/v1beta1&quot;
kind: &quot;InferenceService&quot;
metadata:
  name: &quot;test-sklearn&quot;
spec:
  predictor:
    sklearn:
        storageUri: &quot;http://xxxx&quot;

</code></pre>

wyx
<p>get call process in <code>process_log</code></p>
<pre><code>kubectl get inferenceservices test-sklearn -n kserve-test --v=8  &gt; process_log 2&gt;&amp;1
</code></pre>
<p>use kubectl proxy to test</p>
<pre><code>kubectl proxy --address 0.0.0.0 --accept-hosts=^.*
</code></pre>
<p>TEST to get resource status</p>
<pre><code>GET http://xxx:8001/apis/serving.kubeflow.org/v1beta1/namespaces/kserve-test/inferenceservices/test-sklearn
</code></pre>
