Try adding the samba server

This commit is contained in:
2025-01-26 18:15:05 +00:00
parent 396c3d7a02
commit e50c8f29c1
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: samba
labels:
app: samba
spec:
replicas: 1
selector:
matchLabels:
app: samba
template:
metadata:
labels:
app: samba
spec:
containers:
- name: samba
image: quay.io/samba.org/samba-server:latest
ports:
- containerPort: 445
resources:
limits:
cpu: 1000m
memory: 2Gi
requests:
cpu: 10m
memory: 64Mi
volumeMounts:
- mountPath: /share
name: local-path
volumes:
- name: local-path
hostPath:
path: /usr/local/data
type: Directory

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: samba
spec:
type: NodePort
selector:
app.kubernetes.io/name: samba
ports:
- name: smb
port: 445
targetPort: 445