Skip to content

Commit

Permalink
Add Memcached doc (#671)
Browse files Browse the repository at this point in the history
* Started Quickstart

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* QuickStart Done & started Concepts Memcached

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Memcached concepts, custom config & rbac

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix CLI private-registry Monitoring

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Add Ops Request Version-update & overview images

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Add Version-update Horizontal & Vertical Scaling

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Add Reconfiguration

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Update and fixed Reconfiguration

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Add Memcached Autoscaler Compute

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* FIx Error

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix links

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fixed Error

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix docs

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix Memcached quickstart image

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix Memcached issue

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix prometheus operator

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix issuses

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix autoscaling file

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix Autoscaler

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Change according to Review

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fixed Links

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Update Name

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>

* Fix elasticsearch update for terminationPolicy > deletionPolicy

Signed-off-by: raihankhan <[email protected]>

---------

Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>
Signed-off-by: raihankhan <[email protected]>
Co-authored-by: raihankhan <[email protected]>
  • Loading branch information
Evanraisul and raihankhan authored Sep 25, 2024
1 parent 35e3f02 commit da6b509
Show file tree
Hide file tree
Showing 67 changed files with 3,009 additions and 924 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: autoscaling.kubedb.com/v1alpha1
kind: MemcachedAutoscaler
metadata:
name: mc-autoscaler
namespace: demo
spec:
databaseRef:
name: mc-autoscaler-compute
opsRequestOptions:
timeout: 3m
apply: IfReady
compute:
memcached:
trigger: "On"
podLifeTimeThreshold: 1m
resourceDiffPercentage: 20
minAllowed:
cpu: 400m
memory: 400Mi
maxAllowed:
cpu: 1
memory: 1Gi
controlledResources: ["cpu", "memory"]
containerControlledValues: "RequestsAndLimits"
20 changes: 20 additions & 0 deletions docs/examples/memcached/auto-scaler/memcached.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kubedb.com/v1
kind: Memcached
metadata:
name: mc-autoscaler-compute
namespace: demo
spec:
replicas: 1
version: "1.6.22"
podTemplate:
spec:
containers:
- name: memcached
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
deletionPolicy: WipeOut
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
replicas: 1
version: "1.6.22"
configSecret:
name: mc-custom-config
name: mc-configuration
podTemplate:
spec:
containers:
Expand All @@ -19,3 +19,4 @@ spec:
requests:
cpu: 250m
memory: 64Mi
deletionPolicy: WipeOut
10 changes: 10 additions & 0 deletions docs/examples/memcached/custom-config/mc-configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
stringData:
memcached.conf: |
--conn-limit=500
--memory-limit=512
kind: Secret
metadata:
name: mc-configuration
namespace: demo
resourceVersion: "4505"
30 changes: 21 additions & 9 deletions docs/examples/memcached/monitoring/builtin-prom-memcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,25 @@ spec:
podTemplate:
spec:
containers:
- name: memcached
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 64Mi
- name: memcached
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 500m
memory: 256Mi
monitor:
agent: prometheus.io/builtin
agent: prometheus.io/operator
prometheus:
serviceMonitor:
labels:
release: prometheus
exporter:
resources:
requests:
memory: 512Mi
cpu: 200m
limits:
memory: 512Mi
cpu: 250m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: coreos-prom-memcd
namespace: demo
spec:
replicas: 3
replicas: 1
version: "1.6.22"
deletionPolicy: WipeOut
podTemplate:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/memcached/quickstart/demo-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: memcd-quickstart
namespace: demo
spec:
replicas: 3
replicas: 1
version: "1.6.22"
podTemplate:
spec:
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/memcached/quickstart/demo-v1alpha2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: memcd-quickstart
namespace: demo
spec:
replicas: 3
replicas: 1
version: "1.6.22"
podTemplate:
spec:
Expand Down
13 changes: 13 additions & 0 deletions docs/examples/memcached/reconfigure/apply-config-reconfigure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MemcachedOpsRequest
metadata:
name: memcd-reconfig
namespace: demo
spec:
type: Reconfigure
databaseRef:
name: memcd-quickstart
configuration:
applyConfig:
memcached.conf: |
--conn-limit=3000
12 changes: 12 additions & 0 deletions docs/examples/memcached/reconfigure/config-secret-reconfigure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MemcachedOpsRequest
metadata:
name: memcd-reconfig
namespace: demo
spec:
type: Reconfigure
databaseRef:
name: memcd-quickstart
configuration:
configSecret:
name: new-configuration
11 changes: 11 additions & 0 deletions docs/examples/memcached/reconfigure/memcached-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kubedb.com/v1
kind: Memcached
metadata:
name: memcd-quickstart
namespace: demo
spec:
replicas: 1
version: "1.6.22"
configSecret:
name: mc-configuration
deletionPolicy: WipeOut
12 changes: 12 additions & 0 deletions docs/examples/memcached/scaling/horizontal-scaling.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MemcachedOpsRequest
metadata:
name: memcd-horizontal-up
namespace: demo
spec:
type: HorizontalScaling
databaseRef:
name: memcd-quickstart
horizontalScaling:
replicas: 5

20 changes: 20 additions & 0 deletions docs/examples/memcached/scaling/memcached-horizontal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kubedb.com/v1
kind: Memcached
metadata:
name: memcd-quickstart
namespace: demo
spec:
replicas: 1
version: "1.6.22"
podTemplate:
spec:
containers:
- name: memcached
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
deletionPolicy: WipeOut
20 changes: 20 additions & 0 deletions docs/examples/memcached/scaling/memcached-vertical.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kubedb.com/v1
kind: Memcached
metadata:
name: memcd-quickstart
namespace: demo
spec:
replicas: 1
version: "1.6.22"
podTemplate:
spec:
containers:
- name: memcached
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
deletionPolicy: WipeOut
18 changes: 18 additions & 0 deletions docs/examples/memcached/scaling/vertical-scaling.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MemcachedOpsRequest
metadata:
name: memcached-mc
namespace: demo
spec:
type: VerticalScaling
databaseRef:
name: memcd-quickstart
verticalScaling:
memcached:
resources:
requests:
memory: "400Mi"
cpu: "500m"
limits:
memory: "400Mi"
cpu: "500m"
20 changes: 20 additions & 0 deletions docs/examples/memcached/update-version/memcached.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kubedb.com/v1
kind: Memcached
metadata:
name: memcd-quickstart
namespace: demo
spec:
replicas: 1
version: "1.6.22"
podTemplate:
spec:
containers:
- name: memcached
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 64Mi
deletionPolicy: WipeOut
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MemcachedOpsRequest
metadata:
name: update-memcd
namespace: demo
spec:
type: UpdateVersion
databaseRef:
name: memcd-quickstart
updateVersion:
targetVersion: 1.6.29
68 changes: 0 additions & 68 deletions docs/examples/monitoring/builtin-prometheus/prom-config.yaml

This file was deleted.

Loading

0 comments on commit da6b509

Please sign in to comment.