-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathminishift-commands
More file actions
63 lines (32 loc) · 1.18 KB
/
minishift-commands
File metadata and controls
63 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
=> check current logged in user
# whoami
=> install kvm, libvirt, driver and configure
# dnf install libvirt qemu-kvm -y > /dev/null
# usermod -aG libvirt $(whoami)
# newgrp libvirt
# curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-centos7 -o /usr/local/bin/docker-machine-driver-kvm
# chmod +x /usr/local/bin/docker-machine-driver-kvm
# systemctl is-active libvirtd
# systemctl start libvirtd
# virsh net-list --all
=> download minishift package & unzip
# curl -L https://github.com/minishift/minishift/releases/download/v1.33.0/minishift-1.33.0-linux-amd64.tgz -o minishift.tar.gz
# tar -xvzf minishift.tar.gz
# cd minishift-1.33.0-linux-amd64/
=> start minishift
# ./minishift start --network-nameserver 8.8.8.8
=> configure oc CLI
# eval $(./minishift oc-env)
# oc --help
=> download oc CLI manually
# wget https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz
# tar -xvzf oc.tar.gz
# ./oc --help
=> check minishift cluster status
# ./minishift status
=> Go to web console
# ./minishift console
=> Stop minishift cluster
# ./minishift stop
=> check more commands
# ./minishift --help