- 新增 .helmignore 文件,定义打包时忽略的文件模式 - 创建 Chart.yaml,配置 Chart 基本信息 - 重命名部署、Ingress和服务文件,统一到 templates 目录 - 新增 values.yaml,定义默认值和可配置参数
16 lines
235 B
YAML
16 lines
235 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: consul
|
|
spec:
|
|
ports:
|
|
- name: "8500"
|
|
port: 8500
|
|
targetPort: 8500
|
|
- name: "8600"
|
|
port: 8600
|
|
protocol: UDP
|
|
targetPort: 8600
|
|
selector:
|
|
app: consul
|