In trying to provision a CouchbaseCluster resource using the k8s-operator:0.8.1-beta on Kubernetes I ran into a few issues.
Only one bucket is created automatically when multiple bucket definitions are in the resource definition file.
New buckets created via the command-line (I assume the same for the UI but have not tried) are deleted after a while. I assume this is due to some sort on consistency check where the operator makes sure that the cluster reflects the resource definition.
The result of this is that I have to include all bucket definitions in the YAML file for the CouchbaseCluster and then run the commands to create each bucket regardless of whether they have been created or not in order to get everything running in the state that Iâd expect.
Ideally the fix is that the CouchbaseCluster correctly provisions multiple buckets specified in the definition, but not having the buckets delete after they are added manually would be an acceptable fix.
If this has been resolved in the 0.9.0-beta is there somewhere that I can see the release notes or anything else that could help me follow along with the development of this project.
Thanks for trying out the Beta. I tried to reproduce the issue youâre seeing here by creating a cluster with 2 buckets in the Cluster Spec and they were both created as expected on cluster creation. Could you also share the bucket section of your spec? (Make sure the bucket names are unique)
As for bucket deletion, yes the operator does âundoâ any manual changes made by users in order to maintain consistency with the cluster spec. There is an option to pause the operator if you did not want this reconciliation to occur, but sounds like you were resorting to manual changes because the original issue (1) wasnât working.
noticed i was inconsistent with the eviction policy. i tried that a number of ways. when full-eviction did not work i switched to using fullEviction (as you would using couchbase-cli) to see if that would work any better. pretty sure that has no effect either way as far as provisioning the bucket.
any other fixes outside the bucket issue is also welcomed
Thanks, the value there should be âfullEvictionâ . Also, youâll need to remove the âdashâ in eviction-policy, so that the spec is:
evictionPolicy: fullEviction
Try updating both bucket specs with that key/value pair and it should work.