【问题标题】:deployment of the pod in the aws kops cluster在 aws kops 集群中部署 pod
【发布时间】:2020-08-29 03:34:44
【问题描述】:

我创建了具有 1 个主节点和 2 个工作节点的 kops 集群。我还创建了 pod 并且它运行成功。但是如何在 kops 集群节点中部署这个 pod?请帮忙。

--编辑-- “kops get cluster”命令返回,集群已打开。而“kubectl get pod”返回该pod已创建,状态为“Running”。

我尝试使用 --image 标签创建集群。但由于它是一个私有存储库,因此会导致错误。如果是这样,您能否建议一种使用私有存储库映像创建集群的方法。

【问题讨论】:

  • how do I deploy this pod in the kops cluster nodes 是什么意思?当您部署 pod 时,它已部署在 1 个工作节点上,您可以使用 kubectl get pods -o wide 检查哪个节点。关于私有仓库看看这个kubernetes documentation。
  • 是的……我弄错了……
  • 很高兴为您提供帮助,我将添加此作为答案以提高知名度。

标签: amazon-web-services kubernetes kubernetes-pod kops


【解决方案1】:

如何在 kops 集群节点中部署这个 pod?

当您部署 pod 时,它已部署在 1 个工作节点上,您可以使用

检查哪个节点

kubectl get pods -o wide

值得看看关于 Viewing Pods and Nodes 的 kubernetes 文档


如果是这样,您能否建议一种使用私有存储库映像创建集群的方法。

关于私有仓库看看这个kubernetes documentation

我会推荐使用docker registry,如果你知道helm 有一个helm chart。

【讨论】:

    猜你喜欢
    • 2019-06-02
    • 2021-09-03
    • 2021-02-21
    • 2021-12-27
    • 2018-07-22
    • 2020-08-01
    • 2018-10-31
    • 2021-05-26
    • 1970-01-01
    相关资源
    最近更新 更多