Try a new differetn samba image
This commit is contained in:
		| @@ -81,4 +81,3 @@ spec: | ||||
|             server: 192.168.1.100 | ||||
|             path: /tv | ||||
|             readOnly: true | ||||
|              | ||||
|   | ||||
| @@ -3,26 +3,9 @@ kind: ConfigMap | ||||
| metadata: | ||||
|   name: samba-config | ||||
| data: | ||||
|   smb.default: | | ||||
|     [global] | ||||
|         server string = samba | ||||
|         security = user | ||||
|         server min protocol = SMB2 | ||||
|  | ||||
|         map to guest = Bad User | ||||
|         guest account = samba | ||||
|         wins support = yes | ||||
|         local master = yes | ||||
|         preferred master = yes | ||||
|         tls enabled = no | ||||
|         bind interfaces only = no | ||||
|  | ||||
|         # disable printing services | ||||
|         load printers = no | ||||
|         printing = bsd | ||||
|         printcap name = /dev/null | ||||
|         disable spoolss = yes | ||||
|  | ||||
|   FAIL_FAST: "true" | ||||
|   SAMBA_GLOBAL_STANZA: "map to guest = Bad User;guest account = samba;wins support = yes;load printers = no;" | ||||
|   SAMBA_VOLUME_CONFIG_share: | | ||||
|     [share] | ||||
|       path = /storage | ||||
|       comment = Shared | ||||
|   | ||||
| @@ -18,9 +18,14 @@ spec: | ||||
|     spec: | ||||
|       containers: | ||||
|         - name: samba | ||||
|           image: dockurr/samba:latest | ||||
|           image: ghcr.io/servercontainers/samba:a3.22.0-s4.21.4-r4 | ||||
|           ports: | ||||
|             - containerPort: 445 | ||||
|           hostNetwork: true | ||||
|           securityContext: | ||||
|             privileged: true | ||||
|             capabilities: | ||||
|               add: ["NET_ADMIN"] | ||||
|           resources: | ||||
|             limits: | ||||
|               cpu: 1000m | ||||
| @@ -29,16 +34,16 @@ spec: | ||||
|               cpu: 10m | ||||
|               memory: 64Mi | ||||
|           volumeMounts: | ||||
|             - mountPath: /storage | ||||
|               name: local-path | ||||
|             - mountPath: /shares/data | ||||
|               name: share-path | ||||
|             - mountPath: /etc/samba/smb.default | ||||
|               name: samba-config | ||||
|               subPath: smb.default | ||||
|           envFrom: | ||||
|             - configMapRef: | ||||
|                 name: samba-config | ||||
|       volumes: | ||||
|         - name: local-path | ||||
|         - name: share-path | ||||
|           hostPath: | ||||
|             path: /usr/local/data | ||||
|             type: DirectoryOrCreate | ||||
|         - name: samba-config | ||||
|           configMap: | ||||
|             name: samba-config | ||||
|   | ||||
| @@ -4,4 +4,3 @@ namespace: kube-system | ||||
| resources: | ||||
|   - configmap.yaml | ||||
|   - deployment.yaml | ||||
|   - service.yaml | ||||
|   | ||||
| @@ -1,14 +0,0 @@ | ||||
| kind: Service | ||||
| apiVersion: v1 | ||||
| metadata: | ||||
|   name: samba | ||||
|   namespace: kube-system | ||||
|   labels: | ||||
|     app: samba | ||||
| spec: | ||||
|   type: NodePort | ||||
|   selector: | ||||
|     app: samba | ||||
|   ports: | ||||
|     - port: 445 | ||||
|       name: samba | ||||
		Reference in New Issue
	
	Block a user