Google Cloud Build deploy to GKE Private Cluster

前端 未结 2 1719
有刺的猬
有刺的猬 2020-12-28 17:48

I\'m running a Google Kubernetes Engine with the \"private-cluster\" option. I\'ve also defined \"authorized Master Network\" to be able to remotely access the environment -

相关标签:
2条回答
  • 2020-12-28 18:07

    We ended up doing the following:

    1) Remove the deployment step from cloudbuild.yaml

    2) Install Keel inside the private cluster and give it pub/sub editor privileges in the cloud builder / registry project

    Keel will monitor changes in images and deploy them automatically based on your settings.

    This has worked out great as now we get pushed sha hashed image updates, without adding vms or doing any kind of bastion/ssh host.

    0 讨论(0)
  • 2020-12-28 18:13

    It's currently not possible to add Cloud Build machines to a VPC. Similarly, Cloud Build does not announce IP ranges of the build machines. So you can't do this today without creating a "ssh bastion instance" or a "proxy instance" on GCE within that VPC.

    I suspect this would change soon. GCB existed before GKE private clusters and private clusters are still a beta feature.

    0 讨论(0)
提交回复
热议问题