{"id":5,"date":"2023-07-31T07:12:09","date_gmt":"2023-07-31T07:12:09","guid":{"rendered":"http:\/\/192.168.0.142\/?p=5"},"modified":"2023-08-11T11:39:28","modified_gmt":"2023-08-11T11:39:28","slug":"installation-of-microshift-4-13-on-redhat-enterprise-linux-9-2","status":"publish","type":"post","link":"http:\/\/192.168.0.142\/installation-of-microshift-4-13-on-redhat-enterprise-linux-9-2\/","title":{"rendered":"MicroShift 4.13 installation on RedHat Enterprise Linux 9.2"},"content":{"rendered":"\n
Prerequisite <\/strong><\/p>\n\n\n\n Red Hat Enterprise Linux 9.2. <\/p>\n\n\n\n Please refer Installation of Red Hat Enterprise Linux 9.2 using developer account<\/a> for installation of RHEL 9.2.<\/p>\n\n\n\n Enable the Red Hat build of MicroShift repositories by running the following command<\/strong><\/p>\n\n\n\n Install Red Hat build of MicroShift and openshift clients by running the following command.<\/strong><\/p>\n\n\n\n Configure firewall rules<\/strong><\/p>\n\n\n\n Download pull secret for Red Hat registry authentication<\/strong><\/p>\n\n\n\n Open https:\/\/console.redhat.com\/openshift\/install\/pull-secret <\/a>and click on ‘Download pull secret’. Pull secret file is downloaded as ‘pull-secret.txt’ file.<\/p>\n\n\n\n Conifgure pull-secret.json<\/strong><\/p>\n\n\n\n Start the MicroShift service<\/strong><\/p>\n\n\n\n To start MicroShift when machine starts, enter the following command<\/p>\n\n\n\n Check the service logs by running below command<\/p>\n\n\n\n Create kubeconfig file in home directory<\/p>\n\n\n\n Check the status of pods by running below command. The installation might take several minutes to complete.<\/p>\n\n\n\n Prerequisite Red Hat Enterprise Linux 9.2. Please refer Installation of Red Hat Enterprise Linux 9.2 using developer account for installation of RHEL 9.2. Enable the Red Hat build of MicroShift repositories by running the following command Install Red Hat build of MicroShift and openshift clients by running the following command. Configure firewall rules Download pull … Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":249,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[5,3],"_links":{"self":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/5"}],"collection":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/comments?post=5"}],"version-history":[{"count":9,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":896,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/5\/revisions\/896"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media\/249"}],"wp:attachment":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media?parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/categories?post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/tags?post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}sudo subscription-manager repos \\\n --enable rhocp-4.13-for-rhel-9-$(uname -m)-rpms \\\n --enable fast-datapath-for-rhel-9-$(uname -m)-rpms<\/code><\/pre>\n\n\n\n
sudo dnf install -y microshift openshift-clients<\/code><\/pre>\n\n\n\n
sudo firewall-cmd --permanent --zone=trusted --add-source=10.42.0.0\/16\nsudo firewall-cmd --permanent --zone=trusted --add-source=169.254.169.1\nsudo firewall-cmd --reload<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\n
\n
sudo cp pull-secret.json \/etc\/crio\/openshift-pull-secret<\/code><\/pre>\n\n\n\n
\n
sudo chown root:root \/etc\/crio\/openshift-pull-secret<\/code><\/pre>\n\n\n\n
\n
sudo chmod 600 \/etc\/crio\/openshift-pull-secret<\/code><\/pre>\n\n\n\n
sudo systemctl start microshift<\/code><\/pre>\n\n\n\n
sudo systemctl enable microshift<\/code><\/pre>\n\n\n\n
journalctl -u microshift.service -f<\/code><\/pre>\n\n\n\n
mkdir ~\/.kube\nsudo cat \/var\/lib\/microshift\/resources\/kubeadmin\/kubeconfig > ~\/.kube\/config<\/code><\/pre>\n\n\n\n
[ability@localhost ~]$ oc get po -A\nNAMESPACE NAME READY STATUS RESTARTS AGE\nopenshift-dns node-resolver-mcdxd 0\/1 ContainerCreating 0 2m3s\nopenshift-ingress router-default-65864549b5-fbrkl 0\/1 Pending 0 2m3s\nopenshift-ovn-kubernetes ovnkube-master-q729v 0\/4 ContainerCreating 0 2m3s\nopenshift-ovn-kubernetes ovnkube-node-spbf4 0\/1 ContainerCreating 0 2m3s\nopenshift-service-ca service-ca-764bd7f7b7-c82g5 0\/1 Pending 0 2m4s\nopenshift-storage topolvm-controller-f58fcd7cb-m9ng4 0\/4 Pending 0 2m3s<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"