Skip to content

Commit

Permalink
Update mkdocs, fix nodeport link and add microk8s link
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Jan 11, 2021
1 parent d108274 commit 5d1770a
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/actions/mkdocs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM squidfunk/mkdocs-material:5.5.12
FROM squidfunk/mkdocs-material:6.2.4

RUN pip install mkdocs-awesome-pages-plugin

COPY action.sh /action.sh

Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ dev-env-stop: ## Deletes local Kubernetes cluster created by kind.

.PHONY: live-docs
live-docs: ## Build and launch a local copy of the documentation website in http://localhost:8000
@docker build -t ingress-nginx-docs .github/actions/mkdocs
@docker run --rm -it \
-p 8000:8000 \
-v ${PWD}:/docs \
squidfunk/mkdocs-material:5.5.12
--entrypoint mkdocs \
ingress-nginx-docs serve --dev-addr=0.0.0.0:8000

.PHONY: misspell
misspell: ## Check for spelling errors.
Expand Down
15 changes: 14 additions & 1 deletion docs/deploy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- [Provider Specific Steps](#provider-specific-steps)
- [Docker for Mac](#docker-for-mac)
- [minikube](#minikube)
- [microk8s](#microk8s)
- [AWS](#aws)
- [GCE - GKE](#gce-gke)
- [Azure](#azure)
Expand Down Expand Up @@ -59,6 +60,16 @@ For standard usage:
minikube addons enable ingress
```

#### microk8s

For standard usage:

```console
microk8s enable ingress
```

Please check the microk8s [documentation page](https://microk8s.io/docs/addon-ingress)

#### AWS

In AWS we use a Network load balancer (NLB) to expose the NGINX Ingress controller behind a Service of `Type=LoadBalancer`.
Expand Down Expand Up @@ -157,9 +168,11 @@ Using [NodePort](https://kubernetes.io/docs/concepts/services-networking/service
```console
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.43.0/deploy/static/provider/baremetal/deploy.yaml
```

!!! tip
Applicable on kubernetes clusters deployed on bare-metal with generic Linux distro(Such as CentOs, Ubuntu ...).
!!! tip

!!! info
For extended notes regarding deployments on bare-metal, see [Bare-metal considerations](./baremetal.md).

### Verify installation
Expand Down
48 changes: 39 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,52 @@ repo_name: "kubernetes/ingress-nginx"
repo_url: https://github.com/kubernetes/ingress-nginx
site_url: https://kubernetes.github.io/ingress-nginx

# Extensions
markdown_extensions:
- attr_list
- pymdownx.emoji
- admonition
- codehilite
- pymdownx.inlinehilite
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.superfences
- abbr
- attr_list
- def_list
- footnotes
- meta
- md_in_html
- toc:
# insert a blank space before the character
permalink: ""
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.snippets:
check_paths: true
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde

theme:
name: material
features:
- tabs
- instant
- navigation.tabs
- navigation.tabs.sticky
- navigation.instant
- navigation.sections

palette:
primary: "teal"
Expand All @@ -31,6 +59,8 @@ theme:
plugins:
- search
- awesome-pages
- minify:
minify_html: true

extra_css: [extra.css]

Expand Down

0 comments on commit 5d1770a

Please sign in to comment.