Add imagePullSecrets for Gitea registry
- Added gitea-registry secret to base manifests - Added imagePullSecrets to deployments
This commit is contained in:
@@ -12,6 +12,8 @@ spec:
|
||||
labels:
|
||||
app: inventory-api
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
containers:
|
||||
- name: inventory-api
|
||||
image: gitea.tisdev.cloud/gitadmin/inventory-app/api:latest
|
||||
|
||||
@@ -12,6 +12,8 @@ spec:
|
||||
labels:
|
||||
app: inventory-frontend
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: gitea-registry
|
||||
containers:
|
||||
- name: inventory-frontend
|
||||
image: gitea.tisdev.cloud/gitadmin/inventory-app/frontend:latest
|
||||
|
||||
@@ -5,3 +5,4 @@ resources:
|
||||
- deployment-api.yaml
|
||||
- deployment-frontend.yaml
|
||||
- secrets.yaml
|
||||
- registry-secret.yaml
|
||||
|
||||
16
k8s/base/registry-secret.yaml
Normal file
16
k8s/base/registry-secret.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: gitea-registry
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
stringData:
|
||||
.dockerconfigjson: |
|
||||
{
|
||||
"auths": {
|
||||
"gitea.tisdev.cloud": {
|
||||
"username": "gitadmin",
|
||||
"password": "GitAdmin123!",
|
||||
"auth": "Z2l0YWRtaW46R2l0QWRtaW4xMjMh"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user