fix: file-svc PVC use ReadWriteOnce, add k3s registries config
Some checks failed
Build and Deploy GooSeek / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy GooSeek / build-and-deploy (push) Has been cancelled
- Change file-svc PVC from ReadWriteMany to ReadWriteOnce (local-path compatible) - Set file-svc replicas to 1 (RWO limitation) - Add k3s-registries.yaml for insecure private registry config Made-with: Cursor
This commit is contained in:
@@ -8,7 +8,7 @@ metadata:
|
|||||||
app.kubernetes.io/name: file-svc
|
app.kubernetes.io/name: file-svc
|
||||||
app.kubernetes.io/part-of: gooseek
|
app.kubernetes.io/part-of: gooseek
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: file-svc
|
app: file-svc
|
||||||
@@ -83,7 +83,7 @@ metadata:
|
|||||||
namespace: gooseek
|
namespace: gooseek
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 10Gi
|
||||||
|
|||||||
14
backend/deploy/k8s/k3s-registries.yaml
Normal file
14
backend/deploy/k8s/k3s-registries.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# K3s Private Registry Configuration
|
||||||
|
# This file should be copied to /etc/rancher/k3s/registries.yaml on the K3s node
|
||||||
|
# After copying, restart K3s: sudo systemctl restart k3s
|
||||||
|
|
||||||
|
mirrors:
|
||||||
|
"10.43.193.43:5000":
|
||||||
|
endpoint:
|
||||||
|
- "http://10.43.193.43:5000"
|
||||||
|
"registry.gooseek:5000":
|
||||||
|
endpoint:
|
||||||
|
- "http://registry.gooseek:5000"
|
||||||
|
"localhost:5000":
|
||||||
|
endpoint:
|
||||||
|
- "http://localhost:5000"
|
||||||
Reference in New Issue
Block a user