Skip to content

Commit 8c47840

Browse files
🔧 Add private docker registry secret (#1)
modified: README.md; modified: charts/kube-arch-scheduler/Chart.yaml; modified: charts/kube-arch-scheduler/templates/deployment.yaml; modified: charts/kube-arch-scheduler/values.yaml
1 parent 85184ab commit 8c47840

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ addToDefaultScheduler: true
3030
# and it will only affect pods with: [schedulerName: kube-arch-scheduler].
3131
nonDefaultSchedulerName: kube-arch-scheduler
3232

33+
# dockerconfig.json is a base64 encoded docker config file, it will be used
34+
# to pull the image manifests. The pod needs to have the secret mounted at
35+
# /root/.docker/config.json. This is only needed if you are using a private
36+
# registry. If you are using a public registry, you can leave this empty.
37+
dockerConfigSecretName: ""
38+
3339
# The weight of each architecture,
3440
# if a pod can sit on both, it will prefer the one with the higher weight.
3541
# The default weight of undefined architectures is 0, meaning none will have

charts/kube-arch-scheduler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.0.14
16+
version: 0.1.0
1717
appVersion: 0.0.5

charts/kube-arch-scheduler/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ spec:
2424
- name: scheduler-config
2525
configMap:
2626
name: {{ include "kube-arch-scheduler.fullname" . }}-config
27+
{{ if .Values.dockerConfigSecretName }}
28+
- name: registry-creds
29+
secret:
30+
secretName: {{ .Values.dockerConfigSecretName }}
31+
{{ end }}
2732
containers:
2833
- name: scheduler-ctrl
2934
image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag }}
@@ -37,3 +42,8 @@ spec:
3742
volumeMounts:
3843
- name: scheduler-config
3944
mountPath: /scheduler
45+
{{ if .Values.dockerConfigSecretName }}
46+
- name: registry-creds
47+
mountPath: "/root/.docker"
48+
readOnly: true
49+
{{ end }}

charts/kube-arch-scheduler/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ addToDefaultScheduler: true
1717
# and it will only affect pods with: [schedulerName: kube-arch-scheduler].
1818
nonDefaultSchedulerName: kube-arch-scheduler
1919

20+
# dockerconfig.json is a base64 encoded docker config file, it will be used
21+
# to pull the image manifests. The pod needs to have the secret mounted at
22+
# /root/.docker/config.json. This is only needed if you are using a private
23+
# registry. If you are using a public registry, you can leave this empty.
24+
dockerConfigSecretName: ""
25+
2026
# The weight of each architecture,
2127
# if a pod can sit on both, it will prefer the one with the higher weight.
2228
# The default weight of undefined architectures is 0, meaning none will have

0 commit comments

Comments
 (0)