Skip to content

danijel-soldo/microshift-installer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is an automated installation for Microshift Kubernetes platform.

Installation Pre-Requisites

  • Requires Fedora (tested on Fedora 35)
  • Internet connectivity

Installation

  • Run the following:
curl -sfL https://raw.githubusercontent.com/nerdalert/microshift-installer/main/microshift-install.sh |  sh -s -
  • Alternatively, pull the repo and run the script:
git clone https://github.com/nerdalert/microshift-installer.git
cd microshift-installer
./microshift-install.sh

Validate the Installation

  • Depending on the resources of the node, it may take a few minutes for the pods to initialize

View the running pods:

$ export KUBECONFIG=~/.kube/config

$ kubectl get pods --all-namespaces -o wide
NAMESPACE                       NAME                                  READY   STATUS    RESTARTS   AGE    IP             NODE        NOMINATED NODE   READINESS GATES
kube-system                     kube-flannel-ds-lsfdz                 1/1     Running   0          161m   192.168.1.72   cluster-a   <none>           <none>
kubevirt-hostpath-provisioner   kubevirt-hostpath-provisioner-79k7v   1/1     Running   0          160m   10.42.0.2      cluster-a   <none>           <none>
openshift-dns                   dns-default-7xgc7                     2/2     Running   0          161m   10.42.0.4      cluster-a   <none>           <none>
openshift-dns                   node-resolver-8vjf4                   1/1     Running   0          161m   192.168.1.72   cluster-a   <none>           <none>
openshift-ingress               router-default-6c96f6bc66-r7msl       1/1     Running   0          161m   192.168.1.72   cluster-a   <none>           <none>
openshift-service-ca            service-ca-7bffb6f6bf-4jpcf           1/1     Running   0          161m   10.42.0.3      cluster-a   <none>           <none>
  • Once the pods are all in a running status, you can run the following deployment lets you test connectivity from a new pod
cat << EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
  name: "test"
spec:
  containers:
  - name: samplepod
    command: ['sh', '-c', 'echo test container is running ; sleep 3600']
    image: busybox
    securityContext:
      privileged: true
EOF

kubectl exec --stdin --tty test -- /bin/sh

About

Installer for Microshift Kubernetes Deployment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%