Ana içeriğe geç

Minikube Kurulumu

Minikube Kurulumu

[email protected]:~# apt-get update
Hit:1 focal InRelease
Hit:2 focal-updates InRelease
Hit:3 focal-backports InRelease
Hit:4 focal-security InRelease
Reading package lists... Done
[email protected]:~# curl -fsSL -o
[email protected]:~# sudo sh
# Executing docker install script, commit: 26ff363bcf3b3f5a00498ac43694bf1c7d9ce16c
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c curl -fsSL "" | apt-key add -qq - >/dev/null
Warning: apt-key output should not be parsed (stdout is not a terminal)
+ sh -c echo "deb [arch=amd64] focal stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ [ -n  ]
+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
Version:           19.03.14
API version:       1.40
Go version:        go1.13.15
Git commit:        5eb3275d40
Built:             Tue Dec  1 19:20:26 2020
OS/Arch:           linux/amd64
Experimental:      false

Server: Docker Engine - Community
 Version:          19.03.14
 API version:      1.40 (minimum version 1.12)
 Go version:       go1.13.15
 Git commit:       5eb3275d40
 Built:            Tue Dec  1 19:18:53 2020
 OS/Arch:          linux/amd64
 Experimental:     false
 Version:          1.3.9
 GitCommit:        ea765aba0d05254012b0b9e595e995c09186427f
 Version:          1.0.0-rc10
 GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 Version:          0.18.0
 GitCommit:        fec3683
If you would like to use Docker as a non-root user, you should now consider
adding your user to the "docker" group with something like:

 sudo usermod -aG docker your-user

Remember that you will have to log out and back in for this to take effect!

WARNING: Adding a user to the "docker" group will grant the ability to run
        containers which can be used to obtain root privileges on the
        docker host.
        Refer to
        for more information.
[email protected]:~# apt install conntrack
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 30.3 kB of archives.
After this operation, 104 kB of additional disk space will be used.
Get:1 focal/main amd64 conntrack amd64 1:1.4.5-2 [30.3 kB]
Fetched 30.3 kB in 0s (124 kB/s)
Selecting previously unselected package conntrack.
(Reading database ... 86583 files and directories currently installed.)
Preparing to unpack .../conntrack_1%3a1.4.5-2_amd64.deb ...
Unpacking conntrack (1:1.4.5-2) ...
Setting up conntrack (1:1.4.5-2) ...
Processing triggers for man-db (2.9.1-1) ...
[email protected]:~# wget
--2020-12-07 04:37:05--
Resolving (,,, ...
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56106652 (54M) [application/octet-stream]
Saving to: ‘minikube-linux-amd64’

minikube-linux-amd64             100%[=======================================================>]  53.51M  9.65MB/s    in 6.6s

2020-12-07 04:37:12 (8.11 MB/s) - ‘minikube-linux-amd64’ saved [56106652/56106652]
[email protected]:~# sudo cp minikube-linux-amd64 /usr/local/bin/minikube
[email protected]:~# sudo chmod 755 /usr/local/bin/minikube
[email protected]:~# minikube version
minikube version: v1.15.1
commit: 23f40a012abb52eff365ff99a709501a61ac5876
[email protected]:~# curl -LO`curl -s`/bin/linux/amd64/kubectl
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100 41.0M  100 41.0M    0     0  7625k      0  0:00:05  0:00:05 --:--:-- 8610k
[email protected]:~# chmod +x ./kubectl
[email protected]:~# sudo mv ./kubectl /usr/local/bin/kubectl
[email protected]:~# kubectl version -o json
 "clientVersion": {
   "major": "1",
   "minor": "19",
   "gitVersion": "v1.19.4",
   "gitCommit": "d360454c9bcd1634cf4cc52d1867af5491dc9c5f",
   "gitTreeState": "clean",
   "buildDate": "2020-11-11T13:17:17Z",
   "goVersion": "go1.15.2",
   "compiler": "gc",
   "platform": "linux/amd64"
The connection to the server localhost:8080 was refused - did you specify the right host or port?
[email protected]:~# minikube start
* minikube v1.15.1 on Ubuntu 20.04
* Automatically selected the docker driver
* The "docker" driver should not be used with root privileges.
* If you are running minikube within a VM, consider using --driver=none:

X Exiting due to DRV_AS_ROOT: The "docker" driver should not be used with root privileges.

[email protected]:~# sudo -E minikube start --driver=none
* minikube v1.15.1 on Ubuntu 20.04
* Using the none driver based on user configuration

X The requested memory allocation of 1982MiB does not leave room for system overhead (total system memory: 1982MiB). You may face stability issues.
* Suggestion: Start minikube with less memory allocated: 'minikube start --memory=1982mb'

* Starting control plane node minikube in cluster minikube
* Running on localhost (CPUs=2, Memory=1982MB, Disk=59713MB) ...
* OS release is Ubuntu 20.04.1 LTS
* Preparing Kubernetes v1.19.4 on Docker 19.03.14 ...
 - kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
   > kubelet.sha256: 64 B / 64 B [--------------------------] 100.00% ? p/s 0s
   > kubeadm.sha256: 64 B / 64 B [--------------------------] 100.00% ? p/s 0s
   > kubectl.sha256: 64 B / 64 B [--------------------------] 100.00% ? p/s 0s
   > kubeadm: 37.30 MiB / 37.30 MiB [---------------] 100.00% 2.57 MiB p/s 15s
   > kubectl: 41.01 MiB / 41.01 MiB [---------------] 100.00% 2.83 MiB p/s 15s
   > kubelet: 104.92 MiB / 104.92 MiB [-------------] 100.00% 5.01 MiB p/s 21s
* Configuring local host environment ...
! The 'none' driver is designed for experts who need to integrate with an existing VM
* Most users should use the newer 'docker' driver instead, which does not require root!
* For more information, see:
! kubectl and minikube configuration will be stored in /root
! To use kubectl or minikube commands as your own user, you may need to relocate them. For example, to overwrite your own settings, run:
 - sudo mv /root/.kube /root/.minikube $HOME
 - sudo chown -R $USER $HOME/.kube $HOME/.minikube
* This can also be done automatically by setting the env var CHANGE_MINIKUBE_NONE_USER=true
* Verifying Kubernetes components...
* Enabled addons: storage-provisioner, default-storageclass
* Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
[email protected]:~# minikube status
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured