1.1
系统说明
wnh@k8s-master:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
wnh@k8s-master:~$ free -m
total used free shared buff/cache available
Mem: 3931 1169 444 2 2317 2485
Swap: 0 0 0
wnh@k8s-master:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 394M 2.5M 391M 1% /run
/dev/sda1 49G 13G 35G 27% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/loop0 1.7M 1.7M 0 100% /snap/gnome-system-monitor/186
/dev/loop2 39M 39M 0 100% /snap/snapd/21465
/dev/loop1 506M 506M 0 100% /snap/gnome-42-2204/176
/dev/loop4 640K 640K 0 100% /snap/gnome-logs/106
/dev/loop6 640K 640K 0 100% /snap/gnome-characters/797
/dev/loop7 2.5M 2.5M 0 100% /snap/gnome-system-monitor/163
/dev/loop5 62M 62M 0 100% /snap/core20/1081
/dev/loop3 56M 56M 0 100% /snap/core18/2823
/dev/loop9 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop10 56M 56M 0 100% /snap/core18/2128
/dev/loop12 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop11 896K 896K 0 100% /snap/gnome-logs/123
/dev/loop15 128K 128K 0 100% /snap/bare/5
/dev/loop13 75M 75M 0 100% /snap/core22/1380
/dev/loop14 2.3M 2.3M 0 100% /snap/gnome-calculator/955
/dev/loop17 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/loop18 768K 768K 0 100% /snap/gnome-characters/726
/dev/loop21 2.5M 2.5M 0 100% /snap/gnome-calculator/884
/dev/loop20 219M 219M 0 100% /snap/gnome-3-34-1804/93
/dev/loop8 64M 64M 0 100% /snap/core20/2264
/dev/loop19 242M 242M 0 100% /snap/gnome-3-38-2004/70
/dev/loop16 350M 350M 0 100% /snap/gnome-3-38-2004/143
tmpfs 394M 28K 394M 1% /run/user/121
tmpfs 394M 0 394M 0% /run/user/1000
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/0c3f5a4aeb08daa28740ec76d878495293b2e74c2680c1872c3fe88ddcf40a7a/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/f2b4546ca623460e535cce5eccb389f9eab465b7310543bbf7f27abe606062bf/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/380232ce5351285636989339d4cfee6e3900f110fb7f127c22989ca835c97a76/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/3648f2f7ada0e60be5bef987a6e092000434fcf80c9d8f017a0f2e59607f8333/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/32a4e7475cca84526a107cb855602762badcfeb20ae75e1b140968a4cb906342/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/4b1e86058b3dea3140976712cd269c36585bcb3b08e347406625b5e8707fbf8a/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/a98587772d028a3897612eaf19d17db9ba25defa7b8cfb0d9b28a7d200b13d5e/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/f5b5c125a4eceb053401b0b6e7937c576aa2587eebda065c56ed47adac6f54b7/shm
shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/2094d8369014d04a26f6f3a587e6b4b639a4a3469ffc4f0eeee6d25d8436e10f/shm
wnh@k8s-master:~$
wnh@k8s-master:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
stepping : 1
microcode : 0xb00002a
cpu MHz : 2397.223
cache size : 35840 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt arat arch_capabilities
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit mmio_stale_data retbleed
bogomips : 4794.44
clflush size : 64
cache_alignment : 64
address sizes : 43 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
stepping : 1
microcode : 0xb00002a
cpu MHz : 2397.223
cache size : 35840 KB
physical id : 6
siblings : 1
core id : 0
cpu cores : 1
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap xsaveopt arat arch_capabilities
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit mmio_stale_data retbleed
bogomips : 4794.44
clflush size : 64
cache_alignment : 64
address sizes : 43 bits physical, 48 bits virtual
power management:
软件环境
wnh@k8s-master:~$ kubectl version --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.24.0
Kustomize Version: v4.5.4
Server Version: v1.24.0
wnh@k8s-master:~$ sudo docker info
[sudo] password for wnh:
Client: Docker Engine - Community
Version: 24.0.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.10.5
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.18.1
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 24.0.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc version: v1.1.7-0-g860f061
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
Kernel Version: 5.4.0-150-generic
Operating System: Ubuntu 18.04.6 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.839GiB
Name: k8s-master
ID: 475c4363-3dd9-43ae-bfe1-e24643a42477
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
https://e6vlzg9v.mirror.aliyuncs.com/
Live Restore Enabled: false
WARNING: No swap limit support
wnh@k8s-master:~$
服务器规划
受资源限制影响,目前操作在单节点 master服务器上测试;
服务器IP:
192.168.71.97 master
192.168.71.98 node1
192.168.71.99 node2