From 36cc557e43ee98559e80f89238e0c8822488488f Mon Sep 17 00:00:00 2001 From: Neaj Morshad Date: Thu, 28 Nov 2024 16:02:50 +0600 Subject: [PATCH] Remove from yamls and descriptions Signed-off-by: Neaj Morshad --- .../hot-warm-cold-cluster/index.md | 36 ---------- .../simple-dedicated-cluster/index.md | 36 ---------- .../elasticsearch-dashboard/kibana/index.md | 36 ---------- .../opensearch-dashboards/index.md | 35 ---------- .../overview/elasticsearch/index.md | 30 --------- .../quickstart/overview/opensearch/index.md | 29 -------- docs/guides/mongodb/arbiter/replicaset.md | 45 ------------- .../clustering/group-replication/index.md | 28 ++------ .../mysql/clustering/innodb-cluster/index.md | 23 ------- docs/guides/mysql/quickstart/index.md | 23 ------- .../redis/initialization/using-script.md | 66 ------------------- docs/guides/redis/quickstart/quickstart.md | 23 ------- 12 files changed, 4 insertions(+), 406 deletions(-) diff --git a/docs/guides/elasticsearch/clustering/topology-cluster/hot-warm-cold-cluster/index.md b/docs/guides/elasticsearch/clustering/topology-cluster/hot-warm-cold-cluster/index.md index 74137701a1..c5650878c2 100644 --- a/docs/guides/elasticsearch/clustering/topology-cluster/hot-warm-cold-cluster/index.md +++ b/docs/guides/elasticsearch/clustering/topology-cluster/hot-warm-cold-cluster/index.md @@ -181,42 +181,6 @@ Spec: Controller: Metadata: Spec: - Affinity: - Pod Anti Affinity: - Preferred During Scheduling Ignored During Execution: - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: es-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: es-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 - Container Security Context: - Capabilities: - Add: - IPC_LOCK - SYS_RESOURCE - Privileged: false - Run As User: 1000 Resources: Service Account Name: es-cluster Storage Type: Durable diff --git a/docs/guides/elasticsearch/clustering/topology-cluster/simple-dedicated-cluster/index.md b/docs/guides/elasticsearch/clustering/topology-cluster/simple-dedicated-cluster/index.md index b17dfbd016..9832ac4143 100644 --- a/docs/guides/elasticsearch/clustering/topology-cluster/simple-dedicated-cluster/index.md +++ b/docs/guides/elasticsearch/clustering/topology-cluster/simple-dedicated-cluster/index.md @@ -151,42 +151,6 @@ Spec: Controller: Metadata: Spec: - Affinity: - Pod Anti Affinity: - Preferred During Scheduling Ignored During Execution: - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: es-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: es-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 - Container Security Context: - Capabilities: - Add: - IPC_LOCK - SYS_RESOURCE - Privileged: false - Run As User: 1000 Resources: Service Account Name: es-cluster Storage Type: Durable diff --git a/docs/guides/elasticsearch/elasticsearch-dashboard/kibana/index.md b/docs/guides/elasticsearch/elasticsearch-dashboard/kibana/index.md index 263a464684..a7efa9c927 100644 --- a/docs/guides/elasticsearch/elasticsearch-dashboard/kibana/index.md +++ b/docs/guides/elasticsearch/elasticsearch-dashboard/kibana/index.md @@ -177,42 +177,6 @@ Spec: Controller: Metadata: Spec: - Affinity: - Pod Anti Affinity: - Preferred During Scheduling Ignored During Execution: - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: es-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: es-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 - Container Security Context: - Capabilities: - Add: - IPC_LOCK - SYS_RESOURCE - Privileged: false - Run As User: 1000 Resources: Service Account Name: es-cluster Storage Type: Durable diff --git a/docs/guides/elasticsearch/elasticsearch-dashboard/opensearch-dashboards/index.md b/docs/guides/elasticsearch/elasticsearch-dashboard/opensearch-dashboards/index.md index de7a4c857b..e6089b8b5d 100644 --- a/docs/guides/elasticsearch/elasticsearch-dashboard/opensearch-dashboards/index.md +++ b/docs/guides/elasticsearch/elasticsearch-dashboard/opensearch-dashboards/index.md @@ -170,41 +170,6 @@ Spec: Controller: Metadata: Spec: - Affinity: - Pod Anti Affinity: - Preferred During Scheduling Ignored During Execution: - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: os-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Expressions: - Key: ${NODE_ROLE} - Operator: Exists - Match Labels: - app.kubernetes.io/instance: os-cluster - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 - Container Security Context: - Capabilities: - Add: - IPC_LOCK - SYS_RESOURCE - Privileged: false Resources: Service Account Name: os-cluster Storage Type: Durable diff --git a/docs/guides/elasticsearch/quickstart/overview/elasticsearch/index.md b/docs/guides/elasticsearch/quickstart/overview/elasticsearch/index.md index 755ade6dfd..b454dafe2b 100644 --- a/docs/guides/elasticsearch/quickstart/overview/elasticsearch/index.md +++ b/docs/guides/elasticsearch/quickstart/overview/elasticsearch/index.md @@ -307,36 +307,6 @@ Spec: Controller: Metadata: Spec: - Affinity: - Pod Anti Affinity: - Preferred During Scheduling Ignored During Execution: - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: es-quickstart - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: es-quickstart - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 - Container Security Context: - Capabilities: - Add: - IPC_LOCK - SYS_RESOURCE - Privileged: false - Run As User: 1000 Resources: Limits: Memory: 1536Mi diff --git a/docs/guides/elasticsearch/quickstart/overview/opensearch/index.md b/docs/guides/elasticsearch/quickstart/overview/opensearch/index.md index 100e49a854..22230ddc12 100644 --- a/docs/guides/elasticsearch/quickstart/overview/opensearch/index.md +++ b/docs/guides/elasticsearch/quickstart/overview/opensearch/index.md @@ -234,35 +234,6 @@ Spec: Controller: Metadata: Spec: - Affinity: - Pod Anti Affinity: - Preferred During Scheduling Ignored During Execution: - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: sample-opensearch - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: sample-opensearch - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: elasticsearches.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 - Container Security Context: - Capabilities: - Add: - IPC_LOCK - SYS_RESOURCE - Privileged: false Resources: Limits: Memory: 1Gi diff --git a/docs/guides/mongodb/arbiter/replicaset.md b/docs/guides/mongodb/arbiter/replicaset.md index 82af96d91a..53425b4326 100644 --- a/docs/guides/mongodb/arbiter/replicaset.md +++ b/docs/guides/mongodb/arbiter/replicaset.md @@ -259,51 +259,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --quiet --eval \"db.adminCommand('ping').ok\" - ) -eq \"1\" ]]; then \n exit 0\n fi\n exit 1" - failureThreshold: 3 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 5 - readinessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --quiet --eval \"db.adminCommand('ping').ok\" - ) -eq \"1\" ]]; then \n exit 0\n fi\n exit 1" - failureThreshold: 3 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 1 resources: limits: memory: 1Gi diff --git a/docs/guides/mysql/clustering/group-replication/index.md b/docs/guides/mysql/clustering/group-replication/index.md index b3b933087c..119e4c9361 100644 --- a/docs/guides/mysql/clustering/group-replication/index.md +++ b/docs/guides/mysql/clustering/group-replication/index.md @@ -235,8 +235,11 @@ my-group-standby ClusterIP 10.96.70.224 3306/TCP 5 KubeDB operator sets the `status.phase` to `Running` once the database is successfully created. Run the following command to see the modified `MySQL` object: -```yaml +```bash $ kubectl get my -n demo my-group -o yaml | kubectl neat +``` + +```yaml apiVersion: kubedb.com/v1 kind: MySQL metadata: @@ -247,29 +250,6 @@ spec: name: my-group-auth podTemplate: spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: my-group - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mysqls.kubedb.com - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: my-group - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mysqls.kubedb.com - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 resources: limits: cpu: 500m diff --git a/docs/guides/mysql/clustering/innodb-cluster/index.md b/docs/guides/mysql/clustering/innodb-cluster/index.md index 1be3c32a21..9a23b8cceb 100644 --- a/docs/guides/mysql/clustering/innodb-cluster/index.md +++ b/docs/guides/mysql/clustering/innodb-cluster/index.md @@ -257,29 +257,6 @@ spec: name: innodb-auth podTemplate: spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: innodb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mysqls.kubedb.com - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: innodb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mysqls.kubedb.com - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 resources: limits: cpu: 500m diff --git a/docs/guides/mysql/quickstart/index.md b/docs/guides/mysql/quickstart/index.md index a02f81de9f..51475d96e0 100644 --- a/docs/guides/mysql/quickstart/index.md +++ b/docs/guides/mysql/quickstart/index.md @@ -287,29 +287,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mysql-quickstart - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mysqls.kubedb.com - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mysql-quickstart - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mysqls.kubedb.com - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 resources: limits: memory: 1Gi diff --git a/docs/guides/redis/initialization/using-script.md b/docs/guides/redis/initialization/using-script.md index 3be23d17ac..7d1893afed 100644 --- a/docs/guides/redis/initialization/using-script.md +++ b/docs/guides/redis/initialization/using-script.md @@ -127,39 +127,6 @@ Spec: Controller: Metadata: Spec: - Affinity: - Pod Anti Affinity: - Preferred During Scheduling Ignored During Execution: - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: rd-init-script - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: redises.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: rd-init-script - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: redises.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 - Container Security Context: - Allow Privilege Escalation: false - Capabilities: - Drop: - ALL - Run As Group: 999 - Run As Non Root: true - Run As User: 999 - Seccomp Profile: - Type: RuntimeDefault Resources: Limits: Memory: 1Gi @@ -283,39 +250,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: rd-init-script - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: redises.kubedb.com - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: rd-init-script - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: redises.kubedb.com - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - containerSecurityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - runAsGroup: 999 - runAsNonRoot: true - runAsUser: 999 - seccompProfile: - type: RuntimeDefault resources: limits: memory: 1Gi diff --git a/docs/guides/redis/quickstart/quickstart.md b/docs/guides/redis/quickstart/quickstart.md index cf2389e504..ae5801dddf 100644 --- a/docs/guides/redis/quickstart/quickstart.md +++ b/docs/guides/redis/quickstart/quickstart.md @@ -275,29 +275,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: redis-quickstart - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: redises.kubedb.com - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: redis-quickstart - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: redises.kubedb.com - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 resources: limits: memory: 1Gi