k8s部署云笔记系统
起因是导师之前让两个研一的学弟学妹写了个前后端的云笔记系统,然后后面让我部署到服务器中,因此记录一下。
创建namespacehelm12# 创建namespacekubectl create namespace note
1. 部署MySQL创建mysql文件夹
1sudo mkdir -p /home/mysql/data
1.1 挂载数据卷note-mysql-pvc.yaml
123456789101112131415161718192021222324apiVersion: v1kind: PersistentVolumemetadata: name: note-mysql-pvspec: capacity: storage: 1Gi accessModes: - ReadWriteOnce hostPath: path: /home/mysql/data # 主机上的数据存储路径---apiVersion: v1kind: PersistentVolumeClaimmetadata: name: note-mysql-pvcspec: accessMod ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment