Wechat Markdown Editor
Official Documentation: https://github.com/doocs/md
🚀Installation
Install By
Preliminary
1. Kubernetes is installed; if not, check 🔗link2. Helm is installed; if not, check 🔗link3. ArgoCD is installed; if not, check 🔗link1.prepare `deploy-wx-article-editor.yaml`
Details
kubectl -n argocd apply -f - <<'EOF'
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wx-article-editor
namespace: argocd
spec:
project: default
source:
repoURL: https://bjw-s-labs.github.io/helm-charts
chart: app-template
targetRevision: 4.4.0
helm:
values: |
controllers:
main:
containers:
app:
image:
repository: m.daocloud.io/docker.io/doocs/md
tag: latest
pullPolicy: IfNotPresent
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
service:
app:
controller: main
ports:
http:
port: 80
ingress:
app:
enabled: true
className: nginx
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: self-signed-ca-issuer
hosts:
- host: md.dev.72602.online
paths:
- path: /
pathType: Prefix
service:
identifier: app
port: http
tls:
- secretName: md.dev.72602.online-tls
hosts:
- md.dev.72602.online
destination:
server: https://kubernetes.default.svc
namespace: application
syncPolicy:
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
EOF2.sync by argocd
Details
argocd app sync argocd/wx-article-editorPreliminary
1. Kubernetes is installed; if not, check 🔗link2. Helm is installed; if not, check 🔗link3. ArgoCD is installed; if not, check 🔗link1.prepare `deploy-wx-article-editor.yaml`
Details
kubectl -n argocd apply -f - <<'EOF'
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wx-article-editor
namespace: argocd
spec:
project: default
source:
repoURL: https://bjw-s-labs.github.io/helm-charts
chart: app-template
targetRevision: 4.4.0
helm:
values: |
controllers:
main:
containers:
app:
image:
repository: m.daocloud.io/docker.io/doocs/md
tag: latest
pullPolicy: IfNotPresent
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true
service:
app:
controller: main
ports:
http:
port: 80
ingress:
app:
enabled: true
className: nginx
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt
hosts:
- host: md.72602.online
paths:
- path: /
pathType: Prefix
service:
identifier: app
port: http
tls:
- secretName: md.72602.online-tls
hosts:
- md.72602.online
destination:
server: https://kubernetes.default.svc
namespace: application
syncPolicy:
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
EOF2.sync by argocd
Details
argocd app sync argocd/wx-article-editor1.run container
Details
docker run -d --name wx-article-editor -p 8080:80 doocs/md:latest2.access in browser
Details
open http://localhost:8080Verify
Details
kubectl -n application get pods
kubectl -n application get ingressIf deployed in ZJ environment, open https://md.dev.72602.online.
If deployed in 72602 environment, open https://md.72602.online.