Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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文件夹中)

  ask by Jon lib translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
476 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...