[TOC]
vmware 14 黑屏问题
修复方法
命令窗口(管理员权限)netsh winsock reset ,重启电脑,搞定。
HP elitebook 830 g5 缺少 insert 键的解决方案
FN+R = Break
FN+S = Sys Rq
FN+C = Scroll Lock
FN+E = Insert
FN+W = Pause
So CRTL ALT INSERT would be : CTRL+ALT+FN + E
Snap proxy setting
在ubuntu 中 snap 作为一个systemd 的服务存在,位置在/lib/systemd/system/snapd.service要设置它的代理,直接使用
export http_proxy=xxxx
的方式是没用的,修改代理有两种方法。
方法1:添加专项代理,添加文件/etc/systemd/system/snapd.service.d/proxy.conf,内容为
[Service]
Environment="http_proxy=http://x.x.x.x:port"
然后重启snapd服务
systemctl daemon-reload
systemctl restart snapd
方法2
修改/etc/environment 文件,添加如下条目即可。
这个文件是系统层面的,影响范围较广。同时,除了root,其他用户无法修改。
http_proxy=http://x.x.x.x:port
snap docker(snpa.docker.dockerd.service) daemon.json 位置 ,两个位置都可以。
/var/snap/docker/current/config/daemon.json
/var/snap/docker/current/etc/docker/daemon.json #此处未测试
microk8s 及其docker 代理设置
Configuring MicroK8s Services
Configuring MicroK8s services
The following systemd services will be running in your system:
- snap.microk8s.daemon-apiserver, is the kube-apiserver daemon started using the arguments in
${SNAP_DATA}/args/kube-apiserver
- snap.microk8s.daemon-controller-manager, is the kube-controller-manager daemon started using the arguments in
${SNAP_DATA}/args/kube-controller-manager
- snap.microk8s.daemon-scheduler, is the kube-scheduler daemon started using the arguments in
${SNAP_DATA}/args/kube-scheduler
- snap.microk8s.daemon-kubelet, is the kubelet daemon started using the arguments in
${SNAP_DATA}/args/kubelet
- snap.microk8s.daemon-proxy, is the kube-proxy daemon started using the arguments in
${SNAP_DATA}/args/kube-proxy
- snap.microk8s.daemon-containerd, is the containerd daemon started using the configuration in
${SNAP_DATA}/args/containerd
and${SNAP_DATA}/args/containerd-template.toml
. - snap.microk8s.daemon-etcd, is the etcd daemon started using the arguments in
${SNAP_DATA}/args/etcd
Normally, ${SNAP_DATA}
points to /var/snap/microk8s/current
.
To reconfigure a service you will need to edit the corresponding file and then restart the respective daemon. For example:
echo '-l=debug' | sudo tee -a /var/snap/microk8s/current/args/containerd
sudo systemctl restart snap.microk8s.daemon-containerd.service
Deploy behind a proxy
To let MicroK8s use a proxy enter the proxy details in ${SNAP_DATA}/args/containerd-env
and restart the containerd daemon service with:
sudo systemctl restart snap.microk8s.daemon-containerd.service
microk8s dashboard 访问
kubectl proxy --address=0.0.0.0 --accept-hosts=.*
ubuntu
ubuntu 18.04 server DHCP 模式下 IP 重复,冲突
解决方法
mkdir -p /etc/netplan/50-cloud-init.yaml #名字可能不一样
# 内容如下
network:
renderer: "networkd"
ethernets:
ens33:
#addresses: [192.168.10.11/24]
#gateway4: 192.168.10.2
#nameservers:
# addresses: ["114.114.114.114","8.8.4.4"]
dhcp4: true
dhcp-identifier: mac #关键点,默认是使用RFC4361-compliant Client ID
version: 2
参考资料