From ed7caacd445260da36b80c25a9c28fcf39399146 Mon Sep 17 00:00:00 2001 From: Neaj Morshad Date: Thu, 28 Nov 2024 19:14:24 +0600 Subject: [PATCH] Update spec.podTemplate.spec's fields description for v2 (#723) Signed-off-by: Neaj Morshad --- docs/guides/druid/concepts/druid.md | 4 - .../configuration/podtemplating/index.md | 4 - .../hot-warm-cold-cluster/index.md | 36 --- .../simple-dedicated-cluster/index.md | 36 --- .../concepts/elasticsearch-dashboard/index.md | 4 - .../concepts/elasticsearch/index.md | 4 - .../elasticsearch-dashboard/kibana/index.md | 36 --- .../opensearch-dashboards/index.md | 35 --- .../overview/elasticsearch/index.md | 30 --- .../quickstart/overview/opensearch/index.md | 29 --- docs/guides/kafka/concepts/connectcluster.md | 4 - docs/guides/kafka/concepts/kafka.md | 4 - docs/guides/kafka/concepts/restproxy.md | 4 - docs/guides/kafka/concepts/schemaregistry.md | 4 - docs/guides/mariadb/concepts/mariadb/index.md | 4 - .../configuration/using-pod-template/index.md | 1 - docs/guides/memcached/concepts/memcached.md | 4 - docs/guides/mongodb/arbiter/replicaset.md | 94 -------- docs/guides/mongodb/arbiter/sharding.md | 208 ----------------- docs/guides/mongodb/clustering/replicaset.md | 49 ---- docs/guides/mongodb/clustering/sharding.md | 161 ------------- docs/guides/mongodb/concepts/mongodb.md | 4 - .../configuration/using-podtemplate.md | 4 - 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 ---- .../mssqlserver/concepts/mssqlserver.md | 4 - .../configuration/using-podtemplate.md | 4 - .../clustering/group-replication/index.md | 38 +--- .../mysql/clustering/innodb-cluster/index.md | 23 -- docs/guides/mysql/concepts/database/index.md | 4 - .../configuration/podtemplating/index.md | 1 - docs/guides/mysql/initialization/index.md | 2 - docs/guides/mysql/quickstart/index.md | 23 -- .../clustering/galera-cluster/index.md | 23 -- .../concepts/perconaxtradb/index.md | 4 - .../configuration/using-pod-template/index.md | 1 - .../quickstart/overview/index.md | 23 -- docs/guides/pgbouncer/concepts/pgbouncer.md | 2 - docs/guides/pgpool/concepts/pgpool.md | 4 - .../pgpool/configuration/using-podtemplate.md | 4 - docs/guides/postgres/concepts/postgres.md | 4 - docs/guides/postgres/quickstart/quickstart.md | 31 --- .../proxysql/concepts/proxysql/index.md | 4 - docs/guides/rabbitmq/concepts/rabbitmq.md | 4 - .../configuration/using-podtemplate.md | 4 - docs/guides/redis/concepts/redis.md | 4 - docs/guides/redis/concepts/redissentinel.md | 4 - .../redis/initialization/using-script.md | 66 ------ docs/guides/redis/quickstart/quickstart.md | 23 -- .../configuration/podtemplating/index.md | 4 - docs/guides/solr/concepts/solr.md | 4 - docs/guides/zookeeper/concepts/zookeeper.md | 4 - 54 files changed, 5 insertions(+), 1482 deletions(-) diff --git a/docs/guides/druid/concepts/druid.md b/docs/guides/druid/concepts/druid.md index 5d3ad66d29..f934dd4e32 100644 --- a/docs/guides/druid/concepts/druid.md +++ b/docs/guides/druid/concepts/druid.md @@ -421,16 +421,12 @@ KubeDB accept following fields to set in `spec..podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec..podTemplate` is described below, diff --git a/docs/guides/druid/configuration/podtemplating/index.md b/docs/guides/druid/configuration/podtemplating/index.md index 89c4ae2c68..6b4a64c0de 100644 --- a/docs/guides/druid/configuration/podtemplating/index.md +++ b/docs/guides/druid/configuration/podtemplating/index.md @@ -50,16 +50,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Read about the fields in details in [PodTemplate concept](/docs/guides/druid/concepts/druid.md#spectopology), 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/concepts/elasticsearch-dashboard/index.md b/docs/guides/elasticsearch/concepts/elasticsearch-dashboard/index.md index b8adaad15c..1870d54879 100644 --- a/docs/guides/elasticsearch/concepts/elasticsearch-dashboard/index.md +++ b/docs/guides/elasticsearch/concepts/elasticsearch-dashboard/index.md @@ -113,16 +113,12 @@ KubeDB accepts the following fields to set in `spec.podTemplate`: - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle ### spec.serviceTemplates diff --git a/docs/guides/elasticsearch/concepts/elasticsearch/index.md b/docs/guides/elasticsearch/concepts/elasticsearch/index.md index f141b915cb..5188f1e75f 100644 --- a/docs/guides/elasticsearch/concepts/elasticsearch/index.md +++ b/docs/guides/elasticsearch/concepts/elasticsearch/index.md @@ -734,16 +734,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). 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/kafka/concepts/connectcluster.md b/docs/guides/kafka/concepts/connectcluster.md index 36bfe2d6db..2a723ee7a4 100644 --- a/docs/guides/kafka/concepts/connectcluster.md +++ b/docs/guides/kafka/concepts/connectcluster.md @@ -284,16 +284,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/39bf8b2/api/v2/types.go#L44-L279). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/kafka/concepts/kafka.md b/docs/guides/kafka/concepts/kafka.md index d921481d44..83b8fd894a 100644 --- a/docs/guides/kafka/concepts/kafka.md +++ b/docs/guides/kafka/concepts/kafka.md @@ -330,16 +330,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/kafka/concepts/restproxy.md b/docs/guides/kafka/concepts/restproxy.md index 9f43a25ad0..3137523b46 100644 --- a/docs/guides/kafka/concepts/restproxy.md +++ b/docs/guides/kafka/concepts/restproxy.md @@ -91,16 +91,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/39bf8b2/api/v2/types.go#L44-L279). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/kafka/concepts/schemaregistry.md b/docs/guides/kafka/concepts/schemaregistry.md index 7d63ab3910..d7ddb38cab 100644 --- a/docs/guides/kafka/concepts/schemaregistry.md +++ b/docs/guides/kafka/concepts/schemaregistry.md @@ -91,16 +91,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/39bf8b2/api/v2/types.go#L44-L279). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/mariadb/concepts/mariadb/index.md b/docs/guides/mariadb/concepts/mariadb/index.md index f02f85cf5b..068a9ed8ad 100644 --- a/docs/guides/mariadb/concepts/mariadb/index.md +++ b/docs/guides/mariadb/concepts/mariadb/index.md @@ -237,16 +237,12 @@ KubeDB accepts the following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/mariadb/configuration/using-pod-template/index.md b/docs/guides/mariadb/configuration/using-pod-template/index.md index d3ddce0426..e5c882b02b 100644 --- a/docs/guides/mariadb/configuration/using-pod-template/index.md +++ b/docs/guides/mariadb/configuration/using-pod-template/index.md @@ -47,7 +47,6 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - schedulerName - tolerations - priorityClassName diff --git a/docs/guides/memcached/concepts/memcached.md b/docs/guides/memcached/concepts/memcached.md index 8c9348874c..4a0ac57709 100644 --- a/docs/guides/memcached/concepts/memcached.md +++ b/docs/guides/memcached/concepts/memcached.md @@ -125,16 +125,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - podPlacementPolicy - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/mongodb/arbiter/replicaset.md b/docs/guides/mongodb/arbiter/replicaset.md index 82af96d91a..eb5e6f83f3 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 @@ -319,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/concepts/mongodb.md b/docs/guides/mongodb/concepts/mongodb.md index 2818fad57e..f49613080c 100644 --- a/docs/guides/mongodb/concepts/mongodb.md +++ b/docs/guides/mongodb/concepts/mongodb.md @@ -481,16 +481,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/mongodb/configuration/using-podtemplate.md b/docs/guides/mongodb/configuration/using-podtemplate.md index 3e42651904..cbd9c6863e 100644 --- a/docs/guides/mongodb/configuration/using-podtemplate.md +++ b/docs/guides/mongodb/configuration/using-podtemplate.md @@ -50,16 +50,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Read about the fields in details in [PodTemplate concept](/docs/guides/mongodb/concepts/mongodb.md#specpodtemplate), 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/mssqlserver/concepts/mssqlserver.md b/docs/guides/mssqlserver/concepts/mssqlserver.md index 549b569087..2a9e33f1d0 100644 --- a/docs/guides/mssqlserver/concepts/mssqlserver.md +++ b/docs/guides/mssqlserver/concepts/mssqlserver.md @@ -291,15 +291,11 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/mssqlserver/configuration/using-podtemplate.md b/docs/guides/mssqlserver/configuration/using-podtemplate.md index 851bad2fea..d1a3862fe4 100644 --- a/docs/guides/mssqlserver/configuration/using-podtemplate.md +++ b/docs/guides/mssqlserver/configuration/using-podtemplate.md @@ -51,15 +51,11 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Read about the fields in details in [PodTemplate concept](/docs/guides/mssqlserver/concepts/mssqlserver.md#specpodtemplate), diff --git a/docs/guides/mysql/clustering/group-replication/index.md b/docs/guides/mysql/clustering/group-replication/index.md index b3b933087c..014aaab937 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,36 +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 - memory: 1Gi - requests: - cpu: 500m - memory: 1Gi serviceAccountName: my-group replicas: 3 storage: @@ -294,8 +267,7 @@ spec: mode: GroupReplication version: 8.0.35 status: - observedGeneration: 2$4213139756412538772 - phase: Running + phase: Ready ``` ## Connect with MySQL database 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/concepts/database/index.md b/docs/guides/mysql/concepts/database/index.md index 2ec2e16d58..c77e7088fb 100644 --- a/docs/guides/mysql/concepts/database/index.md +++ b/docs/guides/mysql/concepts/database/index.md @@ -275,16 +275,12 @@ KubeDB accepts the following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/mysql/configuration/podtemplating/index.md b/docs/guides/mysql/configuration/podtemplating/index.md index eb76aa1ac1..b17f27c565 100644 --- a/docs/guides/mysql/configuration/podtemplating/index.md +++ b/docs/guides/mysql/configuration/podtemplating/index.md @@ -47,7 +47,6 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - schedulerName - tolerations - priorityClassName 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/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/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/concepts/perconaxtradb/index.md b/docs/guides/percona-xtradb/concepts/perconaxtradb/index.md index 6c3287e86e..6696286ca7 100644 --- a/docs/guides/percona-xtradb/concepts/perconaxtradb/index.md +++ b/docs/guides/percona-xtradb/concepts/perconaxtradb/index.md @@ -208,16 +208,12 @@ KubeDB accepts the following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/percona-xtradb/configuration/using-pod-template/index.md b/docs/guides/percona-xtradb/configuration/using-pod-template/index.md index e12bad5982..e908beb579 100644 --- a/docs/guides/percona-xtradb/configuration/using-pod-template/index.md +++ b/docs/guides/percona-xtradb/configuration/using-pod-template/index.md @@ -47,7 +47,6 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - schedulerName - tolerations - priorityClassName 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/pgbouncer/concepts/pgbouncer.md b/docs/guides/pgbouncer/concepts/pgbouncer.md index f343a68e6c..40802d1f2e 100644 --- a/docs/guides/pgbouncer/concepts/pgbouncer.md +++ b/docs/guides/pgbouncer/concepts/pgbouncer.md @@ -158,11 +158,9 @@ KubeDB accept following fields to set in `spec.podTemplate:` - podPlacementPolicy - initContainers - imagePullSecrets - - affinity - tolerations - priorityClassName - priority - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Usage of some fields in `spec.podTemplate` is described below, diff --git a/docs/guides/pgpool/concepts/pgpool.md b/docs/guides/pgpool/concepts/pgpool.md index 9b43fe7bc2..b86b8c2c91 100644 --- a/docs/guides/pgpool/concepts/pgpool.md +++ b/docs/guides/pgpool/concepts/pgpool.md @@ -332,16 +332,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/39bf8b2/api/v2/types.go#L44-L279). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/pgpool/configuration/using-podtemplate.md b/docs/guides/pgpool/configuration/using-podtemplate.md index b288c57ce9..19face0c15 100644 --- a/docs/guides/pgpool/configuration/using-podtemplate.md +++ b/docs/guides/pgpool/configuration/using-podtemplate.md @@ -49,16 +49,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Read about the fields in details in [PodTemplate concept](/docs/guides/pgpool/concepts/pgpool.md#specpodtemplate), diff --git a/docs/guides/postgres/concepts/postgres.md b/docs/guides/postgres/concepts/postgres.md index c1c93ed798..696112ee57 100644 --- a/docs/guides/postgres/concepts/postgres.md +++ b/docs/guides/postgres/concepts/postgres.md @@ -278,15 +278,11 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, 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 diff --git a/docs/guides/proxysql/concepts/proxysql/index.md b/docs/guides/proxysql/concepts/proxysql/index.md index 7e5c8822ac..7907bccf35 100644 --- a/docs/guides/proxysql/concepts/proxysql/index.md +++ b/docs/guides/proxysql/concepts/proxysql/index.md @@ -292,16 +292,12 @@ KubeDB accept following fields to set in `.spec.podTemplate`: - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/rabbitmq/concepts/rabbitmq.md b/docs/guides/rabbitmq/concepts/rabbitmq.md index ab3b306b2c..a12fb43f84 100644 --- a/docs/guides/rabbitmq/concepts/rabbitmq.md +++ b/docs/guides/rabbitmq/concepts/rabbitmq.md @@ -246,16 +246,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/39bf8b2/api/v2/types.go#L44-L279). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/rabbitmq/configuration/using-podtemplate.md b/docs/guides/rabbitmq/configuration/using-podtemplate.md index b5e41f349c..42c414386e 100644 --- a/docs/guides/rabbitmq/configuration/using-podtemplate.md +++ b/docs/guides/rabbitmq/configuration/using-podtemplate.md @@ -49,16 +49,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Read about the fields in details in [PodTemplate concept](/docs/guides/rabbitmq/concepts/rabbitmq.md#specpodtemplate), diff --git a/docs/guides/redis/concepts/redis.md b/docs/guides/redis/concepts/redis.md index fdddd8ef6d..daa4280711 100644 --- a/docs/guides/redis/concepts/redis.md +++ b/docs/guides/redis/concepts/redis.md @@ -292,16 +292,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - podPlacementPolicy - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/redis/concepts/redissentinel.md b/docs/guides/redis/concepts/redissentinel.md index 94cf9adfdc..4cd30609ef 100644 --- a/docs/guides/redis/concepts/redissentinel.md +++ b/docs/guides/redis/concepts/redissentinel.md @@ -254,16 +254,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/master/api/v2/types.go#L26C1-L279C1). Uses of some field of `spec.podTemplate` is described below, 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 diff --git a/docs/guides/singlestore/configuration/podtemplating/index.md b/docs/guides/singlestore/configuration/podtemplating/index.md index 66fd5c8111..8142f31311 100644 --- a/docs/guides/singlestore/configuration/podtemplating/index.md +++ b/docs/guides/singlestore/configuration/podtemplating/index.md @@ -49,16 +49,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle Read about the fields in details in [PodTemplate concept](/docs/guides/singlestore/concepts/singlestore.md#spectopology), diff --git a/docs/guides/solr/concepts/solr.md b/docs/guides/solr/concepts/solr.md index 0654789ecf..692bd02a37 100644 --- a/docs/guides/solr/concepts/solr.md +++ b/docs/guides/solr/concepts/solr.md @@ -204,16 +204,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - containers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/39bf8b2/api/v2/types.go#L44-L279). Uses of some field of `spec.podTemplate` is described below, diff --git a/docs/guides/zookeeper/concepts/zookeeper.md b/docs/guides/zookeeper/concepts/zookeeper.md index ce50f57f36..4a56bc8d78 100644 --- a/docs/guides/zookeeper/concepts/zookeeper.md +++ b/docs/guides/zookeeper/concepts/zookeeper.md @@ -273,16 +273,12 @@ KubeDB accept following fields to set in `spec.podTemplate:` - initContainers - imagePullSecrets - nodeSelector - - affinity - serviceAccountName - schedulerName - tolerations - priorityClassName - priority - securityContext - - livenessProbe - - readinessProbe - - lifecycle You can check out the full list [here](https://github.com/kmodules/offshoot-api/blob/ea366935d5bad69d7643906c7556923271592513/api/v1/types.go#L42-L259). Uses of some field of `spec.podTemplate` is described below,