Comments (5)
- Before we implement PodTemplate, i suggest add opt-in
image
in spec - Solution for storage
persistent: false
use emptyDir, if not set default valuetrue
- Solution for storage value
storageClass
opt-in, if not set use default storage class
---
apiVersion: etcd.aenix.io/v1alpha1
kind: EtcdCluster
metadata:
name: test
namespace: ns1
spec:
replicas: 3
image: ""
persistent: false
storage:
size: 10Gi
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2024-03-06T18:39:39Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2024-03-06T18:39:45Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2024-03-06T18:39:45Z"
status: "True"
type: Synchronized
...
from etcd-operator.
- I would suggest specifying the Etc version of the cluster in the spec. By default, the operator will use the latest version of Etc known to him, for example, v3.5.12 at the moment. Also specify the version in status, so that the operator understands which cluster he is servicing.
- I didn't see the field for the storage class.
I suggest adding the following fields:
spec:
storage:
class: storage-class-name # optional #2
version: v3.5.12 # optional #1
status:
version: v3.5.12 # #1
Final manifest:
apiVersion: etcd.aenix.io/v1alpha1
kind: EtcdCluster
metadata:
name: test
namespace: ns1
spec:
replicas: 3
image: ""
persistent: false
storage:
class: storage-class-name # optional #2
size: 10Gi
version: v3.5.12 # optional #1
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2024-03-06T18:39:39Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2024-03-06T18:39:45Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2024-03-06T18:39:45Z"
status: "True"
type: Synchronized
version: v3.5.12 # #1
It is also worth considering the list of Etcd versions supported by the operator.
from etcd-operator.
@AlexGluck thanks for your suggestions.
I think I will include them in my implementation.
Is there a reason for persistence
field to be not in the .spec.storage
but .spec
?
from etcd-operator.
from etcd-operator.
Is there a reason for
persistence
field to be not in the.spec.storage
but.spec
?
Nope
from etcd-operator.
Related Issues (20)
- Optimize quotas requests/limits for CPU and memory by default HOT 8
- [feat] Majority failure recovery
- Disable development logger
- Roadmap
- Enable resize operation
- Automatically set `quota-backend-bytes` option to 95% from requested size:
- kubectl plugin HOT 1
- Unable to create etcd cluster with EmptyDir storage
- Add defrag CronJob HOT 5
- Enable autocompaction HOT 3
- Implement e2e autotests with zero downtime check
- Refactor volumes/secrets attachment
- Implement k8s version matrix in e2e tests HOT 1
- Fix logging system issues
- Guess etcd replicas number function HOT 6
- Enable PDB by default
- Implement sorting for extra Keys
- Research Backup & Restore from etcd-druid
- Website install instruction no longer works since 0.4.1
- Flaky test creating cluster with TLS
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 etcd-operator.