43 lines
915 B
YAML
43 lines
915 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: samba
|
|
labels:
|
|
app: samba
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: samba
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: samba
|
|
spec:
|
|
containers:
|
|
- name: samba
|
|
image: dockurr/samba:latest
|
|
ports:
|
|
- containerPort: 445
|
|
resources:
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 64Mi
|
|
volumeMounts:
|
|
- mountPath: /storage
|
|
name: local-path
|
|
- mountPath: /etc/samba
|
|
name: samba-config
|
|
volumes:
|
|
- name: local-path
|
|
hostPath:
|
|
path: /usr/local/data
|
|
type: DirectoryOrCreate
|
|
- name: samba-config
|
|
configMap:
|
|
name: samba-config |