分类 默认分类 下的文章

Screen Shot 2019-06-28 at 10.57.13.png

Raspberry Pi 4 Model B is the latest product in the popular Raspberry Pi range of computers. It offers ground-breaking increases in processor speed, multimedia performance, memory, and connectivity compared to the prior-generation Raspberry Pi 3 Model B+, while retaining backwards compatibility and similar power consumption. For the end user, Raspberry Pi 4 Model B provides desktop performance comparable to entry-level x86 PC systems.

This product's key features include a high-performance 64-bit quad-core processor, dual-display support at resolutions up to 4K via a pair of micro-HDMI ports, hardware video decode at up to 4Kp60, up to 4GB of RAM, dual-band 2.4/5.0 GHz wireless LAN, Bluetooth 5.0, Gigabit Ethernet, USB 3.0, and PoE capability (via a separate PoE HAT add-on).

简言之就是4代树莓派硬件性能提升可以媲美入门级x86 PC性能。双口的4K60帧输出、2.4/5G多频无线、蓝牙5.0、3.0USB、可选1G/2G/4G内存规格。

- 阅读剩余部分 -

对于容器的配置文件, docker-compose的还好理解,但是一到k8s,就有很多对象, pods, nodes, services, deployment... 每个基本上都有个yml的定义,其中的参数一看一脸茫然。

还好找到这个:kubectl explain xxx 可以看它的定义

kubectl explain service --recursive 可以查看service定义的所有定段。
kubectl explain svc.metadata.uid 可以查看某个字段的定义

当然,k8s官方也有一些examples: https://github.com/kubernetes/examples


- 阅读剩余部分 -

先安装macos桌面版的docker

  1. brew install kubernetes-cli --verbose
  2. 安装virtualbox
  3. brew cask install minikube
    如果有墙内,可以安装阿里云的版本
    curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.1.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
  4. 启动minikube
    minikube start --registry-mirror=https://registry.docker-cn.com
  5. (可选)dashboard
    minikube dashboard

journalctl 有两个参数:

--vacuum-size=BYTES Reduce disk usage below specified size
减少日志到指定大小以下

--vacuum-time=TIME Remove journal files older than specified date
删除指定日期前的日志文件

用起来比如:
journalctl --vacuum-size=500M