原创 kubernetes traefix安裝

將如下內容寫入文件traefix.yaml kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: traefik-ingres

原创 kubeadm撤銷操作

原文鏈接:https://www.cnblogs.com/RainingNight/p/using-kubeadm-to-create-a-cluster-1-12.html 想要撤銷kubea

原创 Authentication refused: bad ownership or modes for directory /root 解決

使用ssh-copy-id命令後,仍然不能免密登錄, cat /var/log/secure檢查日誌,發現報錯“Authentication refused: bad ownership or modes for directory /r

原创 解決kubernetes問題:failed to find plugin "portmap" in path [/opt/cni/bin]]

安裝kubernetes之後,使用 kubectl get pod --all namespaces 查看所有pod,發現coredns的pod一直處於create的狀態 使用命令查看 kubectl describe pod cor

原创 windows server 2019 安裝docker

進入PowerShell 執行如下命令 Install-Module -Name DockerMsftProvider -Repository PSGallery -Force Install-Package -Name docker

原创 rancher 安裝windows agent報錯 無法將“True”項識別爲 cmdlet、函數、腳本文件或可運行程序的名稱

解決方法: 在powershell中輸入cmd,之後在cmd中再次執行rancher-agent啓動命令即可  

原创 pip離線下載安裝包

下載命令: 比如下載名爲gensim的安裝包: pip install gensim --download /tmp/pip-pkg 按照requirement文件下載: pip install --download /tmp/pip-p

原创 gitlab搭建

gitlab搭建過程參考: https://www.cnblogs.com/weifeng1463/p/7714492.html root密碼可以從web界面修改,也可以通過命令行修改 https://blog.csdn.net/qq_4

原创 只下載不安裝rpm包

yumdownloader  audit-libs-python --resolve --destdir=./

原创 刪除並清理rancher節點

https://www.cnrancher.com/docs/rancher/v2.x/cn/configuration/admin-settings/remove-node/ #停止所有docker容器 docker stop `do

原创 替換目錄下所有特定字符串

將目錄下所有文件中的apple替換爲huawei sed -i "s/apple/huawei/g" `grep apple -rl ./`  

原创 Windows環境變量立即生效

轉自:https://blog.csdn.net/qq1319713925/article/details/85298948 1.編輯/修改 環境變量 2.進入cmd,輸入set path=test 3.退出這個cmd窗口就生效了。  

原创 x509: certificate has expired or is not yet valid的解決

wget一個https的url時報錯: x509: certificate has expired or is not yet valid 很有可能是由於時間不同步導致的,比較簡單的方法是: yum install -y ntpdate

原创 rancher安裝kubernetes報錯[etcd] Failed to bring up Etcd Plane: [etcd] Etcd Cluster is not healthy 解決過程

rancher安裝kubernetes的過程中報錯[etcd] Failed to bring up Etcd Plane: [etcd] Etcd Cluster is not healthy, 根據網上搜到的結論,很大可能是由於服務器

原创 rancher環境安裝kubectl

默認的rancher集羣的各個node上,是沒有kubectl命令的,但是在純命令行環境下,還是kubectl使用起來得心應手,我們需要自己配置一下。 首先是下載kubectl的方法,參考https://kubernetes.io/doc