PostgreSQL在天蓝色的容器上 [英] Postgresql on azure container

查看:109
本文介绍了PostgreSQL在天蓝色的容器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能使用azure文件作为持久卷在azure容器上运行postgresql? 我看到了那个chown和chmod commad不起作用.使用postgres uid和gid挂载azurefile卷是可能的吗?否则 使用kubernetes和azure磁盘作为永久卷吗?

Hi, Is it possible to run postgresql on azure container using azure file as persistent volume? I see that chown and chmod commad does not work. It is possibile to mount azurefile volume with postgres uid and gid? Otherwise using kubernetes and azure disk as persistent volume is it possible?

我无法将Azure数据库用于Postgresql,因为我想使用timescale db,因为它是postgresql的扩展.

I cannot using Azure Database for postgresql because I want to use timescale db that it is an extension of postgresql.

谢谢

Francesca

推荐答案

这应该可行.但是,我没有开箱即用的东西可以为您完成此任务.因此,可能需要进行一些配置和反复试验才能使它按您想要的方式工作.

This should be possible. However I do not find anything out of the box that will accomplish this for you. So it would likely take some configuration and playing around to get it to work the way you want. 

我建议您从在容器中运行postgresql的docker文档开始

I would suggest you start with the docker docs on running postgresql in containers 

https://hub.docker.com/_/postgres/

https://docs.docker.com/engine/examples/postgresql_service/

https://hub.docker.com/_/postgres/

https://docs.docker.com/engine/examples/postgresql_service/

然后,您将从动态磁盘信息开始

Then you would start with the dynamic disk information 

https://docs.microsoft.com/en-us/azure /aks/azure-disks-dynamic-pv

此外,如果您能更好地告诉我一些您想要实现的目标,我可以进一步评论并帮助您入门. 

Also, if you can tell me a bit more about what you want to achieve at a high level I could comment further and help you get started. 


这篇关于PostgreSQL在天蓝色的容器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆