Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Oct 14, 2018
1 parent bb0e1a4 commit 530a27b
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions docs/concepts/databases/mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ f used, set the various sub-fields accordingly.

You can also specify a template for pod of backup job through `spec.backupSchedule.podTemplate`. KubeDB will use the information you have provided in `podTemplate` to create the backup job. KubeDB accept following fields to set in `spec.backupSchedule.podTemplate`:

- annotations (pod's annotation)
- controller.annotations (job's annotation)
- metadata:
- annotations (pod's annotation)
- controller:
- annotations (job's annotation)
- spec:
- args
- env
Expand Down Expand Up @@ -260,9 +262,9 @@ MongoDB managed by KubeDB can be monitored with builtin-Prometheus and CoreOS-Pr
### spec.configSource

`spec.configSource` is an optional field that allows users to provide custom configuration for MongoDB. This field accepts a [`VolumeSource`](https://github.com/kubernetes/api/blob/release-1.11/core/v1/types.go#L47). You can use any kubernetes supported volume source such as `configMap`, `secret`, `azureDisk` etc.

> Please note that, the configfile name needs to be `mongod.conf` for mongodb.

To learn more about how to use a custom configuration file see [here](/docs/guides/mongodb/custom-config/using-custom-config.md).

### spec.podTemplate
Expand All @@ -271,8 +273,10 @@ KubeDB allows providing a template for database pod through `spec.podTemplate`.

KubeDB accept following fields to set in `spec.podTemplate:`

- annotations (pod's annotation)
- controller.annotations (statefulset's annotation)
- metadata:
- annotations (pod's annotation)
- controller:
- annotations (statefulset's annotation)
- spec:
- args
- env
Expand Down Expand Up @@ -346,15 +350,17 @@ You can also provide a template for the services created by KubeDB operator for

KubeDB allows following fields to set in `spec.serviceTemplate`:

- annotations
- type
- ports
- clusterIP
- externalIPs
- loadBalancerIP
- loadBalancerSourceRanges
- externalTrafficPolicy
- healthCheckNodePort
- metadata:
- annotations
- spec:
- type
- ports
- clusterIP
- externalIPs
- loadBalancerIP
- loadBalancerSourceRanges
- externalTrafficPolicy
- healthCheckNodePort

### spec.updateStrategy

Expand Down

0 comments on commit 530a27b

Please sign in to comment.