Created
November 3, 2021 20:07
-
-
Save mangelajo/3e3a66921d5ae097ee455eee4fb991a4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
lang en_US.UTF-8 | |
keyboard us | |
timezone UTC | |
rootpw microshift | |
%post | |
dnf copr enable @redhat-et/microshift-nightly | |
sudo dnf module -y enable cri-o:1.20 | |
sudo dnf install -y microshift nss-mdns avahi firewalld | |
sudo sh -c 'cat << EOF > /etc/cni/net.d/100-crio-bridge.conf | |
{ | |
"cniVersion": "0.4.0", | |
"name": "crio", | |
"type": "bridge", | |
"bridge": "cni0", | |
"isGateway": true, | |
"ipMasq": true, | |
"hairpinMode": true, | |
"ipam": { | |
"type": "host-local", | |
"routes": [ | |
{ "dst": "0.0.0.0/0" } | |
], | |
"ranges": [ | |
[{ "subnet": "10.42.0.0/24" }] | |
] | |
} | |
} | |
EOF' | |
hostnamectl set-hostname microshift.local | |
systemctl enable avahi-daemon.service | |
systemctl enable crio | |
systemctl enable microshift | |
systemctl enable firewalld | |
firewall-cmd --zone=public --permanent --add-port=22/tcp | |
firewall-cmd --zone=public --permanent --add-port=6443/tcp | |
firewall-cmd --zone=public --permanent --add-port=30000-32767/tcp | |
firewall-cmd --zone=public --permanent --add-port=2379-2380/tcp | |
firewall-cmd --zone=public --add-masquerade --permanent | |
firewall-cmd --zone=public --add-port=80/tcp --permanent | |
firewall-cmd --zone=public --add-port=443/tcp --permanent | |
firewall-cmd --zone=public --add-port=10250/tcp --permanent | |
firewall-cmd --zone=public --add-port=10251/tcp --permanent | |
firewall-cmd --permanent --zone=trusted --add-source=10.42.0.0/16 | |
firewall-cmd --reload | |
firewall-cmd --permanent --change-zone=eth0 --zone=public | |
cd /usr/local/bin | |
curl https://mirror.openshift.com/pub/openshift-v4/aarch64/clients/ocp/stable/openshift-client-linux-4.9.4.tar.gz | tar xvfz - | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment