-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
- Loading branch information
1 parent
73d8e06
commit ec77bfe
Showing
6 changed files
with
203 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[crio.image] | ||
signature_policy = "/etc/crio/policy.json" | ||
|
||
[crio.runtime] | ||
log_level = "debug" | ||
drop_infra_ctr = false | ||
default_runtime = "runc" | ||
|
||
[crio.runtime.runtimes.crun] | ||
runtime_path = "/usr/libexec/crio/crun" | ||
monitor_path = "/usr/libexec/crio/conmon" | ||
|
||
[crio.runtime.runtimes.runc] | ||
runtime_path = "/usr/libexec/crio/runc" | ||
monitor_path = "/usr/libexec/crio/conmon" | ||
|
||
[crio.runtime.runtimes.test-handler] | ||
runtime_path = "/usr/libexec/crio/runc" | ||
monitor_path = "/usr/libexec/crio/conmon" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
--- | ||
variant: fcos | ||
version: 1.4.0 | ||
kernel_arguments: | ||
should_not_exist: | ||
- mitigations=auto,nosmt | ||
storage: | ||
files: | ||
- path: /etc/zincati/config.d/90-disable-auto-updates.toml | ||
contents: | ||
local: 90-disable-auto-updates.toml | ||
mode: 0644 | ||
- path: /root/kubelet-e2e.te | ||
contents: | ||
local: kubelet-e2e.te | ||
mode: 0644 | ||
- path: /etc/crio/crio.conf.d/20-crio.conf | ||
contents: | ||
local: 20-crio-v2.conf | ||
mode: 0644 | ||
- path: /etc/sysctl.d/99-e2e-sysctl.conf | ||
contents: | ||
local: 99-e2e-sysctl.conf | ||
mode: 0644 | ||
- path: /etc/ssh-key-secret/ssh-public | ||
contents: | ||
# base64 encoded "GCE_SSH_PUBLIC_KEY_FILE_CONTENT" | ||
source: data:text/plain;base64,R0NFX1NTSF9QVUJMSUNfS0VZX0ZJTEVfQ09OVEVOVA== | ||
mode: 0644 | ||
systemd: | ||
units: | ||
- name: configure-sysctl.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Configure required sysctls. | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/lib/systemd/systemd-sysctl | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: tools-install.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Download and install required tools. | ||
Before=crio-install.service | ||
After=NetworkManager-wait-online.service | ||
[Service] | ||
Type=oneshot | ||
ExecStart=rpm-ostree install \ | ||
-y \ | ||
--apply-live \ | ||
--allow-inactive \ | ||
dbus-tools \ | ||
checkpolicy | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: selinux-install.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Setup SELinux policy | ||
After=tools-install.service | ||
[Service] | ||
Type=oneshot | ||
ExecStartPre=setenforce 1 | ||
ExecStartPre=checkmodule -M -m -o /root/kubelet-e2e.mod /root/kubelet-e2e.te | ||
ExecStartPre=semodule_package -o /root/kubelet-e2e.pp -m /root/kubelet-e2e.mod | ||
ExecStartPre=semodule -i /root/kubelet-e2e.pp | ||
ExecStartPre=mkdir -p /var/lib/kubelet | ||
ExecStart=chcon -R -u system_u -r object_r -t var_lib_t /var/lib/kubelet | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: crio-install.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Download and install crio binaries and configurations. | ||
After=selinux-install.service | ||
[Service] | ||
Type=oneshot | ||
Environment="SCRIPT_COMMIT=52aa3c2a31ccc9623962e9e338b6585267d6f3f4" | ||
Environment="CRIO_COMMIT=1c04ca9768e535cf22017da6e6cee620bb3a6431" | ||
ExecStartPre=mount /tmp /tmp -o remount,exec,suid | ||
ExecStartPre=mount -o remount,rw /dev/sda4 /usr | ||
ExecStartPre=bash -c '\ | ||
curl --fail --retry 5 --retry-delay 3 --silent --show-error \ | ||
https://raw.githubusercontent.com/cri-o/packaging/$SCRIPT_COMMIT/get |\ | ||
bash -s -- -t $CRIO_COMMIT' | ||
ExecStartPre=rm -f /etc/cni/net.d/87-podman-bridge.conflist | ||
ExecStartPre=rm -f /etc/crio/crio.conf.d/10-crio.conf | ||
ExecStart=systemctl enable --now crio.service | ||
Restart=on-failure | ||
[Install] | ||
WantedBy=multi-user.target | ||
- name: authorized-key.service | ||
enabled: true | ||
contents: | | ||
[Unit] | ||
Description=Copy authorized keys | ||
Before=crio-install.service | ||
After=NetworkManager-wait-online.service | ||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/sh -c '\ | ||
/usr/bin/mkdir -m 0700 -p /home/core/.ssh && \ | ||
/usr/bin/cat /etc/ssh-key-secret/ssh-public \ | ||
>> /home/core/.ssh/authorized_keys && \ | ||
/usr/bin/chown -R core:core /home/core/.ssh && \ | ||
/usr/bin/chmod 0600 /home/core/.ssh/authorized_keys' | ||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters