为已部署的 Kubernetes 服务获取 YAML? [英] Get YAML for deployed Kubernetes services?

查看:35
本文介绍了为已部署的 Kubernetes 服务获取 YAML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的应用部署到在 Google Container 中运行的 Kubernetes引擎.

I am trying to deploy my app to Kubernetes running in Google Container Engine.

该应用程序可在以下位置找到:https://github.com/Industrial/docker-znc.

The app can be found at: https://github.com/Industrial/docker-znc.

Dockerfile 内置于 Google Container Registry 上的映像中.

The Dockerfile is built into an image on Google Container Registry.

我已通过 + 按钮在 Kubernetes 中部署了该应用程序.我没有 YAML为此.

I have deployed the app in Kubernetes via the + button. I don't have the YAML for this.

我已在 Kubernetes 中为应用所需的 PEM 文件插入了一个 Secret.

I have inserted a Secret in Kubernetes for the PEM file required by the app.

  1. 如何获取由以下人员创建的 DeploymentServicePod 的 YAMLKubernetes 通过填写表格?
  2. 如何将 Secret 放入我的 Pod 以供使用?
  1. How do I get the YAML for the Deployment, Service and Pod created by Kubernetes by filling in the form?
  2. How do I get the Secret into my Pod for usage?

推荐答案

获取部署的 yaml(服务、pod、秘密等):

To get the yaml for a deployment (service, pod, secret, etc):

kubectl get deploy deploymentname -o yaml

这篇关于为已部署的 Kubernetes 服务获取 YAML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆