diff options
Diffstat (limited to 'recipes-containers/kubernetes/kubernetes_git.bb')
| -rw-r--r-- | recipes-containers/kubernetes/kubernetes_git.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes-containers/kubernetes/kubernetes_git.bb b/recipes-containers/kubernetes/kubernetes_git.bb index 82edadd6..7cdef2c7 100644 --- a/recipes-containers/kubernetes/kubernetes_git.bb +++ b/recipes-containers/kubernetes/kubernetes_git.bb | |||
| @@ -31,6 +31,7 @@ SRC_URI:append = " \ | |||
| 31 | file://0001-build-golang.sh-convert-remaining-go-calls-to-use.patch \ | 31 | file://0001-build-golang.sh-convert-remaining-go-calls-to-use.patch \ |
| 32 | file://0001-Makefile.generated_files-Fix-race-issue-for-installi.patch \ | 32 | file://0001-Makefile.generated_files-Fix-race-issue-for-installi.patch \ |
| 33 | file://cni-containerd-net.conflist \ | 33 | file://cni-containerd-net.conflist \ |
| 34 | file://k8s-init \ | ||
| 34 | " | 35 | " |
| 35 | 36 | ||
| 36 | DEPENDS += "rsync-native \ | 37 | DEPENDS += "rsync-native \ |
| @@ -100,11 +101,16 @@ do_install() { | |||
| 100 | 101 | ||
| 101 | install -m 0644 ${WORKDIR}/git/release/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service ${D}${systemd_unitdir}/system/ | 102 | install -m 0644 ${WORKDIR}/git/release/cmd/kubepkg/templates/latest/deb/kubelet/lib/systemd/system/kubelet.service ${D}${systemd_unitdir}/system/ |
| 102 | install -m 0644 ${WORKDIR}/git/release/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf ${D}${systemd_unitdir}/system/kubelet.service.d/ | 103 | install -m 0644 ${WORKDIR}/git/release/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf ${D}${systemd_unitdir}/system/kubelet.service.d/ |
| 104 | |||
| 105 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 106 | install -d "${D}${BIN_PREFIX}/bin" | ||
| 107 | install -m 755 "${WORKDIR}/k8s-init" "${D}${BIN_PREFIX}/bin" | ||
| 108 | fi | ||
| 103 | } | 109 | } |
| 104 | 110 | ||
| 105 | CNI_NETWORKING_FILES ?= "${WORKDIR}/cni-containerd-net.conflist" | 111 | CNI_NETWORKING_FILES ?= "${WORKDIR}/cni-containerd-net.conflist" |
| 106 | 112 | ||
| 107 | PACKAGES =+ "kubeadm kubectl kubelet kube-proxy ${PN}-misc" | 113 | PACKAGES =+ "kubeadm kubectl kubelet kube-proxy ${PN}-misc ${PN}-host" |
| 108 | 114 | ||
| 109 | ALLOW_EMPTY:${PN} = "1" | 115 | ALLOW_EMPTY:${PN} = "1" |
| 110 | INSANE_SKIP:${PN} += "ldflags already-stripped" | 116 | INSANE_SKIP:${PN} += "ldflags already-stripped" |
| @@ -131,6 +137,10 @@ FILES:kubectl = "${bindir}/kubectl" | |||
| 131 | FILES:kube-proxy = "${bindir}/kube-proxy" | 137 | FILES:kube-proxy = "${bindir}/kube-proxy" |
| 132 | FILES:${PN}-misc = "${bindir}" | 138 | FILES:${PN}-misc = "${bindir}" |
| 133 | 139 | ||
| 140 | ALLOW_EMPTY:${PN}-host = "1" | ||
| 141 | FILE:${PN}-host = "${BIN_PREFIX}/bin/k8s-init" | ||
| 142 | RDEPENDS:${PN}-host = "${PN}" | ||
| 143 | |||
| 134 | RRECOMMENDS:${PN} = "\ | 144 | RRECOMMENDS:${PN} = "\ |
| 135 | kernel-module-xt-addrtype \ | 145 | kernel-module-xt-addrtype \ |
| 136 | kernel-module-xt-nat \ | 146 | kernel-module-xt-nat \ |
