Try adding the samba server
This commit is contained in:
36
clusters/kairos/samba/deployment.yaml
Normal file
36
clusters/kairos/samba/deployment.yaml
Normal 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
|
||||||
4
clusters/kairos/samba/kustomization.yaml
Normal file
4
clusters/kairos/samba/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
12
clusters/kairos/samba/service.yaml
Normal file
12
clusters/kairos/samba/service.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user