Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deployment): Enhance Docker ImagePull Secrets Configuration #1754

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions deployments/helm/KubeArmor/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ spec:
labels:
kubearmor-app: kubearmor
spec:
{{- if .Values.kubearmor.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.kubearmor.image.imagePullSecrets | indent 6 }}
{{- end }}
{{- if .Values.kubearmor.tolerations }}
tolerations:
{{ toYaml .Values.kubearmor.tolerations | indent 6 }}
{{- end }}
containers:
- args:
- -gRPC=32767
Expand Down
20 changes: 20 additions & 0 deletions deployments/helm/KubeArmor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ spec:
labels:
kubearmor-app: kubearmor-relay
spec:
{{- if .Values.kubearmorRelay.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.kubearmorRelay.image.imagePullSecrets | indent 6 }}
{{- end }}
{{- if .Values.kubearmorRelay.tolerations }}
tolerations:
{{ toYaml .Values.kubearmorRelay.tolerations | indent 6 }}
{{- end }}
containers:
- args:
{{printf "- -tlsEnabled=%t" .Values.tls.enabled}}
Expand Down Expand Up @@ -79,6 +87,14 @@ spec:
- /manager
image: {{printf "%s:%s" .Values.kubearmorController.image.repository .Values.kubearmorController.image.tag}}
imagePullPolicy: {{ .Values.kubearmorController.imagePullPolicy }}
{{- if .Values.kubearmorController.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.kubearmorController.image.imagePullSecrets | indent 8 }}
{{- end }}
{{- if .Values.kubearmorController.tolerations }}
tolerations:
{{ toYaml .Values.kubearmorController.tolerations | indent 6 }}
{{- end }}
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -117,6 +133,10 @@ spec:
- --logtostderr=true
- --v=0
image: {{printf "%s:%s" .Values.kubeRbacProxy.image.repository .Values.kubeRbacProxy.image.tag}}
{{- if .Values.kubeRbacProxy.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.kubeRbacProxy.image.imagePullSecrets | indent 8 }}
{{- end }}
name: kube-rbac-proxy
ports:
- containerPort: 8443
Expand Down
16 changes: 15 additions & 1 deletion deployments/helm/KubeArmor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ kubearmorRelay:
repository: kubearmor/kubearmor-relay-server
# kubearmor-init image tag
tag: latest
# Optional, but if there are a lot of image pulls required, Docker might be rate-limited. So, it's good to add pull secrets for production.
imagePullSecrets: ""
# kubearmor-init imagePullPolicy
imagePullPolicy: Always
tolerations: ""

# Add environment variables for STDOUT logging
enableStdoutLogs: "false"
enableStdoutAlerts: "false"
Expand Down Expand Up @@ -62,6 +66,8 @@ kubearmorInit:
repository: kubearmor/kubearmor-init
# kubearmor-init image tag
tag: stable
# Optional, but if there are a lot of image pulls required, Docker might be rate-limited. So, it's good to add pull secrets for production.
imagePullSecrets: ""
# kubearmor-init imagePullPolicy
imagePullPolicy: Always

Expand All @@ -71,6 +77,8 @@ kubeRbacProxy:
repository: gcr.io/kubebuilder/kube-rbac-proxy
# kube-rbac-proxy image tag
tag: v0.15.0
# Optional, but if there are a lot of image pulls required, Docker might be rate-limited. So, it's good to add pull secrets for production.
imagePullSecrets: ""
# kube-rbac-proxy imagePullPolicy
imagePullPolicy: Always

Expand All @@ -83,6 +91,9 @@ kubearmorController:
repository: kubearmor/kubearmor-controller
# kubearmor-controller image tag
tag: latest
# Optional, but if there are a lot of image pulls required, Docker might be rate-limited. So, it's good to add pull secrets for production.
imagePullSecrets: ""
tolerations: ""
mutation:
# kubearmor-controller failure policy
failurePolicy: Ignore
Expand All @@ -100,12 +111,15 @@ kubearmorConfigMap:

#volume mounts and volumes
kubearmor:
# https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
tolerations: ""
image:
# kubearmor daemonset image repo
repository: kubearmor/kubearmor
# kubearmor daemonset image tag
tag: stable

# Optional, but if there are a lot of image pulls required, Docker might be rate-limited. So, it's good to add pull secrets for production.
imagePullSecrets: ""
# kubearmor daemonset imagePullPolicy
imagePullPolicy: Always

Expand Down
Loading
Loading