Skip to content

Latest commit

 

History

History
58 lines (54 loc) · 2.7 KB

File metadata and controls

58 lines (54 loc) · 2.7 KB

Readme for the Kubernetes on ARM root filesystem

v0.7.0

/etc/

  • kubernetes/
    • dropins/
      • docker-flannel.conf - A dropin file which reads /var/lib/flannel/subnet.env and commands docker to use that flannel subnet. Is used when Kubernetes is running.
      • docker-overlay.conf - The "normal" dropin, which is enabled when Kubernetes isn't. Fixes a systemd bug, uses overlay and plays well with system-docker
    • dynamic-env/
      • env.conf - A file specifies which OS and board it's running on. Options: the files that are in os/ and board/. kube-config uses these files to e.g install docker on various platforms.
      • os/
        • Here are customization scripts for the OSes supported
      • board/
        • Here are customization scripts for the boards supported
    • static-pods/
      • master/
        • master.json - This file is important. This is the definition of the master´s Kubernetes components, which run as a static pod
      • worker/
        • Here and in master/ you may put .json files and they will run as static pods
    • source/
      • This project´s source. All kubernetes-on-arm code is copied when the rootfs is packaged.
    • binaries/
      • Symlink to source/images/kubernetesonarm/_bin/latest
      • Here are the Kubernetes binaries stored.
    • addons/
      • Symlink to source/addons
    • k8s.conf - Configuration file for this project
  • profile.d/
    • binaries-in-PATH.sh - Adds /etc/kubernetes/binaries to $PATH
    • system-docker.sh - Adds the system-docker alias
  • systemd/
    • network/
      • dns.network - A .network file for Arch Linux, enables DHCP for eth0, sets the search and nameserver commands to /etc/resolv.conf

/usr/

  • bin/
    • kube-config - The heavy-lifting script. May install everything required for Kubernetes, start and stop it and much more.
  • lib/systemd/system
    • system-docker.socket - The /var/run/system-docker.sock socket. Required by system-docker
    • system-docker.service - A bootstrap docker daemon, used for running etcd and flannel
    • etcd.service - etcd is used as data store. Uses /var/lib/kubernetes/etcd as storage dir.
    • flannel.service - flannel is the provider of the overlay network.
    • k8s-master.service - Runs kubelet and kube-proxy in a container and also starts the master containers.
    • k8s-worker.service - Runs kubelet and kube-proxy in a container /var/lib
  • kubernetes/
    • certs/
      • Kubernetes apiserver´s self-signed scripts are here
    • etcd/
      • Kubernetes data is stored here (when the master is running)
    • flannel/
      • subnet.env - Flannel subnet options
  • system-docker/
    • Same as /var/lib/docker but for system-docker
  • kubelet/
    • The kubelet directory