Compare commits
	
		
			18 commits
		
	
	
		
			4b4d30120e
			...
			66612d37f0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 66612d37f0 | ||
| 0ed9afcf96 | |||
| 1f682b195b | |||
| 622b8a36f4 | |||
| 6307bc1cf3 | |||
| 993eccffb2 | |||
| 63810d655d | |||
| 71fa939bdc | |||
| dd18f226f2 | |||
| ab822b67d5 | |||
| ae8acc29ee | |||
| ef09aaedeb | |||
| b0d715badf | |||
| e0458bbb9f | |||
| 19fe703297 | |||
| dd728b9829 | |||
| 3dd6a68634 | |||
| 6f97d323fb | 
					 9 changed files with 126 additions and 2 deletions
				
			
		|  | @ -66,7 +66,7 @@ spec: | ||||||
|       dnsPolicy: ClusterFirst |       dnsPolicy: ClusterFirst | ||||||
|       nodeSelector: |       nodeSelector: | ||||||
|         intel.feature.node.kubernetes.io/gpu: "true" |         intel.feature.node.kubernetes.io/gpu: "true" | ||||||
|         kubernetes.io/hostname: talos-e48-wv7 |         kubernetes.io/hostname: talos-llu-kx3 | ||||||
|       terminationGracePeriodSeconds: 30 |       terminationGracePeriodSeconds: 30 | ||||||
|       volumes: |       volumes: | ||||||
|       - name: jellyfin-config |       - name: jellyfin-config | ||||||
|  |  | ||||||
|  | @ -71,6 +71,16 @@ spec: | ||||||
|       dnsPolicy: ClusterFirst |       dnsPolicy: ClusterFirst | ||||||
|       restartPolicy: Always |       restartPolicy: Always | ||||||
|       schedulerName: default-scheduler |       schedulerName: default-scheduler | ||||||
|  |       affinity: | ||||||
|  |         nodeAffinity: | ||||||
|  |           preferredDuringSchedulingIgnoredDuringExecution: | ||||||
|  |           - weight: 1 | ||||||
|  |             preference: | ||||||
|  |               matchExpressions: | ||||||
|  |               - key: kubernetes.io/hostname | ||||||
|  |                 operator: In | ||||||
|  |                 values: | ||||||
|  |                 - talos-llu-kx3 | ||||||
|       terminationGracePeriodSeconds: 30 |       terminationGracePeriodSeconds: 30 | ||||||
|       volumes: |       volumes: | ||||||
|       - name: config |       - name: config | ||||||
|  |  | ||||||
							
								
								
									
										49
									
								
								apps-kustomized/spoolman/deploy.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								apps-kustomized/spoolman/deploy.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,49 @@ | ||||||
|  | apiVersion: apps/v1 | ||||||
|  | kind: Deployment | ||||||
|  | metadata: | ||||||
|  |   labels: | ||||||
|  |     app: spoolman | ||||||
|  |   name: spoolman | ||||||
|  | spec: | ||||||
|  |   replicas: 1 | ||||||
|  |   selector: | ||||||
|  |     matchLabels: | ||||||
|  |       app: spoolman | ||||||
|  |   strategy: | ||||||
|  |     rollingUpdate: | ||||||
|  |       maxSurge: 25% | ||||||
|  |       maxUnavailable: 25% | ||||||
|  |     type: RollingUpdate | ||||||
|  |   template: | ||||||
|  |     metadata: | ||||||
|  |       labels: | ||||||
|  |         app: spoolman | ||||||
|  |     spec: | ||||||
|  |       containers: | ||||||
|  |       - image: ghcr.io/donkie/spoolman:0.22 | ||||||
|  |         env: | ||||||
|  |         - name: SPOOLMAN_DB_TYPE | ||||||
|  |           value: postgres | ||||||
|  |         - name: SPOOLMAN_DB_HOST | ||||||
|  |           value: postgres-spoolman | ||||||
|  |         - name: SPOOLMAN_DB_USERNAME | ||||||
|  |           valueFrom: | ||||||
|  |             secretKeyRef: | ||||||
|  |               name: spoolman.postgres-spoolman.credentials.postgresql.acid.zalan.do | ||||||
|  |               key: username | ||||||
|  |         - name: SPOOLMAN_DB_PASSWORD | ||||||
|  |           valueFrom: | ||||||
|  |             secretKeyRef: | ||||||
|  |               name: spoolman.postgres-spoolman.credentials.postgresql.acid.zalan.do | ||||||
|  |               key: password | ||||||
|  |         imagePullPolicy: IfNotPresent | ||||||
|  |         name: spoolman | ||||||
|  |         resources: {} | ||||||
|  |         terminationMessagePath: /dev/termination-log | ||||||
|  |         terminationMessagePolicy: File | ||||||
|  |       dnsPolicy: ClusterFirst | ||||||
|  |       restartPolicy: Always | ||||||
|  |       schedulerName: default-scheduler | ||||||
|  |       securityContext: {} | ||||||
|  |       terminationGracePeriodSeconds: 30 | ||||||
|  | status: {} | ||||||
							
								
								
									
										22
									
								
								apps-kustomized/spoolman/postgres.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								apps-kustomized/spoolman/postgres.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | ||||||
|  | apiVersion: "acid.zalan.do/v1" | ||||||
|  | kind: postgresql | ||||||
|  | metadata: | ||||||
|  |   name: postgres-spoolman | ||||||
|  | spec: | ||||||
|  |   teamId: spoolman  | ||||||
|  |   volume: | ||||||
|  |     size: 8Gi | ||||||
|  |     storageClass: longhorn-fast | ||||||
|  |   numberOfInstances: 1 | ||||||
|  |   users: | ||||||
|  |     spoolman: | ||||||
|  |     - superuser | ||||||
|  |     - createdb | ||||||
|  |   databases: | ||||||
|  |     spoolman: spoolman  # dbname: owner | ||||||
|  |   postgresql: | ||||||
|  |     version: "15" | ||||||
|  |   resources: | ||||||
|  |     requests: | ||||||
|  |       cpu: 10m | ||||||
|  |       memory: 1Mi | ||||||
							
								
								
									
										15
									
								
								apps-kustomized/spoolman/svc.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								apps-kustomized/spoolman/svc.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | apiVersion: v1 | ||||||
|  | kind: Service | ||||||
|  | metadata: | ||||||
|  |   labels: | ||||||
|  |     app: spoolman | ||||||
|  |   name: k8s-spoolman | ||||||
|  |   annotations: | ||||||
|  |     external-dns.alpha.kubernetes.io/hostname: spoolman.martyn.berlin | ||||||
|  | spec: | ||||||
|  |   ports: | ||||||
|  |   - port: 80 | ||||||
|  |     targetPort: 8000 | ||||||
|  |   selector: | ||||||
|  |     app: spoolman | ||||||
|  |   type: LoadBalancer | ||||||
|  | @ -29,7 +29,7 @@ spec: | ||||||
|           value: "true" |           value: "true" | ||||||
|         - name: ffmpegVersion |         - name: ffmpegVersion | ||||||
|           value: "6" |           value: "6" | ||||||
|         image: ghcr.io/haveagitgat/tdarr:2.35.02 |         image: ghcr.io/haveagitgat/tdarr:2.36.01 | ||||||
|         imagePullPolicy: Always |         imagePullPolicy: Always | ||||||
|         name: tdarr |         name: tdarr | ||||||
|         ports: |         ports: | ||||||
|  |  | ||||||
|  | @ -16,6 +16,7 @@ spec: | ||||||
|     - https://k8s-at-home.com/charts/ |     - https://k8s-at-home.com/charts/ | ||||||
|     - https://charts.bitnami.com/bitnami |     - https://charts.bitnami.com/bitnami | ||||||
|     - https://charts.gabe565.com |     - https://charts.gabe565.com | ||||||
|  |     - https://ideaplexus.gitlab.io/charts | ||||||
|   destinations: |   destinations: | ||||||
|     - name: '*' |     - name: '*' | ||||||
|       namespace: '*' |       namespace: '*' | ||||||
|  |  | ||||||
|  | @ -24,6 +24,16 @@ spec: | ||||||
|           users: |           users: | ||||||
|           - username: martyn |           - username: martyn | ||||||
|             password: "564628" |             password: "564628" | ||||||
|  |         affinity: | ||||||
|  |           nodeAffinity: | ||||||
|  |             preferredDuringSchedulingIgnoredDuringExecution: | ||||||
|  |             - weight: 1 | ||||||
|  |               preference: | ||||||
|  |                 matchExpressions: | ||||||
|  |                 - key: kubernetes.io/hostname | ||||||
|  |                   operator: In | ||||||
|  |                   values: | ||||||
|  |                   - talos-llu-kx3 | ||||||
|         persistence: |         persistence: | ||||||
|           extraPVCShares: |           extraPVCShares: | ||||||
|           - name: oldspace |           - name: oldspace | ||||||
|  |  | ||||||
							
								
								
									
										17
									
								
								everything-app/spoolman.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								everything-app/spoolman.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | ||||||
|  | apiVersion: argoproj.io/v1alpha1 | ||||||
|  | kind: Application | ||||||
|  | metadata: | ||||||
|  |   name: spoolman | ||||||
|  |   namespace: argocd | ||||||
|  | spec: | ||||||
|  |   destination: | ||||||
|  |     namespace: spoolman | ||||||
|  |     server: https://kubernetes.default.svc | ||||||
|  |   project: apps | ||||||
|  |   source: | ||||||
|  |     path: apps-kustomized/spoolman | ||||||
|  |     repoURL: https://git.martyn.berlin/martyn/infra4talos | ||||||
|  |     targetRevision: HEAD | ||||||
|  |   syncPolicy: | ||||||
|  |     automated: | ||||||
|  |       selfHeal: true | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue