Changes

Jump to navigation Jump to search
22 bytes removed ,  7 November
m
Line 41: Line 41:  
</pre>
 
</pre>
   −
==== 2. Creating a checkpoint of the running container ====
+
==== 2. Create <code>client-admin.crt</code> and <code>client-admin.key</code> files ====
   −
<pre>
+
These certificate and key files will be used to authorize the use of the checkpoint API:
curl -X POST "https://localhost:10250/checkpoint/default/counters/counter"
  −
</pre>
  −
 
  −
The following command-line options are necessary for <code>curl</code> to accept the kubelet's self-signed certificate (<code>--insecure</code>) and authorize the use of the checkpoint API (<code>--cert</code>, <code>--key</code>).
     −
<pre>
  −
--insecure --cert client-admin.crt --key client-admin.key
  −
</pre>
  −
  −
The <code>client-admin.crt</code> and <code>client-admin.key</code> files can be created as follows:
   
<pre>
 
<pre>
 
kubectl config view --raw --minify -o jsonpath='{.users[0].user.client-certificate-data}' \
 
kubectl config view --raw --minify -o jsonpath='{.users[0].user.client-certificate-data}' \
Line 64: Line 55:  
chmod 600 client-admin.key
 
chmod 600 client-admin.key
 
</pre>
 
</pre>
 +
 +
==== 3. Creating a checkpoint of the running container ====
 +
 +
<pre>
 +
curl --insecure \
 +
  --cert client-admin.crt \
 +
  --key client-admin.key \
 +
  -X POST "https://localhost:10250/checkpoint/default/counters/counter"
 +
</pre>
 +
 +
The <code>--insecure</code> command-line option is necessary for <code>curl</code> to accept the kubelet's self-signed certificate.
509

edits

Navigation menu