-
Notifications
You must be signed in to change notification settings - Fork 2
Lab‐1: Install Microshift
anandpavithran edited this page Sep 18, 2024
·
10 revisions
- Access the RH134 Workstation.
- Open firefox and download the file (microshiftrepo.tar) from the following link.
https://drive.google.com/file/d/1k3fODGbKbrzkgf_i7jQy8hkeEc6LJCol/view?usp=sharing
- Copy the file to servera machine
[student@workstation ~]$ scp /home/student/Downloads/microshiftrepo.tar student@servera:
- From workstation, access servera as student user
[student@workstation ~]$ ssh student@servera - From terminal of servera list the files
[student@servera ~]$ ls - Extract the packages required for installation
[student@servera ~]$ tar -xvf microshiftrepo.tar - Switch to package directory
[student@servera ~]$ cd /home/student/root/microshiftrepo - Install the required packages.
[student@servera microshiftrepo]$ sudo dnf install * -y
[student@servera microshiftrepo]$ cd
- Download pullsecret to workstation using RedHat account from the url below
https://console.redhat.com/openshift/create/local
- Copy the pullsecret
[student@workstation ~]$ scp /home/student/Downloads/pull-secret root@servera:/etc/crio/openshift-pull-secret
- Change the ownership and permission of pullsecret file
[student@servera ~]$ sudo chown root:root /etc/crio/openshift-pull-secret
[student@servera ~]$ sudo chmod 600 /etc/crio/openshift-pull-secret
- Configure LVM
[student@servera ~]$ sudo fdisk -l
[student@servera ~]$ sudo pvcreate /dev/vd{b,c,d}
[student@servera ~]$ sudo vgcreate vmdisk /dev/vd{b,c,d}
[student@servera ~]$ sudo vgs
- Create a file for configuring lvm based permanent storage for microshift. Copy from
https://github.com/anandpavithran/microshift/blob/main/lvmd.yaml
[student@servera ~]$ sudo vi /etc/microshift/lvmd.yaml
- Disable the firewalld as it is the lab environment.
[student@servera ~]$ sudo systemctl disable firewalld – -now(two hyphens)
- Start and enable microshift
[student@servera ~]$ sudo systemctl enable microshift – -now(two hyphens)
- Configure access to Microshift
[student@servera ~]$ mkdir .kube
[student@servera ~]$ sudo cp /var/lib/microshift/resources/kubeadmin/kubeconfig ~/.kube/config
[student@servera ~]$ sudo chown student:student ~/.kube/config
[student@servera ~]$ oc get pod -A