Preferred the other version...

This commit is contained in:
2025-07-09 20:52:51 +01:00
parent ba105d67c3
commit 075e452cbf
2 changed files with 24 additions and 71 deletions

View File

@@ -18,15 +18,9 @@ spec:
spec:
containers:
- name: samba
image: quay.io/samba.org/samba-server:latest
image: ghcr.io/servercontainers/samba:a3.22.0-s4.21.4-r4
ports:
- containerPort: 445
hostPort: 445
env:
- name: SAMBACC_CONFIG
value: /etc/samba-container/config.json
- name: SAMBA_CONTAINER_ID
value: local
resources:
limits:
cpu: 1000m
@@ -35,20 +29,19 @@ spec:
cpu: 10m
memory: 64Mi
volumeMounts:
- mountPath: /share
name: local-path
- mountPath: /etc/samba-container
name: samba-config
- mountPath: /shares/data
name: share-path
envFrom:
- configMapRef:
name: samba-config
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
volumes:
- name: local-path
- name: share-path
hostPath:
path: /usr/local/data
- name: samba-config
configMap:
name: samba-config
type: DirectoryOrCreate