Deploy Siyuan Note on your Kubernetes cluster.
[ Helm Chart will be created later. ]
Things to change
git clone https://github.com/eslam-gomaa/Siyuan-Note-Kubernetes-Deployment.git
cd Siyuan-Note-Kubernetes-Deployment
kubectl apply -f siyuan.yaml
kubectl get pods -l app=siyuan-note
Troubleshooting
kubectl describe pods -l app=siyuan-note
kubectl logs -l app=siyuan-note
# If needed.
kubectl exec -it $(kubectl get pods -l app=siyuan-note -o=name) -- sh
This is a sample Ingress resource to access siyuan
externally, make sure to change the domain & the ingress.class
which represents your Ingress controller.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: siyuan-note
namespace: default
annotations:
kubernetes.io/ingress.class: "haproxy"
spec:
rules:
- host: your-domain.com
http:
paths:
- path: /
backend:
serviceName: siyuan-note
servicePort: 80
Thank you