minishift101

See this lab in English

Setup overview

ขั้นตอนด้านล่างจะอธิบาย การติดตั้ง minishift และ depenencies ต่างๆ ซึ่ง Basic stps สำหรับการติดตั้งบน personal system ประกอบไปด้วย

  1. Configure the virtualization environment
  2. Download and install Minishift
  3. Start the OpenShift Server

สำคัญ เราควรจะต้องมีสิทธิ๋ในการติดตั้ง software บน laptop/pc ที่เราจะใช้งานด้วยนะครับ

Configure the virtualization environment

Minishift สามารถถูกนำไปติดตั้งบน Windows, Linux และ macOS ได้ แต่เพราะว่าแต่ละ OS ถูกออกแบบมาแตกต่างกัน ดังนั้น Hypbervisor ที่เหมาะสมจะต้องถูกหยิบมาใช้ ซึ่ง Minishift จะทำงานควบคู่กับ Hypervisor นั่นเอง

ขั้นตอนการติดตั้ง สามารถดูได้ตามหมวดหมู่ OS ด้านล่างนี้

NOTE: สำหรับ macOS users, ถ้าได้ทำการติดตั้ง Docker Desktop แล้ว ในตัวของมันจะมี hyperkit มาด้วยอยู่แล้วนะครับ และสามารถดู video การติดตั้ง minishift บน Windows, macOS จาก link ด้านล่าง

วิธีการติดตั้ง Minishift บน Windows 10

การติดตั้ง minishift บน Windows

ขั้นตอนการติดตั้ง Minishift บน Macbook - macOS

การติดตั้ง minishift บน Windows

Download and install Minishift

download Minishift สำหรับผู้ใช้งาน macOS แนะนำให้ติดตั้งผ่าน Homebrew นะครับ

Start the OpenShift Server

เมื่อทำการติดตั้งเรียบร้อยแล้ว อับดับต่อไปคือการสั่งเปิดใช้งาน Minishift โดยระบุุการใช้ vm driver เช่น hyperkit หรือ virtualbox การรันครั้งแรกอาจจะใช้เวลามากเพราะว่ารวมไปถึงการติดตั้ง สร้าง minishift cluster.

$ minishift start --vm-driver <driver>

เมื่อ minishift cluster ได้ถูกติดตั้งเรียบร้อยแล้ว เราจะเห็นข้อมูลผ่าน cmd/terminal ตามด้านล่าง

OpenShift server started.

The server is accessible via web console at:
    https://192.168.64.11:8443/console

You are logged in as:
    User:     developer
    Password: <any value>

To login as administrator:
    oc login -u system:admin


-- Exporting of OpenShift images is occuring in background process with pid 5703.

NOTE: URL สำหรับ Console และ PID จะไม่เหมือนกันกับที่แสดงข้างบนนะครับ

Further cluster configurations

Minishift tool มีไว้ให้เราจัดการ single-node Openshift cluster รวมไปถึง environment variables, persistent storage และ proxy สามารถอ่านเพิ่มเติมการปรับแต่ง configurations ได้จาก ที่นี่ link.

เมื่อ Minishift สามารถ run ได้ปกติแล้ว สามารถไปที่ Lab 1