first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
37
CloudNative/Kubernetes/Helm/基础知识.md
Normal file
37
CloudNative/Kubernetes/Helm/基础知识.md
Normal file
|
@ -0,0 +1,37 @@
|
|||
#### 创建空白应用
|
||||
```
|
||||
helm create helm-demo
|
||||
```
|
||||
生成目录结构如下:
|
||||
```
|
||||
helm
|
||||
|--charts
|
||||
|--Chart.yaml ## helm的基本信息,包括版本与名称等
|
||||
|--templates ## 应用需要的各种kubernetes的相关
|
||||
| |--deployment.yaml
|
||||
| |--_helpers.tpl
|
||||
| |--ingress.yaml
|
||||
| |--NOTES.txt
|
||||
| |--service.yaml
|
||||
|--values.yaml ## 配置文件信息
|
||||
```
|
||||
|
||||
#### 检查语法错误
|
||||
```
|
||||
helm lint --strict helm-demo
|
||||
```
|
||||
|
||||
#### 打包文件
|
||||
```
|
||||
helm package helm-demo
|
||||
```
|
||||
|
||||
#### 安装测试
|
||||
```
|
||||
helm install helm-demo-test helm-demo-0.1.0.tgz
|
||||
```
|
||||
|
||||
#### 映射端口,在本地测试
|
||||
```
|
||||
kubectl port-forward helm-demo-test-xxxs2e3e3 8080:80
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue