New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support k8s.gcr.io gcr.io local server,Docker for desktop run kubernetes #520
Comments
after this setup , How to install kubernetes dashboard??? |
This comment has been minimized.
This comment has been minimized.
$ kubectl apply -f kubernetes/coreos/addons/dashboard.yaml |
@khs1994 不用设置,可以直接调用k8s的接口吗? |
@ khs1994 do not set, you can directly call the k8s interface? Tencent AI Analytic Result 😄 |
$ ~/.kube/config 已经自动生成好了,直接用 $ kubectl get all -n kube-system
service/kubernetes-dashboard NodePort 10.97.248.32 <none> 443:30508/TCP 3h 浏览器打开 |
@khs1994 安装 dashboard 还要启动本地 k8s 仓库吗?这翻译机器人怎么关掉? |
@ KHS 1994 install dashboard also start the local k8s warehouse? How to turn off the translation robot? Tencent AI Analytic Result 😄 |
安装 k8s 的时候需要,启动成功了就不需要了。 然后 kubernetes/coreos/addons 里的 yaml 文件我都把 gcr.io 的镜像替换成了 docker hub 中的镜像,具体对应关系请看这个项目 https://github.com/anjia0532/gcr.io_mirror 以后你把 yaml 文件中的 gcr.io 镜像替换成 https://github.com/anjia0532/gcr.io_mirror 这里的镜像
|
K8s installed when the need to start a successful do not need. Then the yaml file in kubernetes / coreos / addons I replaced the image of gcr.io with the image in dockerhub, see the project HTTPS: / github.com / anjia0532 / gcr.io _ mirror. This translation robot is a CI project I developed. Ah, the shutdown function is temporarily unavailable. Tencent AI Analytic Result 😄 |
@khs1994 好的,谢谢了! |
@ khs1994 OK, thanks! Tencent AI Analytic Result 👍 |
@khs1994 请问这个怎么办,访问不了 |
This comment has been minimized.
This comment has been minimized.
访问 dashboard ? 我在 Chrome 试了一下,重新加载 左边有一个高级按钮,点一下,有 其实还有一种方法,不过麻烦一点 $ kubectl proxy 浏览器打开 http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/ |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@khs1994 |
跳过就行,也可以按照 https://github.com/khs1994-docker/lnmp-k8s/blob/master/docs/addons/dashboard.md 生成 token 或配置文件 |
@khs1994 |
This comment has been minimized.
This comment has been minimized.
把命令拆开,执行吧,要不用 WSL (下载 kubectl https://github.com/khs1994-docker/kubectl-cn-mirror 把 .kube 复制到家目录) |
Take the order apart, execute it, or not WSL Tencent AI Analytic Result 😄 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@khs1994 我登陆了,再次谢谢您! |
@ KHS 1994 I landed, thank you again! Tencent AI Analytic Result 👍 |
gcr.io 国内访问有问题,所以我们开启一个 local server,让 Docker 桌面版从本地拉镜像
添加如下 hosts
启动
首先关闭本地监听 443 端口的程序
执行完毕之后,Docker 设置中开启 k8s
开启成功之后,删除启动的 local server 容器
The text was updated successfully, but these errors were encountered: