Gitlab私有,在Google Cloud Platform上提供应用程序交付

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gitlab私有,在Google Cloud Platform上提供应用程序交付相关的知识,希望对你有一定的参考价值。

[GKE最近发布了GKE的应用程序管理器/交付插件。 Application Deliver

但是目前,Application Manager / Delivery仅支持Github.com和Gitlab.com。是否有任何计划或发布渠道来支持Gitlab Private?并且目前有任何解决方法吗?

Initialize an application with Anthos Application delivery framework.
APP_NAME should conform to definitions of label and subdomain in DNS (RFC 1123: https://tools.ietf.org/html/rfc1123)

Usage:
  appctl init APP_NAME --app-config-repo [--deployment-repo] [--config-path] [flags]

Examples:
  # Initialize an app from scratch and create a remote app repository.
  appctl init myapp --app-config-repo github.com/myorg/myapp

  # Initialize an app from an existing repository.
  appctl init myapp -app-config-repo github.com/myorg/myapp

  # Initialize an app and customize the configuration path (default is ./config).
  appctl init myapp --app-config-repo github.com/myorg/myapp --config-path myappconfig

  # Initialize an app and customize the deployment repo.
  appctl init myapp --app-config-repo github.com/myorg/myapp --deployment-repo github.com/myorg/myapp-env


Flags:
      --app-config-repo string        The url of the application configuration repository. It should be in the form of "[https://]<github|gitlab>.com/<ORG or USER>/<REPO>".

      --config-path string            The relative directory that contains the application's kubernetes resource configurations. Default to "./config".
      --deployment-repo appctl init   the url of the deployment repository. It should be in the form of "[https://]<github|gitlab>.com/<ORG or USER>/<REPO>".
                                      If not provided, appctl init will use a default url in the form of "[https://]<PLATFORM>.com/<ORG or USER>/<APP_NAME>-deployment" where PLATFORM and ORG/USER are from --app-config-repo.
  -h, --help                          help for init
答案

GCP文档门户上的Managing applications with Application Delivery“如何”说,先决条件之一是

“具有创建私有存储库权限的GitHub或GitLab帐户。应用程序交付仅支持GitHub和GitLab存储库。”

这使我认为GitHub和GitLab私有存储库均受支持。因此,我按照“操作方法”指南进行了重新检查,发现它工作正常(至少在我的设置中如此)。

kiwi@suse-laptop:~/$ cat /etc/SUSE-brand 
openSUSE
VERSION = 15.1

kiwi@suse-laptop:~/$ git version
git version 2.26.1

kiwi@suse-laptop:~/$ kubectl version
Client Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-dispatcher",  GitTreeState:"clean", BuildDate:"2020-04-21T04:42:07Z", GoVersion:"go1.12.17", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-gke.12", GitTreeState:"clean", BuildDate:"2020-04-20T22:33:20Z", GoVersion:"go1.12.17b4", Compiler:"gc", Platform:"linux/amd64"}

此外,GitLab Issue Tracker上还有另外一个提示,确认应用程序交付可与私有GitLab存储库一起使用。

希望有帮助。

以上是关于Gitlab私有,在Google Cloud Platform上提供应用程序交付的主要内容,如果未能解决你的问题,请参考以下文章

Google Cloud 构建和私有 Nuget 存储库

私有 VPC 网络上的 Google Cloud Build

如何使用私有IP在两个项目之间共享Google Cloud SQL实例?

Google Cloud:将 OAuth 密钥标记为私有

从具有私有和公共 IP 的虚拟机连接到私有 IP 上的 Google Cloud SQL 实例失败

同时创建多个具有私有 IP 的 Google Cloud SQL 实例时如何解决“发生未知错误”?