how to add in-tree volume glusterfs to k3s

how to add in-tree volume glusterfs to k3s

1.download k3s source code, choose the version which you want to install.
2.find current code use which version of k8s.io/kubernetes. You can find it in go.mod.
example:
k3s version is v1.25.0+k3s1
k8s.io/kubernetes => github.com/k3s-io/kubernetes v1.25.0-k3s1
3.download github.com/k3s-io/kubernetes , you need choose version which you find in previous step.
4.modify the github.com/k3s-io/kubernetes code. You can find the content in here.
https://github.com/TonyZZhang/k3s-io-k8s-1.23/commit/90369d3837527fb1818c3cd72e7a7f55ff0ed12f
5.commit new code in your github or other code hub.
6.modify k3s source code go.mod file, make k8s.io/kubernetes => your code address.
7.rebuild code.

你可能感兴趣的:(kubernetes,kubernetes,docker)