[英]How do I deploy a GKE Workload with my Docker image from the Artifact Registry using Terraform?
I have a kubernetes cluster that I have stood up with terraform in GCP.我有一个 kubernetes 集群,我已经在 GCP 中与 terraform 站在一起。 Now I want to deploy/run my Docker image to/on it, from the GCP console I would do this by going to the workloads section of the kubernetes engine portion of the console and then selecting Deploy a containerized application , I however want to do this with terraform, and am having difficulty determining how to do this and finding good reference examples for how to do it.
现在我想从 GCP 控制台将我的 Docker 映像部署/运行到它/在其上运行我会通过转到控制台的kubernetes 引擎部分的工作负载部分然后选择Deploy a containerized application来做到这一点,但是我想做这与 terraform 一起,并且很难确定如何执行此操作并找到如何执行此操作的良好参考示例。 Any examples on how to do this would be appreciated.
任何有关如何执行此操作的示例将不胜感激。
Thank you!谢谢!
You need to do 2 things:你需要做两件事:
Docker
and then use it in your manifests via imagePullSecrets
attribute.Docker
机密,然后通过imagePullSecrets
属性在清单中使用它。 Check out this example .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.