- 博客(6)
- 收藏
- 关注
原创 k8s auto bash-completion on linux
IntroductionThe kubectl completion script for Bash can be generated with the commandkubectl completion bash. Sourcing the completion script in your shell enables kubectl autocompletion.However, t...
2019-08-16 15:17:48
613
原创 通过image生成dockerfile(BUG)
/usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/unix_socket.rb:14:in `connect_nonblock': No such file or directory - connect(2) for /var/run/docker.sock (Errno::ENOENT) (Excon::Error::Socket) ...
2019-08-09 17:46:58
736
原创 spark on k8s forbidden configured service account doesn't have access. service account may have been
kubectl create serviceaccount sparkkubectl create clusterrolebinding spark-role --clusterrole=edit --serviceaccount=default:spark --namespace=defaultspark-submit add :--conf spark.kubernetes...
2019-08-08 20:22:54
2025
原创 kubenets debug notready
查看后台日志:journalctl -u kubelet -f1.RunPodSandbox from runtime service failed: rpc error: code = Unknown desc = failed pulling image "k8s.gcr.io/pause:3.1": Get https://k8s.gcr.io/v1/_ping: dial tcp ...
2019-08-06 21:37:07
466
原创 swap禁用,修改镜像脚本,获取sha256
1.永久禁用swap空间:#(1)临时关闭swap分区, 重启失效;swapoff -a#(2)永久关闭swap分区sed -ri 's/.*swap.*/#&/' /etc/fstab2.修改k8s.gcr.io 路径的镜像:其他的镜像仓库:MY_REGISTRY=gcr.azk8s.cn/google-containersMY_REGISTRY=mirro...
2019-08-05 11:05:41
568
转载 Python中OpenCV直接读取bytearray图片
Python中OpenCV直接读取bytearray图片 背景 尝试 大功告成背景使用pyodbc从数据库表直接读取了一个图片字段(获取到的类型是bytearray),并用OpenCV做些简单处理,不想走已知的“另存为图片文件再用OpenCV打开”的曲折路线。尝试上网搜了下OpenCV直接读取内存对象的方法,未找到相关方法;看了下cv2.imread()返...
2019-07-12 22:03:47
2978
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人