对于 postgres-operator 和 postgres-pod 集群角色,这还需要一组稍微不同的规则。 安装 Helm v3 后,您应该能够运行: https://helm.sh/ helm install postgres-operator . /charts/postgres-operator 该 chart 适用于 Helm 2 和 Helm 3。使用 v3 时,将跳过 v2 中的 crd-install hook 并发出警告。 https://v2.helm.sh/docs/ 该 chart 还托管在: https://opensource.zalando.com/postgres-operator/charts/postgres-operator https://github.com/zalando/postgres-operator/issues/551
provisioning https://crunchydata.github.io/postgres-operator/latest/architecture/provisioning/ 轻松创建、扩展和删除 多个 Kubernetes 集群 https://crunchydata.github.io/postgres-operator/latest/architecture/high-availability 监控 https://crunchydata.github.io/postgres-operator/latest/architecture/monitoring/ pgMonitor https:// 异步复制 https://crunchydata.github.io/postgres-operator/latest/architecture/high-availability/ 同步复制 https node affinity https://crunchydata.github.io/postgres-operator/latest/architecture/high-availability/#
kubectl -n postgres-operator describe pod pgo-5694b9545c-ggz7g ... kubectl apply -n postgres-operator -k install/default --server-side kubectl -n postgres-operator delete images: - name: postgres-operator newName: registry.crunchydata.com/crunchydata/postgres-operator kubectl apply -n postgres-operator -k install/default --server-side kubectl -n postgres-operator get : postgres-operator ...
要检查安装状态,可以运行以下命令: kubectl -n postgres-operator get pods \ --selector=postgres-operator.crunchydata.com /control-plane=postgres-operator \ --field-selector=status.phase=Running 如果 PGO Pod 运行良好,您应该会看到类似于以下内容的输出 您可以通过执行以下命令来执行此操作: kubectl apply -k kustomize/postgres 注意: 注意,你的集群已经有一个默认的 Storage Class 这将在 postgres-operator 您可以使用以下命令跟踪集群的进度: kubectl -n postgres-operator describe postgresclusters.postgres-operator.crunchydata.com PG_CLUSTER_USER_SECRET_NAME=hippo-pguser-hippo PGPASSWORD=$(kubectl get secrets -n postgres-operator
主版本升级: https://github.com/zalando/postgres-operator/blob/master/docs/administrator.md#minor-and-major-version-upgrade 入门教程: https://github.com/zalando/postgres-operator/blob/master/docs/quickstart.md 支持的 Postgres 和应用程序设置 operator: https://coreos.com/blog/introducing-operators.html Postgres 集群清单: https://github.com/zalando/postgres-operator 自身配置: https://github.com/zalando/postgres-operator/blob/master/manifests/configmap.yaml 最后,operator 定期将每个 " by Sergey Dudoladov on Open Source Zalando, Nov. 2018 https://opensource.zalando.com/blog/2018/11/postgres-operator
https://github.com/CrunchyData/postgres-operator-examples/fork 将 PGO 安装到 postgres-operator 命名空间。 CRD https://access.crunchydata.com/documentation/postgres-operator/5.0.4/references/crd/ 安装好 PGO(Postgres 使用 kustomize/postgres 目录中的示例,我们所要做的就是运行: kubectl apply -k kustomize/postgres PGO 将在 postgres-operator 要检查哪些服务可用,您可以运行以下命令: kubectl -n postgres-operator get svc --selector=postgres-operator.crunchydata.com 例如: kubectl -n postgres-operator get svc --selector=postgres-operator.crunchydata.com/cluster=hippo
operator:https://github.com/zalando/postgres-operator/blob/master/manifests/configmap.yaml#L13 集群名称标签 :https://github.com/zalando/postgres-operator/blob/master/ui/manifests/deployment.yaml#L45 从顶部菜单的 Status
Crunchy PostgreSQL Operator https://github.com/CrunchyData/postgres-operator Zalando PostgreSQL Operator https://github.com/zalando/postgres-operator KubeDB https://github.com/kubedb/operator 结合 PostgreSQL
我们看一个postgres-operator的CRD: apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: postgresqls.acid.zalan.do labels: app.kubernetes.io/name: postgres-operator
CustomResourceDefinition metadata: name: postgresqls.acid.zalan.do labels: app.kubernetes.io/name: postgres-operator
Operator 简介 Operator 大家都很熟悉了,目前几乎每个开源的存储项目都有自己的 Operator,比如鼻祖 etcd-operator 以及后来的 prometheus-operator、postgres-operator