Skip to content

Openshift 3.11 Postgres Operator not working #1310

Open
@Hiteshchaudhari1

Description

@Hiteshchaudhari1

Please, answer some short questions which should help us to understand your problem/question better?

  • Which image of the operator are you using? e.g. registry.opensource.zalan.do/acid/postgres-operator:v1.6.0
  • postgres-operator:v1.6.0
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? [AWS K8s | GCP ... | Bare Metal K8s]
  • On OKD cluster (Openshift 3.11 and Kubernetes 1.11)
  • Are you running Postgres Operator in production? [yes | no]
  • No
  • Type of issue? [Bug report, question, feature request, etc.]
    Question: I was trying to deploy Postgres operator in the cluster and work with it. When I deploy the standard setup for the operator in GKE cluster(with Kubernetes 1.16) it works fine.
    When I deploy the same setup on Openshift, the operator pod returns the following error logs.
Kubectl logs postgres-operator ...

time="2021-01-13T13:24:16Z" level=info msg="Spilo operator v1.6.0\n"
time="2021-01-13T13:24:16Z" level=info msg="Fully qualified configmap name: database/postgres-operator"
time="2021-01-13T13:24:16Z" level=info msg="Parse role bindings" pkg=controller
time="2021-01-13T13:24:16Z" level=info msg="successfully parsed" pkg=controller
time="2021-01-13T13:24:16Z" level=info msg="Listening to all namespaces" pkg=controller
time="2021-01-13T13:24:16Z" level=error msg="could not create customResourceDefinition \"postgresqls.acid.zalan.do\": the server could not find the requested resource" pkg=controller
time="2021-01-13T13:24:20Z" level=fatal msg="could not register Postgres CustomResourceDefinition: the server could not find the requested resource" pkg=controller

I already have deployed the "postgresqls.acid.zalan.do" deployed in my cluster

$ kubectl get crd
NAME                                   CREATED AT
operatorconfigurations.acid.zalan.do   2021-01-13T12:22:22Z
postgresqls.acid.zalan.do              2021-01-13T13:17:49Z
postgresteams.acid.zalan.do            2021-01-13T12:24:27Z

Can you suggest what am I doing wrong or is there a problem with version compatibility between the operator and the infrastructure?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions