Add rancher labels to preinstallHook

This commit is contained in:
wbsong111
2024-12-19 15:39:47 +09:00
parent b37971d304
commit 1758638952
4 changed files with 11 additions and 7 deletions
@@ -2,7 +2,8 @@
apiVersion: batch/v1
kind: Job
metadata:
name: create-tls-ca-job
name: {{ template "rancher.fullname" . }}-create-tls-ca-job
labels: {{ include "rancher.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": pre-install
"helm.sh/hook-weight": "2" # Certificate 생성 후 실행되도록 우선순위 설정
@@ -11,7 +12,7 @@ spec:
backoffLimit: 4
template:
spec:
serviceAccountName: create-tls-ca-sa
serviceAccountName: {{ template "rancher.fullname" . }}-create-tls-ca-sa
containers:
- name: create-secret
image: bitnami/kubectl:latest