-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Restart, TLS and Reconfigure TLS for Memcached (#716)
* Add Restart Signed-off-by: Muhammad Raisul Islam Evan <[email protected]>
- Loading branch information
1 parent
ed7caac
commit 8017522
Showing
40 changed files
with
2,349 additions
and
37 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
docs/examples/memcached/custom-config/custom-podtemplate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Memcached | ||
metadata: | ||
name: custom-mc | ||
namespace: demo | ||
spec: | ||
version: "1.6.22" | ||
replicas: 1 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: memcached | ||
env: | ||
- name: "Memcached_Key" | ||
value: KubeDB | ||
- name: "Memcached_Value" | ||
value: '123' | ||
deletionPolicy: WipeOut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Memcached | ||
metadata: | ||
name: memcached-node-selector | ||
namespace: demo | ||
spec: | ||
version: "1.6.22" | ||
replicas: 1 | ||
podTemplate: | ||
spec: | ||
nodeSelector: | ||
disktype: ssd | ||
deletionPolicy: WipeOut |
29 changes: 29 additions & 0 deletions
29
docs/examples/memcached/custom-config/sidecar-container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Memcached | ||
metadata: | ||
name: memcached-custom-sidecar | ||
namespace: demo | ||
spec: | ||
version: "1.6.22" | ||
replicas: 1 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: memcached | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
- name: filebeat | ||
image: evanraisul/custom_filebeat:latest | ||
resources: | ||
limits: | ||
cpu: 300m | ||
memory: 300Mi | ||
requests: | ||
cpu: 300m | ||
memory: 300Mi | ||
deletionPolicy: WipeOut |
16 changes: 16 additions & 0 deletions
16
docs/examples/memcached/custom-config/with-tolerations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Memcached | ||
metadata: | ||
name: memcached-with-tolerations | ||
namespace: demo | ||
spec: | ||
version: "1.6.22" | ||
replicas: 1 | ||
podTemplate: | ||
spec: | ||
tolerations: | ||
- key: "key1" | ||
operator: "Equal" | ||
value: "node1" | ||
effect: "NoSchedule" | ||
deletionPolicy: WipeOut |
9 changes: 9 additions & 0 deletions
9
docs/examples/memcached/custom-config/without-toleration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Memcached | ||
metadata: | ||
name: memcached-without-tolerations | ||
namespace: demo | ||
spec: | ||
version: "1.6.22" | ||
replicas: 1 | ||
deletionPolicy: WipeOut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: memcached-ca-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: memcached-ca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MemcachedOpsRequest | ||
metadata: | ||
name: mc-add-tls | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: memcd-quickstart | ||
tls: | ||
issuerRef: | ||
name: memcached-ca-issuer | ||
kind: Issuer | ||
apiGroup: "cert-manager.io" | ||
certificates: | ||
- alias: client | ||
subject: | ||
organizations: | ||
- memcached | ||
organizationalUnits: | ||
- client |
14 changes: 14 additions & 0 deletions
14
docs/examples/memcached/reconfigure-tls/mc-change-issuer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MemcachedOpsRequest | ||
metadata: | ||
name: mc-change-issuer | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: memcd-quickstart | ||
tls: | ||
issuerRef: | ||
name: mc-new-issuer | ||
kind: Issuer | ||
apiGroup: "cert-manager.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: mc-new-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: memcached-new-ca |
11 changes: 11 additions & 0 deletions
11
docs/examples/memcached/reconfigure-tls/mc-ops-rotate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MemcachedOpsRequest | ||
metadata: | ||
name: mc-ops-rotate | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: memcd-quickstart | ||
tls: | ||
rotateCertificates: true |
11 changes: 11 additions & 0 deletions
11
docs/examples/memcached/reconfigure-tls/mc-ops-tls-remove.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MemcachedOpsRequest | ||
metadata: | ||
name: mc-ops-tls-remove | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: memcd-quickstart | ||
tls: | ||
remove: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Memcached | ||
metadata: | ||
name: memcd-quickstart | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.6.22" | ||
deletionPolicy: WipeOut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MemcachedOpsRequest | ||
metadata: | ||
name: memcd-new | ||
namespace: demo | ||
spec: | ||
type: Restart | ||
databaseRef: | ||
name: memcd-quickstart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: Memcached | ||
metadata: | ||
name: memcd-quickstart | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.6.22" | ||
tls: | ||
issuerRef: | ||
apiGroup: "cert-manager.io" | ||
kind: Issuer | ||
name: memcached-ca-issuer | ||
certificates: | ||
- alias: client | ||
ipAddresses: | ||
- 127.0.0.1 | ||
- 192.168.0.252 | ||
deletionPolicy: WipeOut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: memcached-ca-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: memcached-ca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.