Kubernetes&Database-k8s中helm方式安装postgresql及pgadmin

本文详细介绍了如何在Kubernetes(K8s)环境中利用Helm安装PostgreSQL数据库及其管理工具PgAdmin的过程。从Helm的安装到PostgreSQL与PgAdmin的具体部署步骤,包括权限设置、状态检查及数据库连接配置等关键环节。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Kubernetes&Database-k8s中helm方式安装postgresql及pgadmin

安装 helm

这里使用脚本的方式安装

#curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7160  100  7160    0     0   8035      0 --:--:-- --:--:-- --:--:--  8026

#chmod 700 get_helm.sh
#./get_helm.sh
Downloading https://get.helm.sh/helm-v2.16.10-darwin-amd64.tar.gz
Preparing to install helm and tiller into /usr/local/bin
Password:
helm installed into /usr/local/bin/helm
tiller installed into /usr/local/bin/tiller
Run 'helm init' to configure helm.

Tiller服务器运行在Kubernetes集群中,它会处理Helm客户端的请求,与Kubernetes API Server交互。
安装tiller服务:

#helm init --upgrade --tiller-image registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.16.10 --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
Creating /Users/bytedance/.helm
Creating /Users/bytedance/.helm/repository
Creating /Users/bytedance/.helm/repository/cache
Creating /Users/bytedance/.helm/repository/local
Creating /Users/bytedance/.helm/plugins
Creating /Users/bytedance/.helm/starters
Creating /Users/bytedance/.helm/cache/archive
Creating /Users/bytedance/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /Users/bytedance/.helm.

Tiller (the Helm server-side com
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值