forked from k0sproject/k0s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove trailing whitespace from all markdowns (k0sproject#925)
Signed-off-by: Kimmo Lehto <[email protected]> Add github workflow for linting markdown Signed-off-by: Kimmo Lehto <[email protected]> Finetuning Signed-off-by: Kimmo Lehto <[email protected]> More tuning Signed-off-by: Kimmo Lehto <[email protected]> Path? Signed-off-by: Kimmo Lehto <[email protected]> Huge amount of manual fixes Signed-off-by: Kimmo Lehto <[email protected]> Second batch Signed-off-by: Kimmo Lehto <[email protected]> Third batch Signed-off-by: Kimmo Lehto <[email protected]> Does it need four indent? Signed-off-by: Kimmo Lehto <[email protected]> Maybe passes now Signed-off-by: Kimmo Lehto <[email protected]> Markdown is serious business Signed-off-by: Kimmo Lehto <[email protected]> Should be the last error Signed-off-by: Kimmo Lehto <[email protected]> Co-authored-by: Kimmo Lehto <[email protected]>
- Loading branch information
Showing
75 changed files
with
1,314 additions
and
1,127 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 |
---|---|---|
@@ -1,61 +1,24 @@ | ||
name: Publish docs via GitHub Pages | ||
name: Lint docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- published | ||
- release-* | ||
paths: | ||
- '**.md' | ||
pull_request: | ||
branches: | ||
- main | ||
- release-* | ||
paths: | ||
- '**.md' | ||
jobs: | ||
build: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
name: Deploy docs | ||
lint: | ||
name: Lint markdown | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v1 | ||
- uses: articulate/actions-markdownlint@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Checkout deps | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: lensapp/mkdocs-material-insiders | ||
token: ${{ env.GITHUB_TOKEN }} | ||
path: mkdocs-material-insiders | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip -v --log /tmp/pip.log install ./mkdocs-material-insiders | ||
pip install mike | ||
- name: Checkout K0s release | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: git config | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Using Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: mkdocs deploy main | ||
if: contains(github.ref, 'refs/heads/main') | ||
run: | | ||
mike deploy --push main | ||
- name: Get the release version | ||
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease # (don't generate for pre-releases) | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: mkdocs deploy new release | ||
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease # (don't generate for pre-releases) | ||
run: | | ||
mike deploy --push --update-aliases ${{ steps.get_version.outputs.VERSION }} latest | ||
mike set-default --push ${{ steps.get_version.outputs.VERSION }} | ||
config: .github/workflows/markdownlint-config.json |
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,8 @@ | ||
{ | ||
"default": true, | ||
"line_length": false, | ||
"no-bare-urls": false, | ||
"first-line-h1": false, | ||
"single-trailing-newline": false, | ||
"ol-prefix": "one_or_ordered" | ||
} |
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,61 @@ | ||
name: Publish docs via GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
build: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Checkout deps | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: lensapp/mkdocs-material-insiders | ||
token: ${{ env.GITHUB_TOKEN }} | ||
path: mkdocs-material-insiders | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip -v --log /tmp/pip.log install ./mkdocs-material-insiders | ||
pip install mike | ||
- name: Checkout K0s release | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: git config | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Using Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: mkdocs deploy main | ||
if: contains(github.ref, 'refs/heads/main') | ||
run: | | ||
mike deploy --push main | ||
- name: Get the release version | ||
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease # (don't generate for pre-releases) | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | ||
|
||
- name: mkdocs deploy new release | ||
if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease # (don't generate for pre-releases) | ||
run: | | ||
mike deploy --push --update-aliases ${{ steps.get_version.outputs.VERSION }} latest | ||
mike set-default --push ${{ steps.get_version.outputs.VERSION }} |
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,3 +1,3 @@ | ||
# k0s Community Code Of Conduct | ||
|
||
Please refer to our [contributor code of conduct](contributors/CODE_OF_CONDUCT.md). | ||
Please refer to our [contributor code of conduct](contributors/CODE_OF_CONDUCT.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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# K0s Contributor Guide | ||
Our contributor's guide can be found [here](docs/contributors/overview.md). | ||
|
||
Please refer to our [contributor's guide](docs/contributors/overview.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
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 |
---|---|---|
@@ -1,29 +1,33 @@ | ||
# Frequently asked questions | ||
|
||
### How is k0s pronounced? | ||
## How is k0s pronounced? | ||
|
||
kay-zero-ess | ||
|
||
### How do I run a single node cluster? | ||
## How do I run a single node cluster? | ||
|
||
The cluster can be started with: | ||
`k0s controller --single | ||
|
||
```shell | ||
k0s controller --single | ||
``` | ||
|
||
See also the [Getting Started](https://docs.k0sproject.io/latest/install/) tutorial. | ||
|
||
### How do I connect to the cluster? | ||
## How do I connect to the cluster? | ||
|
||
You find the config in `${DATADIR}/pki/admin.conf` (default: `/var/lib/k0s/pki/admin.conf`). Copy this file, and change the `localhost` entry to the public ip of the controller. Use the modified config to connect with kubectl: | ||
``` | ||
|
||
```shell | ||
export KUBECONFIG=/path/to/admin.conf | ||
kubectl ... | ||
``` | ||
|
||
### Why doesn't `kubectl get nodes` list the k0s controllers? | ||
## Why doesn't `kubectl get nodes` list the k0s controllers? | ||
|
||
As a default, the control plane does not run kubelet at all, and will not accept any workloads, so the controller will not show up on the node list in kubectl. If you want your controller to accept workloads and run pods, you do so with: | ||
`k0s controller --enable-worker` (recommended only as test/dev/POC environments). | ||
|
||
### Is k0sproject really open source? | ||
## Is k0sproject really open source? | ||
|
||
Yes, k0sproject is 100% open source. The source code is under Apache 2 and the documentation is under the Creative Commons License. Mirantis, Inc. is the main contributor and sponsor for this OSS project: building all the binaries from upstream, performing necessary security scans and calculating checksums so that it's easy and safe to use. The use of these ready-made binaries are subject to Mirantis EULA and the binaries include only open source software. |
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,28 +1,32 @@ | ||
# Overview | ||
|
||
 | ||
|
||
k0s is an all-inclusive Kubernetes distribution, configured with all of the features needed to build a Kubernetes cluster simply by copying and running an executable file on each target host. | ||
|
||
## Key Features | ||
|
||
- Available as a single static binary | ||
- Offers a self-hosted, isolated control plane | ||
- Supports a variety of storage backends, including etcd, SQLite, MySQL (or any | ||
compatible), and PostgreSQL. | ||
- Supports a variety of storage backends, including etcd, SQLite, MySQL (or any compatible), and PostgreSQL. | ||
- Offers an Elastic control plane | ||
- Vanilla upstream Kubernetes | ||
- Supports custom container runtimes (containerd is the default) | ||
- Supports custom Container Network Interface (CNI) plugins (calico is the | ||
default) | ||
- Supports custom Container Network Interface (CNI) plugins (calico is the default) | ||
- Supports x86_64 and arm64 | ||
|
||
## Join the Community | ||
We welcome your help in building k0s! If you are interested, we invite you to check out the [k0s Contributing Guide](contributors/overview.md) and our [Code of Conduct](contributors/CODE_OF_CONDUCT.md). | ||
|
||
We welcome your help in building k0s! If you are interested, we invite you to check out the [k0s Contributing Guide](contributors/overview.md) and our [Code of Conduct](contributors/CODE_OF_CONDUCT.md). | ||
|
||
## Demo | ||
|
||
 | ||
|
||
## Downloading k0s | ||
|
||
[Download k0s](https://github.com/k0sproject/k0s/releases) for linux amd64 and arm64 architectures. | ||
|
||
## Getting Started | ||
|
||
[Creating A k0s Cluster](install.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
Oops, something went wrong.