我的图表定义如下
my-charts/
|_ app1
|
|_Chart.yaml
|_ values-dev.yaml
|_ values.yaml
|_ .helmignore
|_ template/
|_ app1-microservice1-deployment.yaml (k8s deployment definition)
|_ app1-microservice1-service-defintion.yaml (k8s service definition)
|_ app1-microservice2-deployment.yaml
|_ app1-microservice2-service-defintion.yaml
假设我只想部署模板
app1-microservice1-deployment.yaml
app1-microservice1-service-defintion.yaml
有没有办法实现它。
- 如果我
.helmignore
与其他app1-microservice2*.yaml
文件一起使用会helm install/upgrade
忽略这些文件的部署? - 这方面是否有任何最佳实践。
此外,在 helm3 中,Chart.yaml
任何自定义字段/属性都可以包含在annotation
每个文档中。
apiVersion: v2
description: application description
name: app1-microservices
version: 1.0.1
# Is the below possible in helm3
projectNames: microservice1,microservice2
imageRepo:
microservice1: app1/microservice1
microservice2: app1/microservice2
如果在 Chart.yaml 中包含自定义属性会发生什么。
我正在探索掌舵,如果问题不够清楚,请道歉。