Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
schallert committed Mar 12, 2019
1 parent ae6c746 commit 89c86fc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ClusterSpec defines the desired state for a M3 cluster to be converge to.
| isolationGroups | IsolationGroups specifies a map of key-value pairs. Defines which isolation groups to deploy persistent volumes for data nodes | [][IsolationGroup](#isolationgroup) | false |
| namespaces | Namespaces specifies the namespaces this cluster will hold. | [][Namespace](#namespace) | false |
| etcdEndpoints | EtcdEndpoints defines the etcd endpoints to use for service discovery. Must be set if no custom configmap is defined. If set, etcd endpoints will be templated in to the default configmap template. | []string | false |
| configMapName | ConfigMapName specifies the ConfigMap to use for this cluster. If unset a default configmap with template variables for etcd endpoints will be used. | *string | false |
| configMapName | ConfigMapName specifies the ConfigMap to use for this cluster. If unset a default configmap with template variables for etcd endpoints will be used. See \"Configuring M3DB\" in the docs for more. | *string | false |
| podIdentityConfig | PodIdentityConfig sets the configuration for pod identity. If unset only pod name and UID will be used. | *PodIdentityConfig | false |
| containerResources | Resources defines memory / cpu constraints for each container in the cluster. | [corev1.ResourceRequirements](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#resourcerequirements-v1-core) | false |
| dataDirVolumeClaimTemplate | DataDirVolumeClaimTemplate is the volume claim template for an M3DB instance's data. It claims PersistentVolumes for cluster storage, volumes are dynamically provisioned by when the StorageClass is defined. | *[corev1.PersistentVolumeClaim](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.10/#persistentvolumeclaim-v1-core) | false |
Expand Down
10 changes: 10 additions & 0 deletions docs/configuration/configuring_m3db.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Configuring M3DB

By default the operator will apply a configmap with basic M3DB options and settings for the coordinator to direct
Prometheus reads/writes to the cluster. This template can be found
[here](https://github.com/m3db/m3db-operator/blob/master/assets/default-config.tmpl).

To apply custom a configuration for the M3DB cluster, one can set the `configMapName` parameter of the cluster [spec] to
an existing configmap.

[spec]: ../api
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pages:
- "Installation": "getting_started/installation.md"
- "Creating a Cluster": "getting_started/create_cluster.md"
- "Configuration":
- "Configuring M3DB": "configuration/configuring_m3db.md"
- "Pod Identity": "configuration/pod_identity.md"
- "Namespaces": "configuration/namespaces.md"
- "API": "api.md"
1 change: 1 addition & 0 deletions pkg/apis/m3dboperator/v1alpha1/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ type ClusterSpec struct {

// ConfigMapName specifies the ConfigMap to use for this cluster. If unset a
// default configmap with template variables for etcd endpoints will be used.
// See "Configuring M3DB" in the docs for more.
// +optional
ConfigMapName *string `json:"configMapName,omitempty" yaml:"configMapName"`

Expand Down

0 comments on commit 89c86fc

Please sign in to comment.