You are not logged in.
Hi,
as I am currently messing around with Docker containers and looking into orchestration, I wanted to install Kubernetes on my machine (as there is already cockpit in AUR). Unfortunately all scripts I found so far to install it were for Fedora or Debian based distros.
I was wondering if anyone could create a PKGBUILD to install Kubernetes and all its required services to install it on Arch as well?
Thanks a lot!
Offline
I quickly glanced at it.
Do you know how to properly run it, I suppose? There are many directories, would putting every one of them under (say) /usr/share/kubernetes or /opt/kubernetes work elegantly? If you provide a little more information regarding how to build it and which of its files are important, maybe I could package it.
Offline
Hi thiagowfx,
thanks for your reply. I think putting everything under the suggested directory is fine. Also etcd is required either on the same machine or another one in the cluster (so I presume it would be optional). Other requirements are: docker (at least version 1.3) and go (at least version 1.3).
The original URL is this: http://kubernetes.io/
Also I found this URL which should show all the services needed to be started: https://access.redhat.com/articles/1198103
I don't know if kubernetes comes with the necessary service files for systemd so maybe some of them have to be written manually.
As far as I know for the kubernetes-master part the following services need to be enabled:
- etcd (if installed on the same machine that the master is installed to)
- kube-apiserver
- kube-scheduler
- kube-controller-manager
The following components need to be running on slaves:
- kube-proxy
- kubelet
So I don't know which is better, to create distinct packages for master and slave or just create one and ship everything and let the user choose what to start/enable based on their needs.
So far this is all information I have right now. However if I can help in any way to have to PKGBUILD being created I am totally willing to do so. I think it would be awesome to have it running on Arch since I only found RedHat and CentOS officially being supported as well as some install scripts for Debian and Ubuntu. Arch so far is nowhere mentioned yet so far. And with cockpit already being in AUR it would be great to have Kubernetes being available as well.
Thanks for your willingness to help and again, let me know if I can provide support in any way to have the PKGBUILD created. ![]()
Offline
Here's where the releases are located: https://github.com/GoogleCloudPlatform/ … s/releases
Offline
OK, in case the systemd scripts won't be shipped with the archive above, here's a link to some systemd scripts: https://github.com/GoogleCloudPlatform/ … it/systemd
Offline
Hello there kurisutian,
This is a starting point: URL.
It will be more complicated than anything I've packaged before, because there are several details to consider. I mean, it is not just a matter of copying files here and there; we also have to understand how to use the program so we can put the files in the right places.
Unfortunately, just putting everything under /usr/share or /opt would not yield a good result for this package in particular.
Also, note that those service files (systemd) requires an user to exist -- so we'll have to create one too.
Overall: I will probably not maintain this package (due of what I said before and because I don't have interest in it ATM), however I'm willing to help you to create it. Do you want to try to improve the PKGBUILD? You can send me a pull request if you want to quickly notify me about any changes you make.
Offline
Hi thiagowfx,
thanks for your help. I really suck at this but nevertheless I would love to help and get something up and ready. Especially with cockpit and etcd already being in AUR this would be a good thing to add. So I will keep posting information for starters on what I find, if this is OK with you.
I just installed fedora atomic and it does not seem that there is some extra user required. All the executables so far seem to be installed under /usr/bin at least for the fedora installation.
So thanks for your support and let's see if we can get something going. Maybe others will join as well. ![]()
Offline
Here's a build script to have it running on Ubuntu. So far it seems like also Flannel is needed for overlay networking: https://github.com/GoogleCloudPlatform/ … u/build.sh
Offline