Skip to content

Commit

Permalink
Revert "remove samba"
Browse files Browse the repository at this point in the history
This reverts commit 0b8fbe9.
  • Loading branch information
FreekingDean committed Jan 6, 2025
1 parent 5e83f07 commit 6eb25af
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions kubernetes/apps/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ resources:
- ./redis/ks.yaml
- ./radarr/ks.yaml
- ./sabnzbd/ks.yaml
- ./samba/ks.yaml
- ./sonarr/ks.yaml
55 changes: 55 additions & 0 deletions kubernetes/apps/default/samba/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helmrelease_v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: samba
namespace: default
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 0.0.12
sourceRef:
kind: HelmRepository
name: freekingdean
namespace: flux-system
maxHistory: 3
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
stateful: true
defaultPodOptions:
securityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
fsGroupChangePolicy: "OnRootMismatch"
supplementalGroups: [10000]
persistence:
media:
existingClaim: media
type: persistentVolumeClaim
image:
repository: dperson/samba
tag: latest
env:
TZ: America/New_York
SHARE: media;/media
SMB: "true"
loadbalanced: true
ports:
http: 445
ingress:
enabled: false
serviceMonitor:
enabled: false
11 changes: 11 additions & 0 deletions kubernetes/apps/default/samba/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./helmrelease.yaml
labels:
- pairs:
app.kubernetes.io/name: samba
app.kubernetes.io/instance: samba
18 changes: 18 additions & 0 deletions kubernetes/apps/default/samba/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomization_v1beta2.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-samba
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-media
path: ./kubernetes/apps/default/samba/app
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
interval: 30m
retryInterval: 1m
timeout: 3m

0 comments on commit 6eb25af

Please sign in to comment.