kubernetes-guide/content/cases/home-network/samba.md

34 lines
740 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 文件共享服务Samba
## 为什么需要 Samba 服务?
家里有些设备,比如电视机,支持通过 Samba 远程读取文件来看路由器磁盘中的视频文件,前提是路由器安装了 Samba 服务。
## 开源项目
本文部署的 Samba 服务使用这个开源项目构建的容器镜像https://github.com/dperson/samba
## 目录结构
```txt
samba
├── daemonset.yaml
└── kustomization.yaml
```
## 准备 daemonset.yaml
<FileBlock showLineNumbers title="daemonset.yaml" file="home-network/samba.yaml" />
## 准备 kustomization.yaml
```yaml title="kustomization.yaml"
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- daemonset.yaml
namespace: default
```