Comments (6)
Hi Josh,
Kubectl edit pg cluster-name is how I often do this. I think there is also a replace or apply command that works on CRDs, but I don’t have access to a cluster to experiment with this right now.
from postgres-operator.
actually both kubectl apply
and kubectl replace
work on a CRD with a reasonably modern client (mine reports 1.7.6 as a version.)
from postgres-operator.
I tried apply on 1.8 and got the error that the manifest already existed. Will try replace.
from postgres-operator.
Same problem. When try to apply manifest - get error
» ~/bin/google-cloud-sdk/bin/kubectl --context minikube apply -f ./manifests/minimal-postgres-manifest.yaml
The postgresql "pg-cluster" is invalid: apiVersion: Invalid value: "postgresql": must be acid.zalan.do/v1» cat ./manifests/minimal-postgres-manifest.yaml | grep apiVersion:
apiVersion: acid.zalan.do/v1» kubectl --context minikube get postgresql pg-cluster -o yaml | grep apiVersion:
apiVersion: acid.zalan.do/v1
Minikube version 1.8.0
Try with kubectl versions 1.7.5 and 1.9.2 - nothing change.
kubectl --context minikube replace -f ./manifests/minimal-postgres-manifest.yaml
Work correct
from postgres-operator.
@mobilesfinks it works for me (kubectl 1.8.2):
kubectl apply -f minimal-postgres-manifest.yaml postgresql "acid-minimal-cluster" configured
Did you try to make any changes to the manifest before doing kubectl apply
? If I try it with the manifest that has not been changed since the last create/apply, I'm getting a different, however, quite obscure error (version 1.8.2 for both the client and the server):
kubectl apply -f minimal-postgres-manifest.yaml The postgresql "acid-minimal-cluster" is invalid: apiVersion: Invalid value: "acid.zalan.do/__internal": must be acid.zalan.do/v1
from postgres-operator.
Most kubectl
options for this issue are mentioned here, I guess. I also use edit
. Closing now. Anybody, feel free to reopen if still facing this problem.
from postgres-operator.
Related Issues (20)
- Postgres Operator Helm Chart Version v1.10.0 HOT 2
- Backups intermittently fail to upload due to "request body too small" error (wal-g > backblaze s3 storage) HOT 1
- Improving Postgres CR Status with Additional Details HOT 2
- postgres-operator chart: Add extraEnvs support
- UI can't list any of the clusters HOT 4
- UI: can't specific a namespace. The namespace field is missing. HOT 2
- The use of `x-kubernetes-preserve-unknown-fields` stops Terrafrom from updating manifests in-place causing cluster wipes
- When the operator is stopped, deleting the PostgreSQL CR, and then restarting the operator, the related resources (such as sts, service, ep, etc.) are not deleted. HOT 1
- Cluster creation getting stuck on StatefulSet pending HOT 1
- Add secretAnnotations to postgresql cluster manifest to support kubernetes-reflector
- SecurityContext configurations are missing for postgres-operator-ui and cluster configurations HOT 1
- Backup with `ghcr.io/zalando/postgres-operator/logical-backup:v1.12.2` fails HOT 4
- spilo-role replica label missing from one of the patroni replica pods
- regsitry/repository/tag-approach for spilo and logical-backup image
- imagepullsecrets for postgres clusters in other namespaces than the operator HOT 1
- DB Passwords managed outside (Vault), how to trigger rollout restart ? HOT 3
- Helm value enable_crd_registration vs. Documentation
- Make PostgresContainerName configurable
- Questions regarding k8s version compatibility matrix change of v1.11.0 after the initial release HOT 2
- Postgresql service timeout 3 of 5 requests without selector for master
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgres-operator.