具有以下目录布局,
.Values.global.sa_json
只有在你有空的时候才会打电话
helm template api .
/mnt/c/home/primaryChart> tree
.
âââ Chart.yaml <-- your main chart
âââ charts
â âââ api
â âââ Chart.yaml <-- your subchart
â âââ charts
â âââ templates
â â âââ secrets.yaml
â âââ values.yaml
âââ templates
âââ values.yaml <--- this is where your global.sa_json is defined
你的
values file
应该叫
values.yaml
value.yaml
-f
旗帜
helm template api . -f value.yaml
/mnt/c/home/primaryChart> helm template api .
---
# Source: primaryChart/charts/api/templates/secrets.yaml
apiVersion: v1
kind: Secret
metadata:
name: api-service-account-secret
type: Opaque
data:
sa_json: _b64_sa_credentials