generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from cybozu-go/mdbook
Build documents as a book using mdBook
- Loading branch information
Showing
18 changed files
with
154 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
jobs: | ||
build: | ||
name: Build book | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: make book | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: book | ||
path: docs/book | ||
retention-days: 1 | ||
publish: | ||
name: Publish book on GitHub Pages | ||
runs-on: ubuntu-20.04 | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
- run: rm -rf * | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: book | ||
- run: ls -R | ||
- run: git add . | ||
- run: git status -sb | ||
- name: Commit changes | ||
run: | | ||
git config --global user.name 'Cybozu Neco' | ||
git config --global user.email '[email protected]' | ||
git commit -m 'update' | ||
- name: Push to gh-pages | ||
if: github.ref == 'refs/heads/main' | ||
run: git push origin gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# MOCO documentation | ||
|
||
This is the documentation site for [MOCO](https://github.com/cybozu-go/moco). | ||
MOCO is a Kubernetes operator for MySQL created and maintained by Cybozu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Summary | ||
|
||
[MOCO](README.md) | ||
|
||
# User manual | ||
|
||
- [Getting started](getting_started.md) | ||
- [Deploying MOCO](setup.md) | ||
- [Installing kubectl-moco](install-plugin.md) | ||
- [Usage](usage.md) | ||
- [Advanced topics](advanced.md) | ||
- [Building your own imge](custom-mysqld.md) | ||
- [Troubleshooting](troubles.md) | ||
|
||
# References | ||
|
||
- [Custom resources](crd.md) | ||
- [MySQLCluster](crd_mysqlcluster.md) | ||
- [BackupPolicy](crd_backuppolicy.md) | ||
- [Commands](commands.md) | ||
- [kubectl-moco](kubectl-moco.md) | ||
- [moco-controller](moco-controller.md) | ||
- [moco-backup](moco-backup.md) | ||
- [Metrics](metrics.md) | ||
|
||
# Developer documents | ||
|
||
- [Design notes](notes.md) | ||
- [Goals](design.md) | ||
- [Reconciliation](reconcile.md) | ||
- [Clustering](clustering.md) | ||
- [Backup and restore](backup.md) | ||
- [Upgrading mysqld](upgrading.md) | ||
- [Security](security.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Advanced topics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[book] | ||
language = "en" | ||
multilingual = false | ||
src = "." | ||
title = "MOCO Documentation" | ||
|
||
[output.html] | ||
git-repository-url = "https://github.com/cybozu-go/moco" | ||
edit-url-template = "https://github.com/cybozu-go/moco/edit/main/docs/{path}" | ||
site-url = "/moco/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Custom resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Getting started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Installing kubectl-moco | ||
|
||
[kubectl-moco](kubectl-moco.md) is a plugin for `kubectl` to control MySQL clusters of MOCO. | ||
|
||
Pre-built binaries are available on [GitHub releases](https://github.com/cybozu-go/moco/releases) for Windows, Linux, and MacOS. | ||
|
||
Download one of the binaries for your OS and place it in a directory of `PATH`. | ||
|
||
```console | ||
$ curl -fsL -o /path/to/bin/kubectl-moco https://github.com/cybozu-go/moco/releases/latest/download/kubectl-moco-linux-amd64 | ||
$ chmod a+x /path/to/bin/kubectl-moco | ||
``` | ||
|
||
Check the installation by running `kubectl moco -h`. | ||
|
||
```console | ||
$ kubectl moco -h | ||
the utility command for MOCO. | ||
|
||
Usage: | ||
kubectl-moco [command] | ||
|
||
Available Commands: | ||
credential Fetch the credential of a specified user | ||
help Help about any command | ||
mysql Run mysql command in a specified MySQL instance | ||
switchover Switch the primary instance | ||
|
||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
metav1.ObjectMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta | ||
MySQLClusterConditionType,https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta1#MySQLClusterConditionType | ||
batchv1beta1.ConcurrencyPolicy,https://pkg.go.dev/k8s.io/api/batch/v1beta1#ConcurrencyPolicy | ||
corev1.ConditionStatus,https://pkg.go.dev/k8s.io/api/core/v1#ConditionStatus | ||
metav1.Time,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time | ||
metav1.ListMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ListMeta | ||
corev1.EnvFromSource,https://pkg.go.dev/k8s.io/api/core/v1#EnvFromSource | ||
corev1.EnvVar,https://pkg.go.dev/k8s.io/api/core/v1#EnvVar | ||
corev1.PersistentVolumeClaimSpec,https://pkg.go.dev/k8s.io/api/core/v1#PersistentVolumeClaimSpec | ||
corev1.PodSpec,https://pkg.go.dev/k8s.io/api/core/v1#PodSpec | ||
corev1.ServiceSpec,https://pkg.go.dev/k8s.io/api/core/v1#ServiceSpec | ||
batchv1beta1.ConcurrencyPolicy,https://pkg.go.dev/k8s.io/api/batch/v1beta1#ConcurrencyPolicy | ||
corev1.VolumeSource,https://pkg.go.dev/k8s.io/api/core/v1#VolumeSource | ||
metav1.Duration,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration | ||
metav1.ListMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ListMeta | ||
metav1.ObjectMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta | ||
metav1.Time,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time | ||
MySQLClusterConditionType,https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta1#MySQLClusterConditionType | ||
resource.Quantity,https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity | ||
corev1.EnvFromSource,https://pkg.go.dev/k8s.io/api/core/v1#EnvFromSource | ||
corev1.EnvVar,https://pkg.go.dev/k8s.io/api/core/v1#EnvVar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Design notes |