diff --git a/clusters/kairos/samba/deployment.yaml b/clusters/kairos/samba/deployment.yaml new file mode 100644 index 0000000..2ba69e0 --- /dev/null +++ b/clusters/kairos/samba/deployment.yaml @@ -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 \ No newline at end of file diff --git a/clusters/kairos/samba/kustomization.yaml b/clusters/kairos/samba/kustomization.yaml new file mode 100644 index 0000000..4dc6e88 --- /dev/null +++ b/clusters/kairos/samba/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- deployment.yaml \ No newline at end of file diff --git a/clusters/kairos/samba/service.yaml b/clusters/kairos/samba/service.yaml new file mode 100644 index 0000000..53ace4f --- /dev/null +++ b/clusters/kairos/samba/service.yaml @@ -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 \ No newline at end of file