Manage stump #429
							
								
								
									
										48
									
								
								apps/stump/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								apps/stump/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: stump | ||||
| spec: | ||||
|   replicas: 1 | ||||
|   selector: | ||||
|     matchLabels: | ||||
|       app: stump | ||||
|  | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: stump | ||||
|  | ||||
|     spec: | ||||
|       containers: | ||||
|       - name: stump | ||||
|         image: stump | ||||
|  | ||||
|         resources: | ||||
|           requests: | ||||
|             memory: "64Mi" | ||||
|             cpu: "250m" | ||||
|           limits: | ||||
|             memory: "128Mi" | ||||
|             cpu: "500m" | ||||
|          | ||||
|         ports: | ||||
|         - containerPort: 10801 | ||||
|  | ||||
|         envFrom: | ||||
|         - configMapRef: | ||||
|             name: stump-config | ||||
|  | ||||
|         volumeMounts: | ||||
|         - name: stump-data | ||||
|           mountPath: /data | ||||
|         - name: stump-config | ||||
|           mountPath: /config | ||||
|          | ||||
|       volumes: | ||||
|       - name: stump-config | ||||
|         persistentVolumeClaim: | ||||
|           claimName: stump-config | ||||
|       - name: stump-data | ||||
|         persistentVolumeClaim: | ||||
|           claimName: stump-data | ||||
							
								
								
									
										17
									
								
								apps/stump/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/stump/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| apiVersion: traefik.io/v1alpha1 | ||||
| kind: IngressRoute | ||||
| metadata: | ||||
|   name: stump-ingressroute | ||||
|  | ||||
| spec: | ||||
|   entryPoints: | ||||
|     - websecure | ||||
|   routes: | ||||
|   - match: Host(`stump.kluster.moll.re`) | ||||
|     kind: Rule | ||||
|     services: | ||||
|     - name: stump-web | ||||
|       port: 10801 | ||||
|  | ||||
|   tls: | ||||
|     certResolver: default-tls  | ||||
							
								
								
									
										17
									
								
								apps/stump/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/stump/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
|  | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
| resources:  | ||||
|   - namespace.yaml | ||||
|   - pvc.yaml | ||||
|   - stump-config.configmap.yaml | ||||
|   - deployment.yaml | ||||
|   - service.yaml | ||||
|   - ingress.yaml | ||||
|  | ||||
| namespace: stump | ||||
|  | ||||
| images: | ||||
|   - name: stump | ||||
|     newName: aaronleopold/stump | ||||
|     newTag: "0.0.10" | ||||
							
								
								
									
										4
									
								
								apps/stump/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/stump/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: v1 | ||||
| kind: Namespace | ||||
| metadata: | ||||
|   name: placeholder | ||||
							
								
								
									
										23
									
								
								apps/stump/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								apps/stump/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| kind: PersistentVolumeClaim | ||||
| apiVersion: v1 | ||||
| metadata: | ||||
|   name: stump-data | ||||
| spec: | ||||
|   storageClassName: "nfs-client" | ||||
|   accessModes: | ||||
|     - ReadWriteOnce | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: 10Gi | ||||
| --- | ||||
| kind: PersistentVolumeClaim | ||||
| apiVersion: v1 | ||||
| metadata: | ||||
|   name: stump-config | ||||
| spec: | ||||
|   storageClassName: "nfs-client" | ||||
|   accessModes: | ||||
|     - ReadWriteOnce | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: 10Gi | ||||
							
								
								
									
										10
									
								
								apps/stump/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/stump/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
| metadata: | ||||
|   name: stump-web | ||||
| spec: | ||||
|   selector: | ||||
|     app: stump | ||||
|   ports: | ||||
|   - port: 10801 | ||||
|     targetPort: 10801 | ||||
							
								
								
									
										8
									
								
								apps/stump/stump-config.configmap.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								apps/stump/stump-config.configmap.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| apiVersion: v1 | ||||
| kind: ConfigMap | ||||
| metadata: | ||||
|   name: stump-config | ||||
| data: | ||||
|   STUMP_ENABLE_UPLOAD: true | ||||
|   STUMP_CONFIG_DIR: /config | ||||
|   ENABLE_KOREADER_SYNC: "true" | ||||
| @@ -41,5 +41,6 @@ resources: | ||||
|   - paperless/ | ||||
|   - recipes/ | ||||
|   - rss/ | ||||
|   - stump/ | ||||
|   - todos/ | ||||
|   - whoami/ | ||||
|   | ||||
							
								
								
									
										18
									
								
								kluster-deployments/stump/application.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								kluster-deployments/stump/application.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| apiVersion: argoproj.io/v1alpha1 | ||||
| kind: Application | ||||
| metadata: | ||||
|   name: stump-application | ||||
|  | ||||
| spec: | ||||
|   project: apps | ||||
|   destination: | ||||
|     server: https://kubernetes.default.svc | ||||
|     namespace: stump | ||||
|   syncPolicy: | ||||
|     automated: | ||||
|       prune: true | ||||
|       selfHeal: true | ||||
|   sources: | ||||
|     - repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git | ||||
|       targetRevision: main | ||||
|       path: apps/stump | ||||
							
								
								
									
										4
									
								
								kluster-deployments/stump/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								kluster-deployments/stump/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
| resources: | ||||
|   - application.yaml | ||||
		Reference in New Issue
	
	Block a user