摘要:
我有一个码头容器,它正在运行kubectl端口转发,将作为k8s服务运行的postgres服务的端口(5432)转发到本地端口(2223)。在Dockerfile中,我公开了相关的端口2223。然后,通过发布上述港口(-p 2223:2223)运行容器。
现在,当我试图通过psql -h localhost -p 2223访问postgres时,我得到了以下错误:
psql: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or w
摘要:
我有一个码头容器,它正在运行kubectl端口转发,将作为k8s服务运行的postgres服务的端口(5432)转发到本地端口(2223)。在Dockerfile中,我公开了相关的端口2223。然后,通过发布上述港口(-p 2223:2223)运行容器。
现在,当我试图通过psql -h localhost -p 2223访问postgres时,我得到了以下错误:
psql: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or w
我在本地工作站(Windows10Pro)上安装了用于开发的Docker for windows和内置的k8s单节点集群。 我想知道如何访问此集群上托管的服务。它没有被很好地记录下来 我没有安装负载均衡器,也不需要K8s入口。如何访问托管在10.105.245.65:80的服务。localhost和127.0.0.1不起作用,10.105.245.65在windows主机上没有任何意义。 我可以使用NodePort (它可以工作),但我想了解如何通过ClusterIP访问。 C:\Users\balamuvi>kubectl get svc
NAME TYPE
我习惯于使用telepresence连接到集群,并在本地访问集群服务。
现在,我需要使集群中的服务对在本地中运行的一组应用程序可用。我们可以说这是反向用例。
我有一个应用程序运行在一个码头容器。它访问使用docker-compose部署的服务。它是通过使用网络来完成的:
docker network create myNetwork
// Make app 1 to use it
docker network connect myNetwork app1
// App 2 uses docker compose, so myNetwork is defined in it and here I
为什么kubectl run dask --image daskdev/dask会失败?
# starting the container with docker to make sure it basically works
➜ ~ docker run --rm -it --entrypoint bash daskdev/dask:latest
(base) root@5b34ce038eb3:/# python
Python 3.8.0 (default, Nov 6 2019, 21:49:08)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Ty
我正在尝试从浏览器中访问一个简单的迷你库集群,但是我一直得到以下信息:❗ Because you are using a Docker driver on windows, the terminal needs to be open to run it.
我已经为集群创建了一个端口号为30384的外部服务,并且在一个码头容器中运行minikube。
我遵循"Hello“的例子来创建我的部署。
Step1:我创建了部署:
kubectl create deployment hello-node --image=k8s.gcr.io/echoserver:1.4
Step2:我创建了外部
我有一个正在运行的GCP Kubernetes集群。我成功地部署了一些服务并成功地使用kubectl公开了它们.Type=“LoadBalancer”但是,一项特定的新服务无法工作。我知道可能有上千个原因需要检查,但是我构建的Docker映像非常紧凑,所以我找不到有用的工具,可以在一个吊舱或容器中通过kubectl运行。
问题:仅使用任何可能的集群工具,我的诊断选项可能是什么?我可以检查什么样的日志,或者可以读取哪些环境变量?
更新:
$ kubectl get pods
NAME READY STATUS RESTAR
我试图按照这个网页上的说明来调试部署到VisualStudio2019:中的Kubernetes应用程序。说明(如果网页每次关闭,如下所示):
1) docker run -d -p 2222:2222 -p 5000:5000 clumsypilot/dotnetdebug:asp-debug-sample
2) Open Localhost:5000 and verify thee website is running.
3) Clone the Repo and open project DotnetDebug in VS2017
4) Setup a remote connection
当我运行kubectl get pods时,它显示pod existing and ready,但当运行kubectl port-forward时,我得到pod not foud错误。这里发生了什么事? (base):~ zwang$ k get pods -n delivery
NAME READY STATUS RESTARTS AGE
screenshot-history-7f76489574-wntkf 1/1 Running 86 7h18m
(base):~ zwang
我正试图通过helm安装postgresql。我没有覆盖任何设置,但是当我试图连接时,我会得到一个“密码验证失败”错误:
$ helm install goatsnap-postgres stable/postgresql
NAME: goatsnap-postgres
LAST DEPLOYED: Mon Jan 27 12:44:22 2020
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
** Please be patient while the chart is being deploy