Add help to remember how to start all the things

This commit is contained in:
Eric Dobbs 2019-12-25 13:08:08 -07:00
parent fb2aa0f67c
commit 5c326ed1ae

27
examples/k8s/README.md Normal file
View File

@ -0,0 +1,27 @@
# Wiki Farm in Kubernetes
There are easier ways to get started with federated wiki. Here we are
using wiki to drive some learning about kubernetes.
# We're using MacOS, Docker Desktop, and kind
brew cask install docker
brew install kind
kind create cluster --name wiki
# Deploy Wiki
kubectl apply -f wiki.yaml
# Play with the wiki
# pbcopy & open are MacOS commands
kubectl port-forward svc/wiki-service 3000:80 \
> port-forward.log \
2> port-forward.err &
# get admin password on the clipboard
kubectl exec svc/wiki-service -- \
jq -r .admin .wiki/config.json \
| pbcopy
open http://localhost:3000
# login with the password on the clipboard