Commit 32e5849b authored by Hilal Ozdemir's avatar Hilal Ozdemir

update docs for using kubernetes with beiran

parent 53d5560a
......@@ -9,13 +9,18 @@ That's very simple. Give the path of Beiran's cri endpoint to kubelet's command
kubelet --image-service-endpoint=unix:///var/run/beiran-cri.sock
For example, if you are running kubelet with systemd, please edit the configuration file like as follows::
If you are running kubelet with systemd, please edit the configuration file `/etc/systemd/system/kubelet.service.d/10-kubeadm.conf` as follows::
[Service]
...
Environment="KUBELET_CERTIFICATE_ARGS=--rotate-certificates=true --cert-dir=/var/lib/kubelet/pki"
Environment="KUBELET_EXTRA_ARGS=--image-service-endpoint=unix:///var/run/beiran-cri.sock"
**Environment="KUBELET_EXTRA_ARGS=--image-service-endpoint=unix:///var/run/beiran-cri.sock"**
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_SYSTEM_PODS_ARGS $KUBELET_NETWORK_ARGS $KUBELET_DNS_ARGS $KUBELET_AUTHZ_ARGS $KUBELET_CADVISOR_ARGS $KUBELET_CERTIFICATE_ARGS $KUBELET_EXTRA_ARGS
Then to restart kubelet, run::
systemctl daemon-reload && systemctl restart kubelet
Note that `/var/run` is the default location for Beiran unix sockets. If `BEIRAN_RUN_DIR` environment variable or `run_dir` in Beiran config file is set to something else, unix sockets will be there. If you have difficulty determining the path of Beiran's cri endpoint, you can check Beiran daemon's log messages starting with `[beiran.plugin.k8s]`.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment