问题描述
我正在尝试将我的应用部署到在 Google Container 中运行的 Kubernetes引擎.
I am trying to deploy my app to Kubernetes running in Google ContainerEngine.
该应用程序可在以下位置找到: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 YAMLfor this.
我已在 Kubernetes 中为应用所需的 PEM 文件插入了一个 Secret.
I have inserted a Secret in Kubernetes for the PEM file required by the app.
- 如何获取由以下人员创建的 Deployment、Service 和 Pod 的 YAMLKubernetes 通过填写表格?
- 如何将 Secret 放入我的 Pod 以供使用?
- How do I get the YAML for the Deployment, Service and Pod created by Kubernetes by filling in the form?
- 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!