I have close to 25 deployment and services Each helm template has following -
(我有将近25个部署和服务每个头盔模板都有以下内容-)
enter code here
apiVersion: v1
kind: Deployment
metadata:
name: aa1
spec:
replicas: 1
strategy: {}
template:
metadata:
labels:
app: aa1
spec:
containers:
- env:
- name: {{ .Values.env1 }}
value: "yes"
volumeMounts:
- name: {{ .Values.v1 }}
mountPath: {{ .Values.v1monthPath}}
subPath: {{ .Values.v1subpath }}
similarly I have same env and volumeMount defined for all the 25 templates.
(同样,我为所有25个模板定义了相同的env和volumeMount。)
Is there any way I can use template inheritance in helm.
(有什么办法可以在掌舵中使用模板继承。)
ask by pythonhmmm translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…