I've dependency in priority class
inside my k8s
yaml configs files and I need to install before any of my yaml inside the template folder the prio class
(我在我-我依赖priority class
在我的k8s
YAML CONFIGS文件,我需要在模板中之前我的任何YAML的安装文件夹中的PRIO类)
apiVersion: scheduling.k8s.io/v1beta1
kind: PriorityClass
metadata:
name: ocritical
value: 1000
globalDefault: false
After reading the helm docs it seems that I can use the pre-install hook
(阅读掌舵文档后,看来我可以使用预安装钩子了)
I've changed my yaml and add anotiations section with pre-hook, and still it doesnt works, any idea what I miss here?
(我已经更改了yaml并添加了带有预钩的anoiations部分,但仍然无法正常工作,我在这里想念什么吗?)
apiVersion: scheduling.k8s.io/v1beta1
kind: PriorityClass
metadata:
name: ocritical
annotations:
"helm.sh/hook": pre-install
value: 1000
globalDefault: false
The yaml is located inisde the template
folder
(yaml位于template
文件夹中)