我已经在 Ubuntu 上安装了 kubernetes 和 docker,以便在我的 windows 10 机器上拥有类似的开发环境,这样我就可以在我的 kubernetes secret 上调试额外的\r\n 问题。
你表现如何this踏上 Ubuntu?
我想我需要像 kubectl config use-context docker-for-desktop
这样的东西这在 Ubuntu 上不起作用或将 kubectl 配置为指向正确的 docker 端口。
如何配置 Kubernetes?
我在 Ubuntu 18.10 上。
Docker 版本(按照 here 的说明安装):
$ docker version
Client:
Version: 18.09.0
API version: 1.38 (downgraded from 1.39)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:49:01 2018
OS/Arch: linux/amd64
Experimental: false
Server:
Engine:
Version: 18.06.1-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.4
Git commit: e68fc7a
Built: Mon Oct 1 14:25:33 2018
OS/Arch: linux/amd64
Experimental: false
Kubectl 版本:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:54:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?
最佳答案
适用于 Ubuntu 的 Docker 企业版 (EE) 是唯一具有内置编排器(Docker Swarm 和 Kubernetes)、操作系统(Windows 和多个 Linux 发行版)和支持的基础架构(裸机、VM、云、等等)- https://store.docker.com/editions/enterprise/docker-ee-server-ubuntu
Here’s确认相同的答案
Docker’s Community Edition engine for Linux does not include built-in kubernetes capabilities. We say
We have added Kubernetes support in both Docker Desktop for Mac and Windows and in Docker Enterprise Edition (EE).
You can build a Kubernetes cluster yourself on top of one or more CE engines, though. For some guidance, you can visit the setup documentation at https://kubernetes.io/docs/setup/scratch/
关于docker - 在 Ubuntu 上安装 docker 和 kubernetes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53575021/