From 3530601042984d0b02dff2c44343c3e47a7ceca0 Mon Sep 17 00:00:00 2001 From: Neaj Morshad Date: Thu, 28 Nov 2024 16:12:01 +0600 Subject: [PATCH] Remove from yamls and descriptions2 Signed-off-by: Neaj Morshad --- docs/guides/mongodb/arbiter/replicaset.md | 49 ---- docs/guides/mongodb/arbiter/sharding.md | 208 ----------------- docs/guides/mongodb/clustering/replicaset.md | 49 ---- docs/guides/mongodb/clustering/sharding.md | 161 ------------- docs/guides/mongodb/hidden-node/replicaset.md | 98 -------- docs/guides/mongodb/hidden-node/sharding.md | 212 ------------------ .../mongodb/initialization/using-script.md | 49 ---- docs/guides/mongodb/quickstart/quickstart.md | 49 ---- .../clustering/group-replication/index.md | 7 - docs/guides/mysql/initialization/index.md | 2 - .../clustering/galera-cluster/index.md | 23 -- .../quickstart/overview/index.md | 23 -- docs/guides/postgres/quickstart/quickstart.md | 31 --- 13 files changed, 961 deletions(-) diff --git a/docs/guides/mongodb/arbiter/replicaset.md b/docs/guides/mongodb/arbiter/replicaset.md index 53425b4326..eb5e6f83f3 100644 --- a/docs/guides/mongodb/arbiter/replicaset.md +++ b/docs/guides/mongodb/arbiter/replicaset.md @@ -274,55 +274,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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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/mongodb/arbiter/sharding.md b/docs/guides/mongodb/arbiter/sharding.md index 07aee9faf6..3c5d06ea22 100644 --- a/docs/guides/mongodb/arbiter/sharding.md +++ b/docs/guides/mongodb/arbiter/sharding.md @@ -204,53 +204,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-arb-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-arb-shard${SHARD_INDEX} - 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 @@ -268,57 +221,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.config: mongo-sh-arb-configsvr - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.config: mongo-sh-arb-configsvr - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 @@ -337,65 +239,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.mongos: mongo-sh-arb-mongos - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.mongos: mongo-sh-arb-mongos - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - lifecycle: - preStop: - exec: - command: - - bash - - -c - - 'mongo admin --username=$MONGO_INITDB_ROOT_USERNAME --password=$MONGO_INITDB_ROOT_PASSWORD - --quiet --eval "db.adminCommand({ shutdown: 1 })" || true' - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 @@ -409,57 +252,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-arb-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-arb - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-arb-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: 300Mi diff --git a/docs/guides/mongodb/clustering/replicaset.md b/docs/guides/mongodb/clustering/replicaset.md index 118db7e6d5..ce7cefd7d4 100644 --- a/docs/guides/mongodb/clustering/replicaset.md +++ b/docs/guides/mongodb/clustering/replicaset.md @@ -293,55 +293,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mgo-replicaset - 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: mgo-replicaset - 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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: cpu: 500m diff --git a/docs/guides/mongodb/clustering/sharding.md b/docs/guides/mongodb/clustering/sharding.md index 5497779f84..94f2bd3333 100644 --- a/docs/guides/mongodb/clustering/sharding.md +++ b/docs/guides/mongodb/clustering/sharding.md @@ -251,57 +251,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.config: mongo-sh-configsvr - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.config: mongo-sh-configsvr - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: cpu: 500m @@ -321,65 +270,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.mongos: mongo-sh-mongos - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.mongos: mongo-sh-mongos - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - lifecycle: - preStop: - exec: - command: - - bash - - -c - - 'mongo admin --username=$MONGO_INITDB_ROOT_USERNAME --password=$MONGO_INITDB_ROOT_PASSWORD - --quiet --eval "db.adminCommand({ shutdown: 1 })" || true' - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: cpu: 500m @@ -394,57 +284,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: cpu: 500m diff --git a/docs/guides/mongodb/hidden-node/replicaset.md b/docs/guides/mongodb/hidden-node/replicaset.md index adec1b67d7..54021170f3 100644 --- a/docs/guides/mongodb/hidden-node/replicaset.md +++ b/docs/guides/mongodb/hidden-node/replicaset.md @@ -313,55 +313,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-rs-hid - 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-rs-hid - 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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: 400Mi @@ -382,55 +333,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-rs-hid - 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-rs-hid - 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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: 600Mi diff --git a/docs/guides/mongodb/hidden-node/sharding.md b/docs/guides/mongodb/hidden-node/sharding.md index b5ede85391..868391bb86 100644 --- a/docs/guides/mongodb/hidden-node/sharding.md +++ b/docs/guides/mongodb/hidden-node/sharding.md @@ -189,57 +189,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-hid-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-hid-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: 400Mi @@ -263,57 +212,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.config: mongo-sh-hid-configsvr - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.config: mongo-sh-hid-configsvr - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 @@ -327,65 +225,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.mongos: mongo-sh-hid-mongos - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.mongos: mongo-sh-hid-mongos - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - lifecycle: - preStop: - exec: - command: - - bash - - -c - - 'mongo admin --username=$MONGO_INITDB_ROOT_USERNAME --password=$MONGO_INITDB_ROOT_PASSWORD - --quiet --eval "db.adminCommand({ shutdown: 1 })" || true' - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 @@ -400,57 +239,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-hid-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mongo-sh-hid - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: mongodbs.kubedb.com - mongodb.kubedb.com/node.shard: mongo-sh-hid-shard${SHARD_INDEX} - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 - livenessProbe: - exec: - command: - - bash - - -c - - "set -x; if [[ $(mongo admin --host=localhost --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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/mongodb/initialization/using-script.md b/docs/guides/mongodb/initialization/using-script.md index ddf79bd3d8..4736838d02 100644 --- a/docs/guides/mongodb/initialization/using-script.md +++ b/docs/guides/mongodb/initialization/using-script.md @@ -291,55 +291,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mgo-init-script - 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: mgo-init-script - 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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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: cpu: 500m diff --git a/docs/guides/mongodb/quickstart/quickstart.md b/docs/guides/mongodb/quickstart/quickstart.md index b250efe6fe..24c7c2b1b1 100644 --- a/docs/guides/mongodb/quickstart/quickstart.md +++ b/docs/guides/mongodb/quickstart/quickstart.md @@ -311,55 +311,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: mgo-quickstart - 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: mgo-quickstart - 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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 --username=$MONGO_INITDB_ROOT_USERNAME - --password=$MONGO_INITDB_ROOT_PASSWORD --authenticationDatabase=admin - --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 119e4c9361..22c83703bf 100644 --- a/docs/guides/mysql/clustering/group-replication/index.md +++ b/docs/guides/mysql/clustering/group-replication/index.md @@ -250,13 +250,6 @@ spec: name: my-group-auth podTemplate: spec: - resources: - limits: - cpu: 500m - memory: 1Gi - requests: - cpu: 500m - memory: 1Gi serviceAccountName: my-group replicas: 3 storage: diff --git a/docs/guides/mysql/initialization/index.md b/docs/guides/mysql/initialization/index.md index 65df0c6564..e28bfef1be 100644 --- a/docs/guides/mysql/initialization/index.md +++ b/docs/guides/mysql/initialization/index.md @@ -427,8 +427,6 @@ spec: controller: {} metadata: {} spec: - affinity: - ... resources: limits: memory: 1Gi diff --git a/docs/guides/percona-xtradb/clustering/galera-cluster/index.md b/docs/guides/percona-xtradb/clustering/galera-cluster/index.md index 0a90ded865..f978f73465 100644 --- a/docs/guides/percona-xtradb/clustering/galera-cluster/index.md +++ b/docs/guides/percona-xtradb/clustering/galera-cluster/index.md @@ -102,29 +102,6 @@ spec: controller: {} metadata: {} spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: sample-pxc - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: perconaxtradbs.kubedb.com - namespaces: - - demo - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/instance: sample-pxc - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: perconaxtradbs.kubedb.com - namespaces: - - demo - topologyKey: failure-domain.beta.kubernetes.io/zone - weight: 50 resources: limits: memory: 1Gi diff --git a/docs/guides/percona-xtradb/quickstart/overview/index.md b/docs/guides/percona-xtradb/quickstart/overview/index.md index 9bc4a3fd6b..b862db3847 100644 --- a/docs/guides/percona-xtradb/quickstart/overview/index.md +++ b/docs/guides/percona-xtradb/quickstart/overview/index.md @@ -150,29 +150,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-pxc - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: perconaxtradbs.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: sample-pxc - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: perconaxtradbs.kubedb.com - Namespaces: - demo - Topology Key: failure-domain.beta.kubernetes.io/zone - Weight: 50 Resources: Limits: Memory: 1Gi diff --git a/docs/guides/postgres/quickstart/quickstart.md b/docs/guides/postgres/quickstart/quickstart.md index 9a246e15af..57890a977f 100644 --- a/docs/guides/postgres/quickstart/quickstart.md +++ b/docs/guides/postgres/quickstart/quickstart.md @@ -305,37 +305,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: quick-postgres - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: postgreses.kubedb.com - Namespaces: - demo - Topology Key: kubernetes.io/hostname - Weight: 100 - Pod Affinity Term: - Label Selector: - Match Labels: - app.kubernetes.io/instance: quick-postgres - app.kubernetes.io/managed-by: kubedb.com - app.kubernetes.io/name: postgreses.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 Group: 70 - Run As User: 70 Resources: Limits: Memory: 1Gi