feat: update K8s manifests to use regcred secret
Updated all Kubernetes manifests to use 'regcred' secret for image pulling operations instead of 'gitea-registry-secret'. Changes: - backend-deployment.yaml: Updated imagePullSecrets to use regcred - frontend-deployment.yaml: Updated imagePullSecrets to use regcred - image-pull-secret.yaml: Updated secret name to regcred - DEPLOYMENT_GUIDE.md: Updated documentation references All manifests now consistently use the existing 'regcred' secret that's already created in the adopt-a-street namespace for pulling images from the container registry. 🤖 Generated with AI Assistant Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
@@ -41,7 +41,7 @@ This guide covers the configuration changes needed to deploy Adopt-a-Street with
|
|||||||
### 1. Create Image Pull Secret
|
### 1. Create Image Pull Secret
|
||||||
```bash
|
```bash
|
||||||
# Replace YOUR_GITEA_PASSWORD with your actual Gitea password
|
# Replace YOUR_GITEA_PASSWORD with your actual Gitea password
|
||||||
kubectl create secret docker-registry gitea-registry-secret \
|
kubectl create secret docker-registry regcred \
|
||||||
--docker-server=gitea-http.taildb3494.ts.net \
|
--docker-server=gitea-http.taildb3494.ts.net \
|
||||||
--docker-username=will \
|
--docker-username=will \
|
||||||
--docker-password=YOUR_GITEA_PASSWORD \
|
--docker-password=YOUR_GITEA_PASSWORD \
|
||||||
@@ -131,7 +131,7 @@ kubectl logs -n adopt-a-street deployment/adopt-a-street-frontend
|
|||||||
### Image Pull Issues
|
### Image Pull Issues
|
||||||
```bash
|
```bash
|
||||||
# Verify image pull secret
|
# Verify image pull secret
|
||||||
kubectl get secret gitea-registry-secret -n adopt-a-street -o yaml
|
kubectl get secret regcred -n adopt-a-street -o yaml
|
||||||
|
|
||||||
# Test image pull
|
# Test image pull
|
||||||
kubectl run test-pod --image=gitea-http.taildb3494.ts.net:will/adopt-a-street/backend:latest --dry-run=client -o yaml
|
kubectl run test-pod --image=gitea-http.taildb3494.ts.net:will/adopt-a-street/backend:latest --dry-run=client -o yaml
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ spec:
|
|||||||
values:
|
values:
|
||||||
- arm64 # Pi 5 architecture
|
- arm64 # Pi 5 architecture
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitea-registry-secret
|
- name: regcred
|
||||||
containers:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
# Update with your registry and tag
|
# Update with your registry and tag
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
# Frontend can run on any node (lightweight static serving)
|
# Frontend can run on any node (lightweight static serving)
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: gitea-registry-secret
|
- name: regcred
|
||||||
containers:
|
containers:
|
||||||
- name: frontend
|
- name: frontend
|
||||||
# Update with your registry and tag
|
# Update with your registry and tag
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: gitea-registry-secret
|
name: regcred
|
||||||
namespace: adopt-a-street
|
namespace: adopt-a-street
|
||||||
type: kubernetes.io/dockerconfigjson
|
type: kubernetes.io/dockerconfigjson
|
||||||
data:
|
data:
|
||||||
@@ -13,7 +13,7 @@ data:
|
|||||||
# 2. Update the base64 encoded .dockerconfigjson with your credentials
|
# 2. Update the base64 encoded .dockerconfigjson with your credentials
|
||||||
# 3. Apply with: kubectl apply -f image-pull-secret.yaml
|
# 3. Apply with: kubectl apply -f image-pull-secret.yaml
|
||||||
# 4. To generate the proper config, run:
|
# 4. To generate the proper config, run:
|
||||||
# kubectl create secret docker-registry gitea-registry-secret \
|
# kubectl create secret docker-registry regcred \
|
||||||
# --docker-server=gitea-http.taildb3494.ts.net \
|
# --docker-server=gitea-http.taildb3494.ts.net \
|
||||||
# --docker-username=will \
|
# --docker-username=will \
|
||||||
# --docker-password=YOUR_GITEA_PASSWORD \
|
# --docker-password=YOUR_GITEA_PASSWORD \
|
||||||
|
|||||||
Reference in New Issue
Block a user