k8s部署kong
1.首先对比k8s与helm安装版本
[root@VM-8-15-centos kong]# helm version
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
version.BuildInfo{Version:"v3.8.2", GitCommit:"6e3701edea09e5d55a8ca2aae03a68917630e91b", GitTreeState:"clean", GoVersion:"go1.17.5"}
2.helm pull kong/kong
需修改values.yaml
postgresql:
enabled: true
volumePermissions:
enabled: true
persistence:
enabled: true
size: 4Gi
storageClass: "standard"
accessMode: ReadWriteMany
auth:
username: kong
database: kong
password: kong
enablePostgresUser: true
postgresPassword: kong
image:
# use postgres < 14 until is https://github.com/Kong/kong/issues/8533 resolved and released
# enterprise (kong-gateway) supports postgres 14
tag: 13.6.0-debian-10-r52
service:
ports:
postgresql: "5432"
3.并且创建对应的pv资源,helm只会帮忙创建pvc,pv需自行创建
[root@VM-8-15-centos kong]# kubectl get pods
NAME READY STATUS RESTARTS AGE
kong-kong-7956f5bc49-xrpcn 2/2 Running 0 105s
kong-postgresql-0 0/1 Running 0 105s
成功
标签:postgresql,true,kong,helm,k8s,root From: https://www.cnblogs.com/jichenghui/p/17437790.html