Some YAML templates to deploy Outline on Kubernetes
- A Kubernetes cluster running
- Persistent Volumes or Storage Class ready for use on the cluster (you'll need three PVs)
git clone https://github.com/alfieyfc/outline-k8s.git
cd outline-k8s
- Edit sensitive information in
outline-secrets.yaml
- Edit
env
items inoutline-deploy.yaml
as you need, or you could simply use my slack setup (pun intended)
After completing the above section, just run:
kubectl apply -f ./
Give it some time to deploy, it may take Outline a few restarts as it requires Postgres to be ready.
You may expose your service in many ways. The easiest I have in mind is just running:
kubectl -n outline-kb expose deploy outline-deploy --port 3000 --type NodePort
You may also want an Ingress resource in front of your Service, but I'll leave that to yourselves to figure out how.