kubelet: Use install-packages service
The packages for the Kubelet are now installed by the *install-packages* service, so they can be processed int he same transaction as other packages (e.g. collectd).master
parent
bdeb44ae36
commit
7926769528
|
@ -1,19 +0,0 @@
|
||||||
# vim: set ft=systemd :
|
|
||||||
[Unit]
|
|
||||||
Description=Install Kubernetes/Kubelet
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
Before=zincati.service
|
|
||||||
ConditionPathExists=!/usr/bin/kubectl
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
ExecStart=/usr/bin/rpm-ostree install --apply-live --allow-inactive \
|
|
||||||
cri-o \
|
|
||||||
iscsi-initiator-utils \
|
|
||||||
kubernetes-node \
|
|
||||||
kubernetes-kubeadm
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
25
kubelet.yaml
25
kubelet.yaml
|
@ -1,26 +1,43 @@
|
||||||
variant: fcos
|
variant: fcos
|
||||||
version: 1.4.0
|
version: 1.4.0
|
||||||
|
ignition:
|
||||||
|
config:
|
||||||
|
merge:
|
||||||
|
- local: packages.ign
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
files:
|
files:
|
||||||
- path: /etc/systemd/system/install-kubelet.service
|
- path: /etc/ignition/packages.d/kubelet
|
||||||
contents:
|
|
||||||
local: install-kubelet.service
|
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
contents:
|
||||||
|
inline: |
|
||||||
|
cri-o
|
||||||
|
kubernetes-node
|
||||||
|
kubernetes-kubeadm
|
||||||
|
|
||||||
- path: /etc/modules-load.d/k8s.conf
|
- path: /etc/modules-load.d/k8s.conf
|
||||||
contents:
|
contents:
|
||||||
inline: |+
|
inline: |+
|
||||||
br_netfilter
|
br_netfilter
|
||||||
|
|
||||||
- path: /etc/sysctl.d/k8s.conf
|
- path: /etc/sysctl.d/k8s.conf
|
||||||
contents:
|
contents:
|
||||||
inline: |+
|
inline: |+
|
||||||
net.bridge.bridge-nf-call-iptables = 1
|
net.bridge.bridge-nf-call-iptables = 1
|
||||||
net.bridge.bridge-nf-call-ip6tables = 1
|
net.bridge.bridge-nf-call-ip6tables = 1
|
||||||
net.ipv4.ip_forward = 1
|
net.ipv4.ip_forward = 1
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- path: /etc/resolv.conf
|
- path: /etc/resolv.conf
|
||||||
overwrite: true
|
overwrite: true
|
||||||
target: ../run/systemd/resolve/resolv.conf
|
target: ../run/systemd/resolve/resolv.conf
|
||||||
|
|
||||||
|
- path: /etc/systemd/system/after-install.target.wants/crio.service
|
||||||
|
target: /usr/lib/systemd/system/crio.service
|
||||||
|
|
||||||
systemd:
|
systemd:
|
||||||
units:
|
units:
|
||||||
- name: install-kubelet.service
|
- name: crio.service
|
||||||
|
enabled: true
|
||||||
|
- name: kubelet.service
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Reference in New Issue