Rancher/rke2 kubeconfig 错误 x509: certificate signed by unknown authority 解决办法
Rancher/rke2 kubeconfig 错误 x509: certificate signed by unknown authority 解决办法 当部署 Rancher 后直接复制 KubeConfig 文件到本地使用,会出现以下错误: FATA[01:55:58] Error connecting to k8s cluster: Get "https://rancher.rakour.com:30112/k8s…
44 2023-08-14 0 点击阅读go-redis 报错 ERR wrong number of arguments for 'auth' command 解决
go-redis 报错 ERR wrong number of arguments for 'auth' command redis 只有 >=6.0 的时候才能使用用户名,小于 6.0 不能写用户名,否则报错: ERR wrong number of arguments for 'auth' command
83 2023-07-06 0 点击阅读rke2-v1.25.11+rke2r1 设置自定义 Coredns
rke2-v1.25.11+rke2r1 设置自定义Coredns 直接修改名为 rke2-coredns-rke2-coredns 的 Configmap。将参数 forward . /etc/resolv.conf 改为自定义的 Coredns 服务器。例如:forward . 192.168.1.53
88 2023-07-06 0 点击阅读Mariadb设置初始密码不生效
Mariadb设置初始密码不生效 mariadb>use mysql; mariadb>update user set password=PASSWORD("1100") where User='root'; mariadb>update user set plugin="mysql_native_password"; mariadb>flush privileges; mariad…
232 2023-03-24 0 点击阅读Debian10 替换国内源
Debian10 替换国内源 deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main #deb http://security.debian.org/debian-security buster/updates main contrib #deb-src http://security.d…
317 2023-03-07 0 点击阅读kiali创建获取token
kiali创建获取token 查看 service account kubectl get sa -n istio-system 创建token 根据上面显示的 kiali 的 sa 创建 token 单例部署的kialia kubectl -n istio-system create token kiali operator部署的kialia kubectl -n istio-system create token kiali-s…
443 2023-03-02 0 点击阅读istio网关配置ssl证书开启443端口访问
istio网关配置ssl证书开启443端口访问 生成ssl证书 以配置访问rancher为例子 export DOMAIN_NAME=janrs.com openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj '/O=$DOMAIN_NAME Inc./CN=$DOMAIN_NAME' -keyout $DOMAIN_NAME.key -out $…
356 2023-03-02 0 点击阅读scp 使用端口上传文件
scp 使用端口上传文件 转载请注明来源:https://janrs.com 域名方式 scp -P 10332 istio-1.17.1-linux-arm64.tar.gz john@jump.baidu.com:/home/john ip 地址方式 scp -P 10332 istio-1.17.1-linux-arm64.tar.gz john@192.168.1.1:/home/john 转载请注明来源…
382 2022-02-25 0 点击阅读ssh 设置免密登录
ssh 设置免密登录 转载请注明来源:https://janrs.com ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.235.22
364 2022-02-25 0 点击阅读k8s linux 释放内存
k8s linux 释放内存 转载请注明出处:https://janrs.com 释放之前先 sync 同步数据再执行以下命令: free -h sync echo 1 > /proc/sys/vm/drop_caches echo 2 > /proc/sys/vm/drop_caches echo 3 > /proc/sys/vm/drop_caches free -h
351 2022-02-25 0 点击阅读istio开启自动注入sidecar
istio 开启自动注入sidecar 转载请注明出处:https://janrs.com 把下面的 default 换成要自动注入的命名空间 kubectl label namespace rakour-dev istio-injection=enabled
415 2022-02-25 0 点击阅读