- 创建helm 模板
- 修改value.yaml
- 修改deployment.yaml
- 安装chart
helm create spring-helm-test
修改value.yamlrepository和tag 修改
image: repository: nginx pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: ""修改deployment.yaml
把端口修改成spring 应用8080
ports:
- name: http
containerPort: 80
protocol: TCP
安装chart
helm install spring-demo-test ./spring-helm-test/
如果有报错可以uninstall 重来
helm uninstall spring-demo-test
查看生成的k8s 资源文件
helm get manifest spring-demo-test



