Skip to content
Snippets Groups Projects
Commit 9dc6e49e authored by Julien Leduc's avatar Julien Leduc
Browse files

Setting `imagePullSecrets` to `ctaregsecret` for all pods

This allows to solve the recurrent docker login issue by passing the
credentials to kubernetes as a secret.
Indeed docker login credentials are valid for 3 months then it is over.
We just need to pass the `ctareg` service account credentials in the
`ctaregsecrets` and we are done.
In addition `imagePullSecrets` works at the full cluster level as each
kubelet needs the registry credentials to pull its own image.
If `ctaregsecret` secret does not exists, kubernetes is perfectly fine
with that and uses the default authentication. This means that there is
no need to define this secret (which is useless in the buildtree
environment).
parent 2ce7d5d6
No related branches found
No related tags found
No related merge requests found
......@@ -50,3 +50,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
......@@ -50,3 +50,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
......@@ -57,3 +57,6 @@ spec:
- name: stgstorage
persistentVolumeClaim:
claimName: claimstg
imagePullSecrets:
- name: ctaregsecret
......@@ -69,3 +69,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
......@@ -73,3 +73,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
......@@ -40,3 +40,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
......@@ -109,3 +109,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
......@@ -113,3 +113,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
......@@ -113,3 +113,6 @@ spec:
- name: logstorage
persistentVolumeClaim:
claimName: claimlogs
imagePullSecrets:
- name: ctaregsecret
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment