简体   繁体   English

在Google Container Engine上上传存储和链接到图像

[英]Uploading Storing and Linking to Images on Google Container Engine

I am developing an app where users can upload images. 我正在开发一个用户可以上传图像的应用程序。 The app has a NodeJs Backend an Angular Frontend with a Redis and Neo4j all dockerize and run by Kubernetes. 该应用程序具有一个NodeJs后端,一个带有Redis和Neo4j的Angular前端,都由kubernetes进行泊坞窗化和运行。 Now I would like to store images, but there are so many service that I think could do the job that I don't know what to do... Can I use my Google Drive account and the Drive Sdk to upload the images of my users ? 现在,我想存储图像,但是我认为有很多服务可以完成我不知道该怎么做的工作...我可以使用我的Google云端硬盘帐户和Drive Sdk上传我的图像用户? Should I look into Google Cloud Storage ? 我应该研究Google Cloud Storage吗? What about the persistence storage option in Kubernetes ? Kubernetes中的持久性存储选项如何? Or can I use my Flickr Account ??? 还是可以使用我的Flickr帐户??? Could someone point me the right direction... Thanks 有人可以给我指出正确的方向...谢谢

For uploading and storing static files such as images in the cloud using GCP should probably be using Cloud Storage . 为了使用GCP在云中上传和存储静态文件(例如图像),可能应该使用Cloud Storage

While both Google Drive and Google Cloud Storage provide an API to upload files, Cloud storage is more suited for your use case. 虽然Google云端硬盘和Google云存储都提供了上传文件的API,但云存储更适合您的用例。 I took this excerpt from here 我是从这里摘录的

Cloud Storage is intended to be accessed primarily through its API and provides all the functionality necessary for developers to use it as a backing store for their own applications. 旨在主要通过其API访问Cloud Storage,它为开发人员提供了将其用作自己的应用程序的后备存储所必需的所有功能。

and

Cloud Storage enables developers to store their application data in the Google cloud (and they're responsible for the storage their app consumes), whereas in Drive, users allow apps to interact with the user's private storage and content. 云存储使开发人员可以将其应用程序数据存储在Google云中(并负责应用程序使用的存储),而在云端硬盘中,用户允许应用程序与用户的私有存储和内容进行交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM