Compare commits
	
		
			331 Commits
		
	
	
		
			077f404452
			...
			feature/af
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ab96719964 | |||
| 0215ecaf87 | |||
| 0eaa9fe774 | |||
| 192e2e869f | |||
| 0fd9936db5 | |||
| 1a9d0fc00c | |||
| a8dfca3c43 | |||
| 42e2bc35a5 | |||
| 7e2e5a56db | |||
| 01279dd023 | |||
| d6ce07a8a0 | |||
| 6eb617086a | |||
| 8137bf8f1b | |||
| 5f1dcaabba | |||
| 37bdb32f43 | |||
| ca15a6497c | |||
| 095d2d6392 | |||
| b2993c9395 | |||
| d7b0f658de | |||
| 391c71729b | |||
| bee5dd0c0b | |||
| 25ab46e69a | |||
| 123412e073 | |||
| 39818887fa | |||
| 0700609568 | |||
| 198b24132e | |||
| f6e45d089b | |||
| 23eab57208 | |||
| a94521f197 | |||
| 38f58d86c9 | |||
| 76d1c51157 | |||
| 7aaeeded89 | |||
| 9b93016f93 | |||
| aaf624bb42 | |||
| 8536d91288 | |||
| 3f62bee199 | |||
| f9f39818a1 | |||
| a73e6dc4db | |||
| 1df7abf987 | |||
| 0e1bb58c24 | |||
| fcd2d2eaa2 | |||
| 455790d3c6 | |||
| cdbcdba25d | |||
| 9dcb06678b | |||
| a4fe0a7fe4 | |||
| ece9faa60c | |||
| d4bea2994c | |||
| 0ec3bf9ea8 | |||
| 0c5760b22b | |||
| e144722d59 | |||
| bf6e7aa10c | |||
| ae53c44428 | |||
| 05d5b02347 | |||
| 337237a0f8 | |||
| ccc4b13c35 | |||
| a6a9c7c217 | |||
| bc0f29f028 | |||
| e2c9d73728 | |||
| 442c07f031 | |||
| 8fd9fa6f11 | |||
| 516d7e8e09 | |||
| acf9d34b10 | |||
| 3ffead0a14 | |||
| b6bdc09efc | |||
| 49b21cde52 | |||
| deed24aa01 | |||
| 9cfb98248d | |||
| 7bc4beefce | |||
| ce9ff68c26 | |||
| 8249e7ef01 | |||
| 14e65df483 | |||
| f6fef4278b | |||
| ef50df8386 | |||
| b6df7604ed | |||
| a03d869d0c | |||
| 1063349fbe | |||
| b88c212b57 | |||
| 38a522a8d6 | |||
| 046936f8f6 | |||
| 309cbc08f5 | |||
| 08b4c7eb5e | |||
| 58e632e0b8 | |||
| 30d02edebc | |||
| e30bfe64ae | |||
| 764a3eafb7 | |||
| eff07665de | |||
| 571aebe78d | |||
| 91a2ae5fe8 | |||
| f12c21ef18 | |||
| 2a96b288bf | |||
| 6f3a5aeab2 | |||
| b001bd3efc | |||
| b54794df35 | |||
| 51c8f7c092 | |||
| cfb1a87a5b | |||
| 10483431c6 | |||
| 3a9450da9d | |||
| 374e23ba1e | |||
| 66f703f5e1 | |||
| 4b05b53d72 | |||
| cfbc7fcd0d | |||
| ffed2aea50 | |||
| e674bf5b94 | |||
| 133af74ae0 | |||
| f648064304 | |||
| c7180f793a | |||
| 4fcdaad297 | |||
| f4b99ca037 | |||
| 588bf774f9 | |||
| e18c661dbd | |||
| 7d65ffea6a | |||
| e460b5324a | |||
| 6fe166e60c | |||
| 6ceb3816fb | |||
| 19b63263e6 | |||
| 20d46d89d2 | |||
| 7aee6c7cf0 | |||
| 443da20ff9 | |||
| 84a47b15b6 | |||
| 40259ee57e | |||
| 619368a2fd | |||
| 3288966b95 | |||
| d12d50b906 | |||
| c7f0221062 | |||
| 7819867091 | |||
| dd4c3d7a36 | |||
| e66905402e | |||
| 1bdb4522c3 | |||
| b5845479c2 | |||
| f2f31c4f4e | |||
| ded829500c | |||
| f762f5451b | |||
| 709f21998e | |||
| 47f091be83 | |||
| da8be916bf | |||
| ad67acb9e7 | |||
| 5a7b5a82d7 | |||
| 2c32db61ec | |||
| 141b80d15c | |||
| bf1d4badbe | |||
| be48049e22 | |||
| 3a629284f3 | |||
| 28c92e727f | |||
| 9a65c531f1 | |||
| 52a086df73 | |||
| b728e21a15 | |||
| da32c9c2ce | |||
| 846390600e | |||
| 18d7a6b4cb | |||
| 31c8e91502 | |||
| f0adf6b5db | |||
| b24ae9c698 | |||
| f3c108e362 | |||
| d2a8d92864 | |||
| 10816c4bd9 | |||
| aca0d4ba21 | |||
| 1ad56fd27e | |||
| 773a155627 | |||
| 61945b3507 | |||
| 4aa21cb0cd | |||
| d233ab96eb | |||
| df581e0110 | |||
| 8a114b9384 | |||
| ab6506f4f2 | |||
| 87242d293a | |||
| 11d46ec295 | |||
| 1b3702c4c8 | |||
| 9b68b4a915 | |||
| 18889d7391 | |||
| a38ad1d7e6 | |||
| edcb9158f5 | |||
| 71b1c252f3 | |||
| b30f44d2c6 | |||
| 85abf0fda6 | |||
| 5e21ceaad3 | |||
| 3f5c1a5a5c | |||
| 0195833fc3 | |||
| 64835e16de | |||
| 4e11a33855 | |||
| bad024861a | |||
| fe5d6a9014 | |||
| f2898d7e0b | |||
| f67f0c8889 | |||
| 0ccb17d8e1 | |||
| bb6d417937 | |||
| 4e2ebe2540 | |||
| c5310b0f00 | |||
| 46ef973f70 | |||
| c12d2dc7a6 | |||
| e28c6ffd52 | |||
| 7ba6860ea0 | |||
| 33c23ee42b | |||
| b2f8c8bced | |||
| d5277d3d6a | |||
| e3c90f5ede | |||
| eb5bda63db | |||
| a10a216f0e | |||
| 3cf9fd0b87 | |||
| ea1fa1637f | |||
| 96abe2a0f5 | |||
| 9623f33b59 | |||
| b065fc7e59 | |||
| 617ed5601c | |||
| 7e21ce4181 | |||
| eeaed091ab | |||
| ee52d2b777 | |||
| 384e9fbaec | |||
| 606aded35f | |||
| a3aa8888e9 | |||
| aaeb43e9c3 | |||
| a9b1d02a7e | |||
| 76b49270eb | |||
| 9b57715f92 | |||
| 85a96cf87b | |||
| 78b4be8fbd | |||
| 7bc10b57ce | |||
| de26a052e8 | |||
| 28ff769757 | |||
| 6a58ea337e | |||
| 2af279c161 | |||
| c26997ff83 | |||
| a354464f6e | |||
| 268a9f3a7a | |||
| 4ddeaf6c99 | |||
| b6f9a818af | |||
| f4670aa471 | |||
| 72a2914c24 | |||
| 1d5bc8a9c1 | |||
| 892c412fd9 | |||
| b6f7ead955 | |||
| f033ba16eb | |||
| f3ae2c424b | |||
| 36035ee84d | |||
| 50679b400a | |||
| a68fb5f0a7 | |||
| 5792367b8b | |||
| 3699b79f1a | |||
| e473abda12 | |||
| f67f586006 | |||
| 61e1276f02 | |||
| 111fd35fc3 | |||
| cc4148fb8a | |||
| f1e624985f | |||
| c8d7d3c854 | |||
| 4880503609 | |||
| f905ce1611 | |||
| ecfc65ecdd | |||
| 7da1d705a4 | |||
| 299cbea97e | |||
| b633d61920 | |||
| bfb8244e59 | |||
| 33c2df9fa3 | |||
| 3d84d6bed1 | |||
| cf6a931097 | |||
| 53c3865072 | |||
| d09a3509af | |||
| 8c0abc16c4 | |||
| 399969677f | |||
| 762756310a | |||
| ec964be7c3 | |||
| 0603da76b2 | |||
| a437c4228e | |||
| d5aab95186 | |||
| 3acb329730 | |||
| 73ce4e340f | |||
| 0d4b6f4605 | |||
| deeb35bbb6 | |||
| d4c658a28c | |||
| 1fcebe033b | |||
| 8fe51863f4 | |||
| c4eda4e75d | |||
| 9490015728 | |||
| a641df167f | |||
| 21d100fb62 | |||
| 26b06c553a | |||
| d51bfcf7db | |||
| 788c2436fc | |||
| c9e6d08dcd | |||
| 6b2e9f7165 | |||
| 8618468534 | |||
| 94d6c0f523 | |||
| 9aca8e9e0b | |||
| 72b7734535 | |||
| 28f33f8ff7 | |||
| 4cf26679c6 | |||
| 1cd4df8b8f | |||
| adeb333954 | |||
| e6bd080c6e | |||
| c9f883eaa6 | |||
| 014309bad6 | |||
| c61698fad9 | |||
| 8c21d58529 | |||
| 722b7c3fb6 | |||
| b852da0321 | |||
| 9c5affeff6 | |||
| b6c2f57acf | |||
| 2e4e033c36 | |||
| 285a7541ca | |||
| dbf58027d8 | |||
| 2f9019b6ba | |||
| 1743ffca74 | |||
| ea7527c143 | |||
| c27b289866 | |||
| 4cbd95fd78 | |||
| 5cfb2a02e3 | |||
| 82559e848a | |||
| 4600c79ed4 | |||
| e733e614d2 | |||
| d4e28c96d3 | |||
| 2f31cd6934 | |||
| 4fdd4a39f5 | |||
| 23f2e98194 | |||
| 8de0427f61 | |||
| 62abc6637f | |||
| 2949e894d6 | |||
| 40407ce7fb | |||
| 388518ddf3 | |||
| 731598465e | |||
| 3027df2fdd | |||
| 12ece4852d | |||
| a5f1a13b22 | |||
| 1686178650 | |||
| e317c77ed9 | |||
| 7b2302c8fd | |||
| 123d582327 | |||
| 86d32efc64 | |||
| d4bdf8b205 | |||
| 708e7a33e3 | |||
| 7f3e5deb27 | |||
| 57acf3b6a4 | |||
| a04a41b4b2 | 
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,2 +1,6 @@
 | 
				
			|||||||
 | 
					# Kubernetes secrets
 | 
				
			||||||
*.secret.yaml
 | 
					*.secret.yaml
 | 
				
			||||||
 | 
					main.key
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Helm Chart files
 | 
				
			||||||
charts/
 | 
					charts/
 | 
				
			||||||
							
								
								
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					[submodule "infrastructure/external-dns/octodns"]
 | 
				
			||||||
 | 
						path = infrastructure/external-dns/octodns
 | 
				
			||||||
 | 
						url = ssh://git@git.kluster.moll.re:2222/remoll/dns.git
 | 
				
			||||||
 | 
					[submodule "apps/monitoring/dashboards"]
 | 
				
			||||||
 | 
						path = apps/monitoring/dashboards
 | 
				
			||||||
 | 
						url = ssh://git@git.kluster.moll.re:2222/remoll/grafana-dashboards.git
 | 
				
			||||||
							
								
								
									
										38
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								README.md
									
									
									
									
									
								
							@@ -1,17 +1,47 @@
 | 
				
			|||||||
# Kluster setup and IaaC using argoCD
 | 
					# Kluster setup and IaaC using argoCD
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
### Initial setup
 | 
					### Initial setup
 | 
				
			||||||
On a running (and sealed-secrets installed) k3s instance run:
 | 
					#### Requirements:
 | 
				
			||||||
 | 
					- A running k3s instance
 | 
				
			||||||
 | 
					- `sealedsecrets` deployed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### Installing argo and the app-of-apps
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
kubectl apply -k infrastructure/argocd
 | 
					kubectl apply -k infrastructure/argocd
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
This will install argocd and CRDs in a dedicated namespace along with the app-of-apps configured under `kluster-deployments/`.
 | 
					This will install argocd and its CRDs in a dedicated namespace. The app-of-apps is configured under `kluster-deployments/` and deployed as well. This will bootstrap all other apps, as described in `./kluster-deployments`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The app-of-apps will bootstrap a fully featured cluster with the following components
 | 
					The app-of-apps will bootstrap a fully featured cluster with the following components
 | 
				
			||||||
- postgres instance with backups
 | 
					- postgres instance with backups
 | 
				
			||||||
- backup of all nfs PVCs using restic
 | 
					- backup of all nfs PVCs using restic
 | 
				
			||||||
- traefik (along with metallb as a publicly accessible reverse proxy)
 | 
					- traefik (along with metallb as a publicly accessible reverse proxy)
 | 
				
			||||||
- an nfs-provisioner creating PVCs on-demand
 | 
					- an nfs-provisioner creating PVCs on-demand
 | 
				
			||||||
- a range of selfhosted apps
 | 
					- gitea
 | 
				
			||||||
 | 
					- a range of selfhosted apps:
 | 
				
			||||||
 | 
					    - nextcloud
 | 
				
			||||||
 | 
					    - jellyfin
 | 
				
			||||||
 | 
					    - adguard-home
 | 
				
			||||||
 | 
					    - homarr
 | 
				
			||||||
 | 
					    - homeassistant
 | 
				
			||||||
 | 
					    - immich
 | 
				
			||||||
 | 
					    - ...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### Recap
 | 
				
			||||||
 | 
					- install sealedsecrets see [README](./infrastructure/sealedsecrets/README.md)
 | 
				
			||||||
 | 
					    ```bash
 | 
				
			||||||
 | 
					    kubectl apply -k infrastructure/sealedsecrets
 | 
				
			||||||
 | 
					    kubectl apply -f infrastructure/sealedsecrets/main.key
 | 
				
			||||||
 | 
					    kubectl delete pod -n kube-system -l name=sealed-secrets-controller
 | 
				
			||||||
 | 
					    ```
 | 
				
			||||||
 | 
					- install argocd
 | 
				
			||||||
 | 
					    ```bash
 | 
				
			||||||
 | 
					    kubectl apply -k infrastructure/argocd
 | 
				
			||||||
 | 
					    ```
 | 
				
			||||||
 | 
					- wait...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Adding an application
 | 
				
			||||||
 | 
					todo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRouteTCP
 | 
					kind: IngressRouteTCP
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: adguard-tls-ingress
 | 
					  name: adguard-tls-ingress
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,7 @@ resources:
 | 
				
			|||||||
images:
 | 
					images:
 | 
				
			||||||
  - name: adguard/adguardhome
 | 
					  - name: adguard/adguardhome
 | 
				
			||||||
    newName: adguard/adguardhome
 | 
					    newName: adguard/adguardhome
 | 
				
			||||||
    newTag: v0.107.41
 | 
					    newTag: v0.107.48
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace: adguard
 | 
					namespace: adguard
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,6 +24,8 @@ metadata:
 | 
				
			|||||||
spec:
 | 
					spec:
 | 
				
			||||||
  allocateLoadBalancerNodePorts: true
 | 
					  allocateLoadBalancerNodePorts: true
 | 
				
			||||||
  loadBalancerIP: 192.168.3.2
 | 
					  loadBalancerIP: 192.168.3.2
 | 
				
			||||||
 | 
					  externalTrafficPolicy: Local
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ports:
 | 
					  ports:
 | 
				
			||||||
  - name: dns-tcp
 | 
					  - name: dns-tcp
 | 
				
			||||||
    nodePort: 31306
 | 
					    nodePort: 31306
 | 
				
			||||||
@@ -46,6 +48,7 @@ metadata:
 | 
				
			|||||||
spec:
 | 
					spec:
 | 
				
			||||||
  allocateLoadBalancerNodePorts: true
 | 
					  allocateLoadBalancerNodePorts: true
 | 
				
			||||||
  loadBalancerIP: 192.168.3.2
 | 
					  loadBalancerIP: 192.168.3.2
 | 
				
			||||||
 | 
					  externalTrafficPolicy: Local
 | 
				
			||||||
  ports:
 | 
					  ports:
 | 
				
			||||||
  - name: dns-udp
 | 
					  - name: dns-udp
 | 
				
			||||||
    nodePort: 30547
 | 
					    nodePort: 30547
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										58
									
								
								apps/affine/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								apps/affine/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,58 @@
 | 
				
			|||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: affine
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: affine
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: affine
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					      - name: affine
 | 
				
			||||||
 | 
					        image: affine
 | 
				
			||||||
 | 
					        resources:
 | 
				
			||||||
 | 
					          limits:
 | 
				
			||||||
 | 
					            memory: "512Mi"
 | 
				
			||||||
 | 
					            cpu: "1"
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					        - name: AFFINE_SERVER_HOST
 | 
				
			||||||
 | 
					          value: "affine.kluster.moll.re"
 | 
				
			||||||
 | 
					        - name: AFFINE_SERVER_PORT
 | 
				
			||||||
 | 
					          value: "443"
 | 
				
			||||||
 | 
					        - name: AFFINE_SERVER_HTTPS
 | 
				
			||||||
 | 
					          value: "true"
 | 
				
			||||||
 | 
					        - name: AFFINE_CONFIG_PATH
 | 
				
			||||||
 | 
					          value: "/root/.affine/config"
 | 
				
			||||||
 | 
					        - name: AFFINE_ADMIN_EMAIL
 | 
				
			||||||
 | 
					          value: "me@moll.re"
 | 
				
			||||||
 | 
					        - name: AFFINE_ADMIN_PASSWORD
 | 
				
			||||||
 | 
					          value: "password"
 | 
				
			||||||
 | 
					        - name: TELEMETRY_ENABLE
 | 
				
			||||||
 | 
					          value: "false"
 | 
				
			||||||
 | 
					        - name: DATABASE_URL
 | 
				
			||||||
 | 
					          valueFrom:
 | 
				
			||||||
 | 
					            secretKeyRef:
 | 
				
			||||||
 | 
					              name: postgres-credentials
 | 
				
			||||||
 | 
					              key: url
 | 
				
			||||||
 | 
					        - name: NODE_OPTIONS
 | 
				
			||||||
 | 
					          value: "--import=./scripts/register.js"
 | 
				
			||||||
 | 
					        - name: NODE_ENV
 | 
				
			||||||
 | 
					          value: "production"
 | 
				
			||||||
 | 
					        ports:
 | 
				
			||||||
 | 
					        - containerPort: 3010
 | 
				
			||||||
 | 
					        volumeMounts:
 | 
				
			||||||
 | 
					        - name: affine-data
 | 
				
			||||||
 | 
					          mountPath: /root/.affine/storage
 | 
				
			||||||
 | 
					        - name: affine-config
 | 
				
			||||||
 | 
					          mountPath: /root/.affine/config
 | 
				
			||||||
 | 
					      volumes:
 | 
				
			||||||
 | 
					      - name: affine-data
 | 
				
			||||||
 | 
					        persistentVolumeClaim:
 | 
				
			||||||
 | 
					          claimName: affine-data
 | 
				
			||||||
 | 
					      - name: affine-config
 | 
				
			||||||
 | 
					        persistentVolumeClaim:
 | 
				
			||||||
 | 
					          claimName: affine-config
 | 
				
			||||||
							
								
								
									
										15
									
								
								apps/affine/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								apps/affine/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
 | 
					kind: IngressRoute
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: affine-ingress
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  entryPoints:
 | 
				
			||||||
 | 
					    - websecure
 | 
				
			||||||
 | 
					  routes:
 | 
				
			||||||
 | 
					    - match: Host(`affine.kluster.moll.re`)
 | 
				
			||||||
 | 
					      kind: Rule
 | 
				
			||||||
 | 
					      services:
 | 
				
			||||||
 | 
					        - name: affine-web
 | 
				
			||||||
 | 
					          port: 3010
 | 
				
			||||||
 | 
					  tls:
 | 
				
			||||||
 | 
					    certResolver: default-tls
 | 
				
			||||||
							
								
								
									
										20
									
								
								apps/affine/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								apps/affine/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: affine
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - service.yaml
 | 
				
			||||||
 | 
					  - ingress.yaml
 | 
				
			||||||
 | 
					  - postgres.yaml
 | 
				
			||||||
 | 
					  - pvc.yaml
 | 
				
			||||||
 | 
					  - postgres-credentials.secret.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					images:
 | 
				
			||||||
 | 
					  - name: affine
 | 
				
			||||||
 | 
					    newName: ghcr.io/toeverything/affine-graphql
 | 
				
			||||||
 | 
					    newTag: stable
 | 
				
			||||||
@@ -1,5 +1,4 @@
 | 
				
			|||||||
# namespace.yaml
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: Namespace
 | 
					kind: Namespace
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: nfs-provisioner
 | 
					  name: placeholder
 | 
				
			||||||
							
								
								
									
										20
									
								
								apps/affine/postgres.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								apps/affine/postgres.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					apiVersion: postgresql.cnpg.io/v1
 | 
				
			||||||
 | 
					kind: Cluster
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: affine-postgres
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  instances: 1
 | 
				
			||||||
 | 
					  bootstrap:
 | 
				
			||||||
 | 
					    initdb:
 | 
				
			||||||
 | 
					      owner: affine
 | 
				
			||||||
 | 
					      database: affine
 | 
				
			||||||
 | 
					      secret:
 | 
				
			||||||
 | 
					        name: postgres-credentials
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  storage:
 | 
				
			||||||
 | 
					    size: 1Gi
 | 
				
			||||||
 | 
					    pvcTemplate:
 | 
				
			||||||
 | 
					      storageClassName: "nfs-client"
 | 
				
			||||||
 | 
					      resources:
 | 
				
			||||||
 | 
					        requests:
 | 
				
			||||||
 | 
					          storage: "1Gi"
 | 
				
			||||||
							
								
								
									
										23
									
								
								apps/affine/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								apps/affine/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: affine-data
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
 | 
					  resources:
 | 
				
			||||||
 | 
					    requests:
 | 
				
			||||||
 | 
					      storage: 15Gi
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: affine-config
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
 | 
					  resources:
 | 
				
			||||||
 | 
					    requests:
 | 
				
			||||||
 | 
					      storage: 1Gi
 | 
				
			||||||
							
								
								
									
										10
									
								
								apps/affine/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/affine/service.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: affine-web
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: affine
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 3010
 | 
				
			||||||
 | 
					    targetPort: 3010
 | 
				
			||||||
							
								
								
									
										48
									
								
								apps/files/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								apps/files/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,48 @@
 | 
				
			|||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: StatefulSet
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: ocis-statefulset
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: ocis
 | 
				
			||||||
 | 
					  serviceName: ocis-web
 | 
				
			||||||
 | 
					  replicas: 1
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: ocis
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					      - name: ocis
 | 
				
			||||||
 | 
					        image: ocis
 | 
				
			||||||
 | 
					        resources:
 | 
				
			||||||
 | 
					          limits:
 | 
				
			||||||
 | 
					            memory: "1Gi"
 | 
				
			||||||
 | 
					            cpu: "1000m"
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					        - name: OCIS_INSECURE
 | 
				
			||||||
 | 
					          value: "true"
 | 
				
			||||||
 | 
					        - name: OCIS_URL
 | 
				
			||||||
 | 
					          value: "https://ocis.kluster.moll.re"
 | 
				
			||||||
 | 
					        - name: OCIS_LOG_LEVEL
 | 
				
			||||||
 | 
					          value: "debug"
 | 
				
			||||||
 | 
					        ports:
 | 
				
			||||||
 | 
					        - containerPort: 9200
 | 
				
			||||||
 | 
					        volumeMounts:
 | 
				
			||||||
 | 
					        - name: config
 | 
				
			||||||
 | 
					          mountPath: /etc/ocis
 | 
				
			||||||
 | 
					        # - name: ocis-config-file
 | 
				
			||||||
 | 
					        #   mountPath: /etc/ocis/config.yaml
 | 
				
			||||||
 | 
					        - name: data
 | 
				
			||||||
 | 
					          mountPath: /var/lib/ocis
 | 
				
			||||||
 | 
					      volumes:
 | 
				
			||||||
 | 
					      # - name: ocis-config
 | 
				
			||||||
 | 
					      #   persistentVolumeClaim:
 | 
				
			||||||
 | 
					      #     claimName: ocis-config
 | 
				
			||||||
 | 
					      - name: config
 | 
				
			||||||
 | 
					        secret:
 | 
				
			||||||
 | 
					          secretName: ocis-config
 | 
				
			||||||
 | 
					      - name: data
 | 
				
			||||||
 | 
					        persistentVolumeClaim:
 | 
				
			||||||
 | 
					          claimName: ocis
 | 
				
			||||||
							
								
								
									
										18
									
								
								apps/files/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								apps/files/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
 | 
					kind: IngressRoute
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: ocis-ingressroute
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  entryPoints:
 | 
				
			||||||
 | 
					    - websecure
 | 
				
			||||||
 | 
					  routes:
 | 
				
			||||||
 | 
					  - match: Host(`ocis.kluster.moll.re`)
 | 
				
			||||||
 | 
					    kind: Rule
 | 
				
			||||||
 | 
					    services:
 | 
				
			||||||
 | 
					    - name: ocis-web
 | 
				
			||||||
 | 
					      port: 9200
 | 
				
			||||||
 | 
					      scheme: https
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  tls:
 | 
				
			||||||
 | 
					    certResolver: default-tls 
 | 
				
			||||||
							
								
								
									
										16
									
								
								apps/files/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/files/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					resources: 
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - ingress.yaml
 | 
				
			||||||
 | 
					  - service.yaml
 | 
				
			||||||
 | 
					  - pvc.yaml
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - ocis-config.sealedsecret.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: files
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					images:
 | 
				
			||||||
 | 
					  - name: ocis
 | 
				
			||||||
 | 
					    newName: owncloud/ocis
 | 
				
			||||||
 | 
					    newTag: "5.0.3"
 | 
				
			||||||
							
								
								
									
										4
									
								
								apps/files/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/files/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: placeholder
 | 
				
			||||||
							
								
								
									
										17
									
								
								apps/files/ocis-config.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/files/ocis-config.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -1,13 +1,11 @@
 | 
				
			|||||||
```
 | 
					 | 
				
			||||||
kind: PersistentVolumeClaim
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: test-claim
 | 
					  name: ocis
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  storageClassName: nfs-client
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
    - ReadWriteMany
 | 
					    - ReadWriteOnce
 | 
				
			||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: 1Mi
 | 
					      storage: 150Gi
 | 
				
			||||||
```
 | 
					 | 
				
			||||||
							
								
								
									
										10
									
								
								apps/files/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/files/service.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: ocis-web
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: ocis
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 9200
 | 
				
			||||||
 | 
					    targetPort: 9200
 | 
				
			||||||
@@ -1,12 +1,10 @@
 | 
				
			|||||||
apiVersion: apps/v1
 | 
					apiVersion: apps/v1
 | 
				
			||||||
kind: Deployment
 | 
					kind: Deployment
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  name: actualbudget
 | 
					  name: actualbudget
 | 
				
			||||||
  labels:
 | 
					  labels:
 | 
				
			||||||
    app: actualbudget
 | 
					    app: actualbudget
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
# deployment running a single container
 | 
					 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    matchLabels:
 | 
					    matchLabels:
 | 
				
			||||||
      app: actualbudget
 | 
					      app: actualbudget
 | 
				
			||||||
@@ -18,83 +16,19 @@ spec:
 | 
				
			|||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
        - name: actualbudget
 | 
					        - name: actualbudget
 | 
				
			||||||
          image: actualbudget/actual-server:latest
 | 
					          image: actualbudget
 | 
				
			||||||
          imagePullPolicy: Always
 | 
					          imagePullPolicy: Always
 | 
				
			||||||
          env:
 | 
					          env:
 | 
				
			||||||
            - name: TZ
 | 
					            - name: TZ
 | 
				
			||||||
              value: Europe/Berlin
 | 
					              value: Europe/Berlin
 | 
				
			||||||
          volumeMounts:
 | 
					          volumeMounts:
 | 
				
			||||||
            - name: actualbudget-data-nfs
 | 
					            - name: data
 | 
				
			||||||
              mountPath: /data
 | 
					              mountPath: /data
 | 
				
			||||||
          ports:
 | 
					          ports:
 | 
				
			||||||
            - containerPort: 5006
 | 
					            - containerPort: 5006
 | 
				
			||||||
              name: http
 | 
					              name: http
 | 
				
			||||||
              protocol: TCP
 | 
					              protocol: TCP
 | 
				
			||||||
      volumes:
 | 
					      volumes:
 | 
				
			||||||
        - name: actualbudget-data-nfs
 | 
					        - name: data
 | 
				
			||||||
          persistentVolumeClaim:
 | 
					          persistentVolumeClaim:
 | 
				
			||||||
            claimName: actualbudget-data-nfs
 | 
					            claimName: data
 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolume
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  name: "actualbudget-data-nfs"
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  # storageClassName: fast
 | 
					 | 
				
			||||||
  capacity:
 | 
					 | 
				
			||||||
    storage: "5Gi"
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadWriteOnce
 | 
					 | 
				
			||||||
  nfs:
 | 
					 | 
				
			||||||
    path: /export/kluster/actualbudget
 | 
					 | 
				
			||||||
    server: 192.168.1.157
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolumeClaim
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  name: "actualbudget-data-nfs"
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  storageClassName: "fast"
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadWriteOnce
 | 
					 | 
				
			||||||
  resources:
 | 
					 | 
				
			||||||
    requests:
 | 
					 | 
				
			||||||
      storage: "5Gi"
 | 
					 | 
				
			||||||
  # selector:
 | 
					 | 
				
			||||||
  #   matchLabels:
 | 
					 | 
				
			||||||
  #     directory: "journal-data"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: Service
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  name: actualbudget
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    app: actualbudget
 | 
					 | 
				
			||||||
  ports:
 | 
					 | 
				
			||||||
    - protocol: TCP
 | 
					 | 
				
			||||||
      port: 5006
 | 
					 | 
				
			||||||
      targetPort: 5006
 | 
					 | 
				
			||||||
  type: ClusterIP
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					 | 
				
			||||||
kind: IngressRoute
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  name: actualbudget
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  entryPoints:
 | 
					 | 
				
			||||||
    - websecure
 | 
					 | 
				
			||||||
  routes:
 | 
					 | 
				
			||||||
  - match: Host(`actualbudget.kluster.moll.re`)
 | 
					 | 
				
			||||||
    kind: Rule
 | 
					 | 
				
			||||||
    services:
 | 
					 | 
				
			||||||
    - name: actualbudget
 | 
					 | 
				
			||||||
      port: 5006
 | 
					 | 
				
			||||||
  tls:
 | 
					 | 
				
			||||||
    certResolver: default-tls
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								apps/finance/actualbudget.ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								apps/finance/actualbudget.ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
 | 
					kind: IngressRoute
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: actualbudget
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  entryPoints:
 | 
				
			||||||
 | 
					    - websecure
 | 
				
			||||||
 | 
					  routes:
 | 
				
			||||||
 | 
					  - match: Host(`actualbudget.kluster.moll.re`)
 | 
				
			||||||
 | 
					    kind: Rule
 | 
				
			||||||
 | 
					    services:
 | 
				
			||||||
 | 
					    - name: actualbudget
 | 
				
			||||||
 | 
					      port: 5006
 | 
				
			||||||
 | 
					  tls:
 | 
				
			||||||
 | 
					    certResolver: default-tls
 | 
				
			||||||
							
								
								
									
										11
									
								
								apps/finance/actualbudget.pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								apps/finance/actualbudget.pvc.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: "data"
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
 | 
					  resources:
 | 
				
			||||||
 | 
					    requests:
 | 
				
			||||||
 | 
					      storage: "5Gi"
 | 
				
			||||||
							
								
								
									
										12
									
								
								apps/finance/actualbudget.service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								apps/finance/actualbudget.service.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: actualbudget
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: actualbudget
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					    - protocol: TCP
 | 
				
			||||||
 | 
					      port: 5006
 | 
				
			||||||
 | 
					      targetPort: 5006
 | 
				
			||||||
 | 
					  type: ClusterIP
 | 
				
			||||||
@@ -1,66 +0,0 @@
 | 
				
			|||||||
apiVersion: apps/v1
 | 
					 | 
				
			||||||
kind: Deployment
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  labels:
 | 
					 | 
				
			||||||
    app: firefly-importer
 | 
					 | 
				
			||||||
  name: firefly-importer
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    matchLabels:
 | 
					 | 
				
			||||||
      app: firefly-importer
 | 
					 | 
				
			||||||
  template:
 | 
					 | 
				
			||||||
    metadata:
 | 
					 | 
				
			||||||
      labels:
 | 
					 | 
				
			||||||
        app: firefly-importer
 | 
					 | 
				
			||||||
    spec:
 | 
					 | 
				
			||||||
      containers:
 | 
					 | 
				
			||||||
      - image: fireflyiii/data-importer:latest
 | 
					 | 
				
			||||||
        imagePullPolicy: Always
 | 
					 | 
				
			||||||
        name: firefly-importer
 | 
					 | 
				
			||||||
        resources: {}
 | 
					 | 
				
			||||||
        ports:
 | 
					 | 
				
			||||||
        - containerPort: 8080
 | 
					 | 
				
			||||||
        env:
 | 
					 | 
				
			||||||
          - name: FIREFLY_III_ACCESS_TOKEN
 | 
					 | 
				
			||||||
            value: redacted
 | 
					 | 
				
			||||||
          - name: FIREFLY_III_URL
 | 
					 | 
				
			||||||
            value: firefly-http:8080
 | 
					 | 
				
			||||||
          # - name: APP_URL
 | 
					 | 
				
			||||||
          #   value: https://finance.kluster.moll.re
 | 
					 | 
				
			||||||
          - name: TRUSTED_PROXIES
 | 
					 | 
				
			||||||
            value: "**"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: Service
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: firefly-importer-http
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  labels:
 | 
					 | 
				
			||||||
    app: firefly-importer-http
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  type: ClusterIP
 | 
					 | 
				
			||||||
  ports:
 | 
					 | 
				
			||||||
  - port: 8080
 | 
					 | 
				
			||||||
    # name: http
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    app: firefly-importer
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					 | 
				
			||||||
kind: IngressRoute
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: firefly-importer-ingress
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  entryPoints:
 | 
					 | 
				
			||||||
    - websecure
 | 
					 | 
				
			||||||
  routes:
 | 
					 | 
				
			||||||
    - match: Host(`importer.finance.kluster.moll.re`)
 | 
					 | 
				
			||||||
      kind: Rule
 | 
					 | 
				
			||||||
      services:
 | 
					 | 
				
			||||||
        - name: firefly-importer-http
 | 
					 | 
				
			||||||
          port: 8080
 | 
					 | 
				
			||||||
  tls:
 | 
					 | 
				
			||||||
    certResolver: default-tls
 | 
					 | 
				
			||||||
@@ -1,79 +0,0 @@
 | 
				
			|||||||
apiVersion: apps/v1
 | 
					 | 
				
			||||||
kind: Deployment
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  labels:
 | 
					 | 
				
			||||||
    app: firefly
 | 
					 | 
				
			||||||
  name: firefly
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    matchLabels:
 | 
					 | 
				
			||||||
      app: firefly
 | 
					 | 
				
			||||||
  template:
 | 
					 | 
				
			||||||
    metadata:
 | 
					 | 
				
			||||||
      labels:
 | 
					 | 
				
			||||||
        app: firefly
 | 
					 | 
				
			||||||
    spec:
 | 
					 | 
				
			||||||
      containers:
 | 
					 | 
				
			||||||
      - image: fireflyiii/core:latest
 | 
					 | 
				
			||||||
        imagePullPolicy: Always
 | 
					 | 
				
			||||||
        name: firefly
 | 
					 | 
				
			||||||
        resources: {}
 | 
					 | 
				
			||||||
        ports:
 | 
					 | 
				
			||||||
        - containerPort: 8080
 | 
					 | 
				
			||||||
        env:
 | 
					 | 
				
			||||||
          - name: APP_ENV
 | 
					 | 
				
			||||||
            value: "local"
 | 
					 | 
				
			||||||
          - name: APP_KEY
 | 
					 | 
				
			||||||
            value: iKejRAlgwx2Y/fxdosXjABbNxNzEuJdl
 | 
					 | 
				
			||||||
          - name: DB_CONNECTION
 | 
					 | 
				
			||||||
            value: sqlite
 | 
					 | 
				
			||||||
          - name: APP_URL
 | 
					 | 
				
			||||||
            value: https://finance.kluster.moll.re
 | 
					 | 
				
			||||||
          - name: TRUSTED_PROXIES
 | 
					 | 
				
			||||||
            value: "**"
 | 
					 | 
				
			||||||
        volumeMounts:
 | 
					 | 
				
			||||||
        - mountPath: /var/www/html/storage/database
 | 
					 | 
				
			||||||
          name: firefly-database
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      volumes:
 | 
					 | 
				
			||||||
      - name: firefly-database
 | 
					 | 
				
			||||||
        persistentVolumeClaim:
 | 
					 | 
				
			||||||
          claimName: firefly-database-nfs
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: Service
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: firefly-http
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  labels:
 | 
					 | 
				
			||||||
    app: firefly-http
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  type: ClusterIP
 | 
					 | 
				
			||||||
  ports:
 | 
					 | 
				
			||||||
  - port: 8080
 | 
					 | 
				
			||||||
    # name: http
 | 
					 | 
				
			||||||
  selector:
 | 
					 | 
				
			||||||
    app: firefly
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					 | 
				
			||||||
kind: IngressRoute
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: firefly-ingress
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  entryPoints:
 | 
					 | 
				
			||||||
    - websecure
 | 
					 | 
				
			||||||
  routes:
 | 
					 | 
				
			||||||
    - match: Host(`finance.kluster.moll.re`)
 | 
					 | 
				
			||||||
      kind: Rule
 | 
					 | 
				
			||||||
      services:
 | 
					 | 
				
			||||||
        - name: firefly-http
 | 
					 | 
				
			||||||
          port: 8080
 | 
					 | 
				
			||||||
  tls:
 | 
					 | 
				
			||||||
    certResolver: default-tls
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@@ -1,34 +0,0 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolume
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  name: firefly-database-nfs
 | 
					 | 
				
			||||||
  labels:
 | 
					 | 
				
			||||||
    directory: firefly
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  # storageClassName: fast
 | 
					 | 
				
			||||||
  # volumeMode: Filesystem
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadOnlyMany
 | 
					 | 
				
			||||||
  capacity:
 | 
					 | 
				
			||||||
    storage: "1G"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  nfs:
 | 
					 | 
				
			||||||
    path: /firefly # inside nfs part.
 | 
					 | 
				
			||||||
    server: 10.43.239.43 # assigned to nfs-server service. Won't change as long as service is not redeployed
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolumeClaim
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: finance
 | 
					 | 
				
			||||||
  name: firefly-database-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  resources:
 | 
					 | 
				
			||||||
    requests:
 | 
					 | 
				
			||||||
      storage: "1G"
 | 
					 | 
				
			||||||
  # storageClassName: fast
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadOnlyMany
 | 
					 | 
				
			||||||
  volumeName: firefly-database-nfs
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
							
								
								
									
										16
									
								
								apps/finance/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/finance/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: finance
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - actualbudget.pvc.yaml
 | 
				
			||||||
 | 
					  - actualbudget.deployment.yaml
 | 
				
			||||||
 | 
					  - actualbudget.service.yaml
 | 
				
			||||||
 | 
					  - actualbudget.ingress.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					images:
 | 
				
			||||||
 | 
					  - name: actualbudget
 | 
				
			||||||
 | 
					    newName: actualbudget/actual-server
 | 
				
			||||||
 | 
					    newTag: 24.5.0
 | 
				
			||||||
							
								
								
									
										4
									
								
								apps/finance/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/finance/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: placeholder
 | 
				
			||||||
@@ -1,4 +1,3 @@
 | 
				
			|||||||
 | 
					 | 
				
			||||||
apiVersion: apps/v1
 | 
					apiVersion: apps/v1
 | 
				
			||||||
kind: Deployment
 | 
					kind: Deployment
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
@@ -22,7 +21,7 @@ spec:
 | 
				
			|||||||
          - name: TZ
 | 
					          - name: TZ
 | 
				
			||||||
            value: Europe/Berlin
 | 
					            value: Europe/Berlin
 | 
				
			||||||
          volumeMounts:
 | 
					          volumeMounts:
 | 
				
			||||||
            - name: config
 | 
					            - name: config-dir
 | 
				
			||||||
              mountPath: /config
 | 
					              mountPath: /config
 | 
				
			||||||
          resources:
 | 
					          resources:
 | 
				
			||||||
            requests:
 | 
					            requests:
 | 
				
			||||||
@@ -32,6 +31,7 @@ spec:
 | 
				
			|||||||
              cpu: "2"
 | 
					              cpu: "2"
 | 
				
			||||||
              memory: "1Gi"
 | 
					              memory: "1Gi"
 | 
				
			||||||
      volumes:
 | 
					      volumes:
 | 
				
			||||||
        - name: config
 | 
					        - name: config-dir
 | 
				
			||||||
          persistentVolumeClaim:
 | 
					          persistentVolumeClaim:
 | 
				
			||||||
            claimName: homeassistant-nfs
 | 
					            claimName: config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: homeassistant-ingress
 | 
					  name: homeassistant-ingress
 | 
				
			||||||
@@ -6,7 +6,7 @@ spec:
 | 
				
			|||||||
  entryPoints:
 | 
					  entryPoints:
 | 
				
			||||||
    - websecure
 | 
					    - websecure
 | 
				
			||||||
  routes:
 | 
					  routes:
 | 
				
			||||||
    - match: Host(`home.kluster.moll.re`)
 | 
					    - match: Host(`home.kluster.moll.re`) && !Path(`/api/prometheus`)
 | 
				
			||||||
      middlewares:
 | 
					      middlewares:
 | 
				
			||||||
        - name: homeassistant-websocket
 | 
					        - name: homeassistant-websocket
 | 
				
			||||||
      kind: Rule
 | 
					      kind: Rule
 | 
				
			||||||
@@ -15,9 +15,8 @@ spec:
 | 
				
			|||||||
          port: 8123
 | 
					          port: 8123
 | 
				
			||||||
  tls:
 | 
					  tls:
 | 
				
			||||||
    certResolver: default-tls
 | 
					    certResolver: default-tls
 | 
				
			||||||
 | 
					 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: Middleware
 | 
					kind: Middleware
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: homeassistant-websocket
 | 
					  name: homeassistant-websocket
 | 
				
			||||||
@@ -27,6 +26,3 @@ spec:
 | 
				
			|||||||
      X-Forwarded-Proto: "https"
 | 
					      X-Forwarded-Proto: "https"
 | 
				
			||||||
      # enable websockets
 | 
					      # enable websockets
 | 
				
			||||||
      Upgrade: "websocket"
 | 
					      Upgrade: "websocket"
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,8 +9,10 @@ resources:
 | 
				
			|||||||
  - pvc.yaml
 | 
					  - pvc.yaml
 | 
				
			||||||
  - service.yaml
 | 
					  - service.yaml
 | 
				
			||||||
  - deployment.yaml
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - servicemonitor.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
images:
 | 
					images:
 | 
				
			||||||
  - name: homeassistant/home-assistant
 | 
					  - name: homeassistant/home-assistant
 | 
				
			||||||
    newName: homeassistant/home-assistant
 | 
					    newName: homeassistant/home-assistant
 | 
				
			||||||
    newTag: "2023.11"
 | 
					    newTag: "2024.5"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,28 +1,11 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolume
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  name: homeassistant-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  # storageClassName: slow
 | 
					 | 
				
			||||||
  capacity:
 | 
					 | 
				
			||||||
    storage: "1Gi"
 | 
					 | 
				
			||||||
  # volumeMode: Filesystem
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadWriteOnce
 | 
					 | 
				
			||||||
  nfs:
 | 
					 | 
				
			||||||
    path: /kluster/homeassistant
 | 
					 | 
				
			||||||
    server: 192.168.1.157
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: PersistentVolumeClaim
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: homeassistant-nfs
 | 
					  name: config
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  storageClassName: ""
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
    - ReadWriteOnce
 | 
					    - ReadWriteOnce
 | 
				
			||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: "1Gi"
 | 
					      storage: "1Gi"
 | 
				
			||||||
  volumeName: homeassistant-nfs
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,3 +8,4 @@ spec:
 | 
				
			|||||||
  ports:
 | 
					  ports:
 | 
				
			||||||
  - port: 8123
 | 
					  - port: 8123
 | 
				
			||||||
    targetPort: 8123
 | 
					    targetPort: 8123
 | 
				
			||||||
 | 
					    name: http
 | 
				
			||||||
							
								
								
									
										13
									
								
								apps/homeassistant/servicemonitor.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								apps/homeassistant/servicemonitor.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					apiVersion: monitoring.coreos.com/v1
 | 
				
			||||||
 | 
					kind: ServiceMonitor
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: homeassistant-servicemonitor
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app: homeassistant
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: homeassistant
 | 
				
			||||||
 | 
					  endpoints:
 | 
				
			||||||
 | 
					    - port: http
 | 
				
			||||||
 | 
					      path: /api/prometheus
 | 
				
			||||||
							
								
								
									
										98
									
								
								apps/homepage/configmap.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										98
									
								
								apps/homepage/configmap.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,98 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ConfigMap
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: config
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app.kubernetes.io/name: homepage
 | 
				
			||||||
 | 
					data:
 | 
				
			||||||
 | 
					  kubernetes.yaml: "" #|
 | 
				
			||||||
 | 
					  #  mode: cluster
 | 
				
			||||||
 | 
					  settings.yaml: |
 | 
				
			||||||
 | 
					    title: "Homepage"
 | 
				
			||||||
 | 
					    background: https://images.unsplash.com/photo-1547327132-5d20850c62b5?q=80&w=3870&auto=format&fit=crop
 | 
				
			||||||
 | 
					    cardBlur: sm
 | 
				
			||||||
 | 
					  #settings.yaml: |
 | 
				
			||||||
 | 
					  #  providers:
 | 
				
			||||||
 | 
					  #    longhorn:
 | 
				
			||||||
 | 
					  #      url: https://longhorn.my.network
 | 
				
			||||||
 | 
					  custom.css: ""
 | 
				
			||||||
 | 
					  custom.js: ""
 | 
				
			||||||
 | 
					  bookmarks.yaml: |
 | 
				
			||||||
 | 
					    - Developer:
 | 
				
			||||||
 | 
					        - Github:
 | 
				
			||||||
 | 
					            - abbr: GH
 | 
				
			||||||
 | 
					              href: https://github.com/moll-re
 | 
				
			||||||
 | 
					  services.yaml: |
 | 
				
			||||||
 | 
					    - Media:
 | 
				
			||||||
 | 
					        - Jellyfin backend:
 | 
				
			||||||
 | 
					            href: https://media-backend.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: media-backend.kluster.moll.re
 | 
				
			||||||
 | 
					        - Jellyfin vue:
 | 
				
			||||||
 | 
					            href: https://media.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: media.kluster.moll.re
 | 
				
			||||||
 | 
					        - Immich:
 | 
				
			||||||
 | 
					            href: https://immich.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: immich.kluster.moll.re
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - Productivity:
 | 
				
			||||||
 | 
					        - OwnCloud:
 | 
				
			||||||
 | 
					            href: https://ocis.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: ocis.kluster.moll.re
 | 
				
			||||||
 | 
					        - ToDo:
 | 
				
			||||||
 | 
					            href: https://todos.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: todos.kluster.moll.re
 | 
				
			||||||
 | 
					        - Finance:
 | 
				
			||||||
 | 
					            href: https://finance.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: finance.kluster.moll.re
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - Home:
 | 
				
			||||||
 | 
					        - Home Assistant:
 | 
				
			||||||
 | 
					            href: https://home.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: home.kluster.moll.re
 | 
				
			||||||
 | 
					        - Grafana:
 | 
				
			||||||
 | 
					            href: https://grafana.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: grafana.kluster.moll.re
 | 
				
			||||||
 | 
					        - Recipes:
 | 
				
			||||||
 | 
					            href: https://recipes.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: recipes.kluster.moll.re
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    - Infra:
 | 
				
			||||||
 | 
					        - Gitea:
 | 
				
			||||||
 | 
					            href: https://git.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: git.kluster.moll.re
 | 
				
			||||||
 | 
					        - ArgoCD:
 | 
				
			||||||
 | 
					            href: https://argocd.kluster.moll.re
 | 
				
			||||||
 | 
					            ping: argocd.kluster.moll.re
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  widgets.yaml: |
 | 
				
			||||||
 | 
					    # - kubernetes:
 | 
				
			||||||
 | 
					    #     cluster:
 | 
				
			||||||
 | 
					    #       show: true
 | 
				
			||||||
 | 
					    #       cpu: true
 | 
				
			||||||
 | 
					    #       memory: true
 | 
				
			||||||
 | 
					    #       showLabel: true
 | 
				
			||||||
 | 
					    #       label: "cluster"
 | 
				
			||||||
 | 
					    #     nodes:
 | 
				
			||||||
 | 
					    #       show: true
 | 
				
			||||||
 | 
					    #       cpu: true
 | 
				
			||||||
 | 
					    #       memory: true
 | 
				
			||||||
 | 
					    #       showLabel: true
 | 
				
			||||||
 | 
					    - search:
 | 
				
			||||||
 | 
					        provider: duckduckgo
 | 
				
			||||||
 | 
					    - openmeteo:
 | 
				
			||||||
 | 
					        label: Zürich # optional
 | 
				
			||||||
 | 
					        latitude: 47.24236
 | 
				
			||||||
 | 
					        longitude: 8.30439
 | 
				
			||||||
 | 
					        units: metric # or imperial
 | 
				
			||||||
 | 
					        cache: 30 # Time in minutes to cache API responses, to stay within limits
 | 
				
			||||||
 | 
					        format: # optional, Intl.NumberFormat options
 | 
				
			||||||
 | 
					            maximumFractionDigits: 1
 | 
				
			||||||
 | 
					    - datetime:
 | 
				
			||||||
 | 
					        locale: de
 | 
				
			||||||
 | 
					        format:
 | 
				
			||||||
 | 
					          dateStyle: long
 | 
				
			||||||
 | 
					          timeStyle: short
 | 
				
			||||||
 | 
					    - adguard:
 | 
				
			||||||
 | 
					        url: http://adguard-home-web.adguard-home:3000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  docker.yaml: ""
 | 
				
			||||||
							
								
								
									
										64
									
								
								apps/homepage/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								apps/homepage/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,64 @@
 | 
				
			|||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: homepage
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app.kubernetes.io/name: homepage
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  revisionHistoryLimit: 3
 | 
				
			||||||
 | 
					  replicas: 1
 | 
				
			||||||
 | 
					  strategy:
 | 
				
			||||||
 | 
					    type: RollingUpdate
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app.kubernetes.io/name: homepage
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app.kubernetes.io/name: homepage
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      # serviceAccountName: homepage
 | 
				
			||||||
 | 
					      # automountServiceAccountToken: true
 | 
				
			||||||
 | 
					      dnsPolicy: ClusterFirst
 | 
				
			||||||
 | 
					      # enableServiceLinks: true
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					        - name: homepage
 | 
				
			||||||
 | 
					          image: homepage
 | 
				
			||||||
 | 
					          imagePullPolicy: Always
 | 
				
			||||||
 | 
					          ports:
 | 
				
			||||||
 | 
					            - name: http
 | 
				
			||||||
 | 
					              containerPort: 3000
 | 
				
			||||||
 | 
					              protocol: TCP
 | 
				
			||||||
 | 
					          volumeMounts:
 | 
				
			||||||
 | 
					            - mountPath: /app/config/custom.js
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: custom.js
 | 
				
			||||||
 | 
					            - mountPath: /app/config/custom.css
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: custom.css
 | 
				
			||||||
 | 
					            - mountPath: /app/config/bookmarks.yaml
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: bookmarks.yaml
 | 
				
			||||||
 | 
					            - mountPath: /app/config/docker.yaml
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: docker.yaml
 | 
				
			||||||
 | 
					            - mountPath: /app/config/kubernetes.yaml
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: kubernetes.yaml
 | 
				
			||||||
 | 
					            - mountPath: /app/config/services.yaml
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: services.yaml
 | 
				
			||||||
 | 
					            - mountPath: /app/config/settings.yaml
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: settings.yaml
 | 
				
			||||||
 | 
					            - mountPath: /app/config/widgets.yaml
 | 
				
			||||||
 | 
					              name: config
 | 
				
			||||||
 | 
					              subPath: widgets.yaml
 | 
				
			||||||
 | 
					            - mountPath: /app/config/logs
 | 
				
			||||||
 | 
					              name: logs
 | 
				
			||||||
 | 
					      volumes:
 | 
				
			||||||
 | 
					        - name: config
 | 
				
			||||||
 | 
					          configMap:
 | 
				
			||||||
 | 
					            name: config
 | 
				
			||||||
 | 
					        - name: logs
 | 
				
			||||||
 | 
					          emptyDir: {}
 | 
				
			||||||
							
								
								
									
										16
									
								
								apps/homepage/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/homepage/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
 | 
					kind: IngressRoute
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: homepage-ingressroute
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  entryPoints:
 | 
				
			||||||
 | 
					    - websecure
 | 
				
			||||||
 | 
					  routes:
 | 
				
			||||||
 | 
					    - match: Host(`start.kluster.moll.re`)
 | 
				
			||||||
 | 
					      kind: Rule
 | 
				
			||||||
 | 
					      services:
 | 
				
			||||||
 | 
					        - name: homepage-web
 | 
				
			||||||
 | 
					          port: 3000
 | 
				
			||||||
 | 
					  tls:
 | 
				
			||||||
 | 
					    certResolver: default-tls
 | 
				
			||||||
							
								
								
									
										17
									
								
								apps/homepage/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/homepage/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: homepage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - service.yaml
 | 
				
			||||||
 | 
					  - configmap.yaml
 | 
				
			||||||
 | 
					  - ingress.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					images:
 | 
				
			||||||
 | 
					  - name: homepage
 | 
				
			||||||
 | 
					    newName: ghcr.io/gethomepage/homepage
 | 
				
			||||||
 | 
					    newTag: v0.8.13
 | 
				
			||||||
							
								
								
									
										4
									
								
								apps/homepage/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/homepage/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: placeholder
 | 
				
			||||||
							
								
								
									
										15
									
								
								apps/homepage/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								apps/homepage/service.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: homepage-web
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app.kubernetes.io/name: homepage
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  type: ClusterIP
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					    - port: 3000
 | 
				
			||||||
 | 
					      targetPort: http
 | 
				
			||||||
 | 
					      protocol: TCP
 | 
				
			||||||
 | 
					      name: http
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app.kubernetes.io/name: homepage
 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: Middleware
 | 
					kind: Middleware
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: stripprefix
 | 
					  name: stripprefix
 | 
				
			||||||
@@ -7,7 +7,7 @@ spec:
 | 
				
			|||||||
    prefixes:
 | 
					    prefixes:
 | 
				
			||||||
      - /api
 | 
					      - /api
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: Middleware
 | 
					kind: Middleware
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: websocket
 | 
					  name: websocket
 | 
				
			||||||
@@ -18,7 +18,7 @@ spec:
 | 
				
			|||||||
      # enable websockets
 | 
					      # enable websockets
 | 
				
			||||||
      Upgrade: "websocket"
 | 
					      Upgrade: "websocket"
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
    name: immich-ingressroute
 | 
					    name: immich-ingressroute
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,6 +4,7 @@ resources:
 | 
				
			|||||||
- namespace.yaml
 | 
					- namespace.yaml
 | 
				
			||||||
- ingress.yaml
 | 
					- ingress.yaml
 | 
				
			||||||
- pvc.yaml
 | 
					- pvc.yaml
 | 
				
			||||||
 | 
					- postgres.yaml
 | 
				
			||||||
- postgres.sealedsecret.yaml
 | 
					- postgres.sealedsecret.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace: immich
 | 
					namespace: immich
 | 
				
			||||||
@@ -11,6 +12,13 @@ namespace: immich
 | 
				
			|||||||
helmCharts:
 | 
					helmCharts:
 | 
				
			||||||
  - name: immich
 | 
					  - name: immich
 | 
				
			||||||
    releaseName: immich
 | 
					    releaseName: immich
 | 
				
			||||||
    version: 0.2.0
 | 
					    version: 0.6.0
 | 
				
			||||||
    valuesFile: values.yaml
 | 
					    valuesFile: values.yaml
 | 
				
			||||||
    repo: https://immich-app.github.io/immich-charts
 | 
					    repo: https://immich-app.github.io/immich-charts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					images:
 | 
				
			||||||
 | 
					  - name: ghcr.io/immich-app/immich-machine-learning
 | 
				
			||||||
 | 
					    newTag: v1.103.1
 | 
				
			||||||
 | 
					  - name: ghcr.io/immich-app/immich-server
 | 
				
			||||||
 | 
					    newTag: v1.103.1
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										29
									
								
								apps/immich/postgres.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								apps/immich/postgres.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					apiVersion: postgresql.cnpg.io/v1
 | 
				
			||||||
 | 
					kind: Cluster
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: immich-postgres
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  instances: 1
 | 
				
			||||||
 | 
					  imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.2
 | 
				
			||||||
 | 
					  bootstrap:
 | 
				
			||||||
 | 
					    initdb:
 | 
				
			||||||
 | 
					      owner: immich
 | 
				
			||||||
 | 
					      database: immich
 | 
				
			||||||
 | 
					      secret:
 | 
				
			||||||
 | 
					        name: postgres-password
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  postgresql:
 | 
				
			||||||
 | 
					    shared_preload_libraries:
 | 
				
			||||||
 | 
					      - "vectors.so"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  storage:
 | 
				
			||||||
 | 
					    size: 1Gi
 | 
				
			||||||
 | 
					    pvcTemplate:
 | 
				
			||||||
 | 
					      storageClassName: ""
 | 
				
			||||||
 | 
					      resources:
 | 
				
			||||||
 | 
					        requests:
 | 
				
			||||||
 | 
					          storage: "1Gi"
 | 
				
			||||||
 | 
					      volumeName: immich-postgres
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  monitoring:
 | 
				
			||||||
 | 
					    enablePodMonitor: true
 | 
				
			||||||
@@ -24,3 +24,17 @@ spec:
 | 
				
			|||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: "50Gi"
 | 
					      storage: "50Gi"
 | 
				
			||||||
  volumeName: immich-nfs
 | 
					  volumeName: immich-nfs
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: PersistentVolume
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: immich-postgres
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  capacity:
 | 
				
			||||||
 | 
					    storage: "1Gi"
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
 | 
					  nfs:
 | 
				
			||||||
 | 
					    path: /kluster/immich-postgres
 | 
				
			||||||
 | 
					    server: 192.168.1.157
 | 
				
			||||||
 | 
					# later used by cnpg
 | 
				
			||||||
@@ -2,15 +2,11 @@
 | 
				
			|||||||
## You can find it at https://github.com/bjw-s/helm-charts/tree/main/charts/library/common
 | 
					## You can find it at https://github.com/bjw-s/helm-charts/tree/main/charts/library/common
 | 
				
			||||||
## Refer there for more detail about the supported values
 | 
					## Refer there for more detail about the supported values
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
image:
 | 
					 | 
				
			||||||
  tag: v1.90.2
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# These entries are shared between all the Immich components
 | 
					# These entries are shared between all the Immich components
 | 
				
			||||||
 | 
					
 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
 | 
					  REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}'
 | 
				
			||||||
  DB_HOSTNAME: "postgres-postgresql.postgres"
 | 
					  DB_HOSTNAME: "immich-postgres-rw"
 | 
				
			||||||
  DB_USERNAME: 
 | 
					  DB_USERNAME: 
 | 
				
			||||||
    valueFrom:
 | 
					    valueFrom:
 | 
				
			||||||
      secretKeyRef:
 | 
					      secretKeyRef:
 | 
				
			||||||
@@ -26,11 +22,7 @@ env:
 | 
				
			|||||||
      secretKeyRef:
 | 
					      secretKeyRef:
 | 
				
			||||||
        name: postgres-password
 | 
					        name: postgres-password
 | 
				
			||||||
        key: password
 | 
					        key: password
 | 
				
			||||||
  TYPESENSE_ENABLED: "{{ .Values.typesense.enabled }}"
 | 
					 | 
				
			||||||
  TYPESENSE_API_KEY: "{{ .Values.typesense.env.TYPESENSE_API_KEY }}"
 | 
					 | 
				
			||||||
  TYPESENSE_HOST: '{{ printf "%s-typesense" .Release.Name }}'
 | 
					 | 
				
			||||||
  IMMICH_WEB_URL: '{{ printf "http://%s-web:3000" .Release.Name }}'
 | 
					  IMMICH_WEB_URL: '{{ printf "http://%s-web:3000" .Release.Name }}'
 | 
				
			||||||
  IMMICH_SERVER_URL: '{{ printf "http://%s-server:3001" .Release.Name }}'
 | 
					 | 
				
			||||||
  IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'
 | 
					  IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
immich:
 | 
					immich:
 | 
				
			||||||
@@ -52,18 +44,6 @@ redis:
 | 
				
			|||||||
  auth:
 | 
					  auth:
 | 
				
			||||||
    enabled: false
 | 
					    enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typesense:
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
  env:
 | 
					 | 
				
			||||||
    TYPESENSE_DATA_DIR: /tsdata
 | 
					 | 
				
			||||||
    TYPESENSE_API_KEY: typesense
 | 
					 | 
				
			||||||
  persistence:
 | 
					 | 
				
			||||||
    tsdata:
 | 
					 | 
				
			||||||
      # Enabling typesense persistence is recommended to avoid slow reindexing
 | 
					 | 
				
			||||||
      enabled: true
 | 
					 | 
				
			||||||
      accessMode: ReadWriteOnce
 | 
					 | 
				
			||||||
      size: 1Gi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Immich components
 | 
					# Immich components
 | 
				
			||||||
 | 
					
 | 
				
			||||||
server:
 | 
					server:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: jellyfin-vue-ingress
 | 
					  name: jellyfin-vue-ingress
 | 
				
			||||||
@@ -17,7 +17,7 @@ spec:
 | 
				
			|||||||
  tls:
 | 
					  tls:
 | 
				
			||||||
    certResolver: default-tls
 | 
					    certResolver: default-tls
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: jellyfin-backend-ingress
 | 
					  name: jellyfin-backend-ingress
 | 
				
			||||||
@@ -26,7 +26,7 @@ spec:
 | 
				
			|||||||
  entryPoints:
 | 
					  entryPoints:
 | 
				
			||||||
    - websecure
 | 
					    - websecure
 | 
				
			||||||
  routes:
 | 
					  routes:
 | 
				
			||||||
    - match: Host(`media-backend.kluster.moll.re`)
 | 
					    - match: Host(`media-backend.kluster.moll.re`) && !Path(`/metrics`)
 | 
				
			||||||
      middlewares:
 | 
					      middlewares:
 | 
				
			||||||
        - name: jellyfin-websocket
 | 
					        - name: jellyfin-websocket
 | 
				
			||||||
        - name: jellyfin-server-headers
 | 
					        - name: jellyfin-server-headers
 | 
				
			||||||
@@ -37,7 +37,7 @@ spec:
 | 
				
			|||||||
  tls:
 | 
					  tls:
 | 
				
			||||||
    certResolver: default-tls
 | 
					    certResolver: default-tls
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: Middleware
 | 
					kind: Middleware
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: jellyfin-websocket
 | 
					  name: jellyfin-websocket
 | 
				
			||||||
@@ -48,7 +48,7 @@ spec:
 | 
				
			|||||||
      Connection: keep-alive, Upgrade
 | 
					      Connection: keep-alive, Upgrade
 | 
				
			||||||
      Upgrade: WebSocket
 | 
					      Upgrade: WebSocket
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: Middleware
 | 
					kind: Middleware
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: jellyfin-server-headers
 | 
					  name: jellyfin-server-headers
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										17
									
								
								apps/media/jellyfin.servicemonitor.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/media/jellyfin.servicemonitor.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					apiVersion: monitoring.coreos.com/v1
 | 
				
			||||||
 | 
					kind: ServiceMonitor
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: jellyfin
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    metrics: prometheus
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: jellyfin-server-service
 | 
				
			||||||
 | 
					  endpoints:
 | 
				
			||||||
 | 
					  - path: /metrics
 | 
				
			||||||
 | 
					    targetPort: jellyfin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# this exposes metrics on port 8096 as enabled in the jellyfin config
 | 
				
			||||||
 | 
					# https://jellyfin.org/docs/general/networking/monitoring/
 | 
				
			||||||
 | 
					# the metrics are available at /metrics but blocked by the ingress
 | 
				
			||||||
@@ -14,7 +14,7 @@ resources:
 | 
				
			|||||||
images:
 | 
					images:
 | 
				
			||||||
  - name: jellyfin/jellyfin
 | 
					  - name: jellyfin/jellyfin
 | 
				
			||||||
    newName: jellyfin/jellyfin
 | 
					    newName: jellyfin/jellyfin
 | 
				
			||||||
    newTag: 10.8.9
 | 
					    newTag: 10.9.0
 | 
				
			||||||
  - name: ghcr.io/jellyfin/jellyfin-vue
 | 
					  - name: ghcr.io/jellyfin/jellyfin-vue
 | 
				
			||||||
    newName: ghcr.io/jellyfin/jellyfin-vue
 | 
					    newName: ghcr.io/jellyfin/jellyfin-vue
 | 
				
			||||||
    newTag: stable-rc.0.3.1
 | 
					    newTag: stable-rc.0.3.1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,39 +1,21 @@
 | 
				
			|||||||
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolume
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: media
 | 
					 | 
				
			||||||
  name: jellyfin-config-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  capacity:
 | 
					 | 
				
			||||||
    storage: "1Gi"
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadWriteOnce
 | 
					 | 
				
			||||||
  nfs:
 | 
					 | 
				
			||||||
    path: /export/kluster/jellyfin-config
 | 
					 | 
				
			||||||
    server: 192.168.1.157
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: PersistentVolumeClaim
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  namespace: media
 | 
					  name: config
 | 
				
			||||||
  name: jellyfin-config-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  storageClassName: ""
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
    - ReadWriteOnce
 | 
					    - ReadWriteOnce
 | 
				
			||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: "1Gi"
 | 
					      storage: "1Gi"
 | 
				
			||||||
  volumeName: jellyfin-config-nfs
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: PersistentVolume
 | 
					kind: PersistentVolume
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  namespace: media
 | 
					  name: media
 | 
				
			||||||
  name: jellyfin-data-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  capacity:
 | 
					  capacity:
 | 
				
			||||||
    storage: "1Ti"
 | 
					    storage: "1Ti"
 | 
				
			||||||
@@ -46,8 +28,7 @@ spec:
 | 
				
			|||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: PersistentVolumeClaim
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  namespace: media
 | 
					  name: media
 | 
				
			||||||
  name: jellyfin-data-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  storageClassName: ""
 | 
					  storageClassName: ""
 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
@@ -55,4 +36,4 @@ spec:
 | 
				
			|||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: "1Ti"
 | 
					      storage: "1Ti"
 | 
				
			||||||
  volumeName: jellyfin-data-nfs
 | 
					  volumeName: media
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,17 +16,18 @@ spec:
 | 
				
			|||||||
        image: jellyfin/jellyfin
 | 
					        image: jellyfin/jellyfin
 | 
				
			||||||
        resources:
 | 
					        resources:
 | 
				
			||||||
          limits:
 | 
					          limits:
 | 
				
			||||||
            memory: "500Mi"
 | 
					            memory: "2Gi"
 | 
				
			||||||
            cpu: "2"
 | 
					            cpu: "2"
 | 
				
			||||||
        ports:
 | 
					        ports:
 | 
				
			||||||
        - containerPort: 8096
 | 
					        - containerPort: 8096
 | 
				
			||||||
 | 
					          name: jellyfin
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
        - name: TZ
 | 
					        - name: TZ
 | 
				
			||||||
          value: Europe/Berlin
 | 
					          value: Europe/Berlin
 | 
				
			||||||
        volumeMounts:
 | 
					        volumeMounts:
 | 
				
			||||||
        - name: jellyfin-config
 | 
					        - name: config
 | 
				
			||||||
          mountPath: /config
 | 
					          mountPath: /config
 | 
				
			||||||
        - name: jellyfin-data
 | 
					        - name: media
 | 
				
			||||||
          mountPath: /media
 | 
					          mountPath: /media
 | 
				
			||||||
        livenessProbe:
 | 
					        livenessProbe:
 | 
				
			||||||
          httpGet:
 | 
					          httpGet:
 | 
				
			||||||
@@ -35,10 +36,10 @@ spec:
 | 
				
			|||||||
          initialDelaySeconds: 100
 | 
					          initialDelaySeconds: 100
 | 
				
			||||||
          periodSeconds: 15
 | 
					          periodSeconds: 15
 | 
				
			||||||
      volumes:
 | 
					      volumes:
 | 
				
			||||||
      - name: jellyfin-config
 | 
					      - name: config
 | 
				
			||||||
        persistentVolumeClaim:
 | 
					        persistentVolumeClaim:
 | 
				
			||||||
          claimName: jellyfin-config-nfs
 | 
					          claimName: config
 | 
				
			||||||
      - name: jellyfin-data
 | 
					      - name: media
 | 
				
			||||||
        persistentVolumeClaim:
 | 
					        persistentVolumeClaim:
 | 
				
			||||||
          claimName: jellyfin-data-nfs
 | 
					          claimName: media
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,8 @@ apiVersion: v1
 | 
				
			|||||||
kind: Service
 | 
					kind: Service
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: jellyfin-server
 | 
					  name: jellyfin-server
 | 
				
			||||||
 | 
					  labels:
 | 
				
			||||||
 | 
					    app: jellyfin-server-service
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    app: jellyfin-server
 | 
					    app: jellyfin-server
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								apps/minecraft/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								apps/minecraft/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					## Sending a command
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					kubectl exec -it -n minecraft deploy/minecraft-server -- /bin/bash
 | 
				
			||||||
 | 
					mc-send-to-console /help
 | 
				
			||||||
 | 
					# or directly
 | 
				
			||||||
 | 
					kubectl exec -it -n minecraft deploy/minecraft-server -- mc-send-to-console /help
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
							
								
								
									
										56
									
								
								apps/minecraft/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								apps/minecraft/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,56 @@
 | 
				
			|||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: minecraft-server
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: minecraft-server
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: minecraft-server
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					      - name: minecraft-server
 | 
				
			||||||
 | 
					        image: minecraft
 | 
				
			||||||
 | 
					        resources:
 | 
				
			||||||
 | 
					          limits:
 | 
				
			||||||
 | 
					            memory: "4000Mi"
 | 
				
			||||||
 | 
					            cpu: "2500m"
 | 
				
			||||||
 | 
					          requests:
 | 
				
			||||||
 | 
					            memory: "1000Mi"
 | 
				
			||||||
 | 
					            cpu: "500m"
 | 
				
			||||||
 | 
					        ports:
 | 
				
			||||||
 | 
					        - containerPort: 25565
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					        - name: EULA
 | 
				
			||||||
 | 
					          value: "TRUE"
 | 
				
			||||||
 | 
					        - name: MODPACK
 | 
				
			||||||
 | 
					          value: "https://www.curseforge.com/api/v1/mods/711537/files/5076228/download"
 | 
				
			||||||
 | 
					        - name: VERSION
 | 
				
			||||||
 | 
					          value: "1.18.2"
 | 
				
			||||||
 | 
					        # - name: VERSION
 | 
				
			||||||
 | 
					        #   value: "1.16.5"
 | 
				
			||||||
 | 
					        # - name: MODPACK
 | 
				
			||||||
 | 
					        #   value: "https://mediafilez.forgecdn.net/files/3602/5/VaultHunters-OfficialModpack-1.12.1-Server.zip"
 | 
				
			||||||
 | 
					        - name: INIT_MEMORY
 | 
				
			||||||
 | 
					          value: "1G"
 | 
				
			||||||
 | 
					        - name: MAX_MEMORY
 | 
				
			||||||
 | 
					          value: "3G"
 | 
				
			||||||
 | 
					        - name: MOTD
 | 
				
			||||||
 | 
					          value: "VaultHunters baby!"
 | 
				
			||||||
 | 
					        - name: ENABLE_RCON
 | 
				
			||||||
 | 
					          value: "false"
 | 
				
			||||||
 | 
					        - name: CREATE_CONSOLE_IN_PIPE
 | 
				
			||||||
 | 
					          value: "true"
 | 
				
			||||||
 | 
					        - name: ONLINE_MODE
 | 
				
			||||||
 | 
					          value: "true"
 | 
				
			||||||
 | 
					        volumeMounts:
 | 
				
			||||||
 | 
					        - name: minecraft-data
 | 
				
			||||||
 | 
					          mountPath: /data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      volumes:
 | 
				
			||||||
 | 
					      - name: minecraft-data
 | 
				
			||||||
 | 
					        persistentVolumeClaim:
 | 
				
			||||||
 | 
					          claimName: minecraft-data
 | 
				
			||||||
							
								
								
									
										15
									
								
								apps/minecraft/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								apps/minecraft/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: minecraft
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - pvc.yaml
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - service.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					images:
 | 
				
			||||||
 | 
					  - name: minecraft
 | 
				
			||||||
 | 
					    newName: itzg/minecraft-server
 | 
				
			||||||
 | 
					    newTag: java21
 | 
				
			||||||
							
								
								
									
										4
									
								
								apps/minecraft/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/minecraft/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: placeholder
 | 
				
			||||||
							
								
								
									
										11
									
								
								apps/minecraft/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								apps/minecraft/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: minecraft-data
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
 | 
					  resources:
 | 
				
			||||||
 | 
					    requests:
 | 
				
			||||||
 | 
					      storage: 1Gi
 | 
				
			||||||
							
								
								
									
										12
									
								
								apps/minecraft/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								apps/minecraft/service.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: minecraft-server
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: minecraft-server
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 25565
 | 
				
			||||||
 | 
					    targetPort: 25565
 | 
				
			||||||
 | 
					  type: LoadBalancer
 | 
				
			||||||
 | 
					  loadBalancerIP: 192.168.3.4
 | 
				
			||||||
							
								
								
									
										1
									
								
								apps/monitoring/dashboards
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								apps/monitoring/dashboards
									
									
									
									
									
										Submodule
									
								
							 Submodule apps/monitoring/dashboards added at 984a69be34
									
								
							
							
								
								
									
										17
									
								
								apps/monitoring/grafana-admin.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/monitoring/grafana-admin.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					apiVersion: bitnami.com/v1alpha1
 | 
				
			||||||
 | 
					kind: SealedSecret
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  creationTimestamp: null
 | 
				
			||||||
 | 
					  name: grafana-admin-secret
 | 
				
			||||||
 | 
					  namespace: monitoring
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  encryptedData:
 | 
				
			||||||
 | 
					    password: AgBe8isrCWd5MuaQq5CpA+P3fDizCCDo23BVauaBJLuMRIYbVwpfahaJW7Ocj3LTXwdeVVPBrOk2D6vESUXu6I0EWc3y/NFN4ZezScxMcjmeaAb+z1zWwdH0FynTPJYOxv1fis1FDTkXDmGy3FXo5NDK9ET899TtulKFkh7UqSxdrRWbD3pegJgqKGPIqDCTAxZN/ssiccfWGS4lHqQBJkXn8DeampcKwjOCvgaBdilF03GoSfpgsqa2Iw2SfTDEobWBWVMMK/RB3/Oi/YJkGwMW3ECUxvTDam8gb0RFA1xjWXoYTLVVP5fK7q7x63ns51HebloxAP1GBrt138N/iDrfbGfjNP8Lx0NFl5y5bTgYN/z8DVTOFf90xxWe+YYERdwllg0Ci1JLNbA+NszXTD4L/HC7a8XuBfjRzxMTeymNjR76jzfPkH6v1EvesOduTfSrahPgS0qS+eGOier1rHxj3EBRhOScY1ut5Bq4oJMNId9nMVbVa6xyq2HyxuJHXV+j6h5FGHmEXn9gIR7wGp8RhtPhKgVGLrHcbHZ5Th2E7eomz1T2NK/ezNP8ZhcwOj/lyGywlW0vhU798zpWhMf57k2OPeuMlfs8Y8y74epBdyBjsrMR4EDctF8RZR3vraxENiMJ6kk1gqKj04ir6HwL7blqwiybIFFnJrp2j7MzgjS4SQ687qMX5Zf5XT03aEE+9W9Epy73tT7zVQKdENCQlcm5
 | 
				
			||||||
 | 
					    user: AgAdiOivMn0d+nYjYycMZz9QSiS/9QqwHPJQMHkE7/IOou+CJtBknlETNtdv84KZgBQTucufYqu3LR3djOBpdnQsYbIXDxPFgRZQ11pwu/sO2EGifDk218yyzzfZMvx1FL7JL4LI1rKoiHycZowCwsAjEtlICVOOYv1/Plki+6MHXiAGG4r/yUhugGx3VLLX+Poq8oaTeHndgSsFXJege8SfgYR4TsC7pQgsM1UQEFncGIhJYTD2ashmUxFJ+7CJjHqPR0lFRrZXmFvPwTYTCMT+tnSHnCFWtTht8cEi1NxA4kD/eKEX0rOol15EUZnFUws2WqWI634TbyGwZ7km/Yw4XoDxiQR4ar6ulkqb/djcc3cWDYE7PF1m1c+r3iog85S5CSfZ5EvdCHHrbPN9uO2gmoRQWiR5qI70YMxBSnkeLZWN05O1vUuopdXFDTafY7YskxLEdIGHGqFUpUrJZOvBB0zNBdHGgYxFzb5pNmMCC5LPlOuoKjV4yskh9Tgovz06aAvsPxn2WWx6NOJambeziKB5OmSKvPsFofViyGBekVAWSWtt9yJe6lu5OKpBEiA6xhGhQ4ZryTXu9wvVALuPSIwBFITv85sIxjJb80qhJ51wb12QgzLLcPby0HSanyBI1M4jfsXWpK8gIAbDNO+eD7z3PhD9Y/5hPqYKXZ37Geyq23xiyxG8XDj6cL+Ie6k8XipayI4=
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      creationTimestamp: null
 | 
				
			||||||
 | 
					      name: grafana-admin-secret
 | 
				
			||||||
 | 
					      namespace: monitoring
 | 
				
			||||||
 | 
					    type: Opaque
 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: grafana-ingress
 | 
					  name: grafana-ingress
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
@@ -13,5 +13,3 @@ spec:
 | 
				
			|||||||
          port: 80
 | 
					          port: 80
 | 
				
			||||||
  tls:
 | 
					  tls:
 | 
				
			||||||
    certResolver: default-tls
 | 
					    certResolver: default-tls
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,15 +1,10 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: PersistentVolume
 | 
					kind: PersistentVolume
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: grafana-nfs
 | 
					  name: grafana-nfs
 | 
				
			||||||
  labels:
 | 
					 | 
				
			||||||
    directory: grafana
 | 
					 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  # storageClassName: slow
 | 
					 | 
				
			||||||
  capacity:
 | 
					  capacity:
 | 
				
			||||||
    storage: "1Gi"
 | 
					    storage: "1Gi"
 | 
				
			||||||
  # volumeMode: Filesystem
 | 
					 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
    - ReadWriteOnce
 | 
					    - ReadWriteOnce
 | 
				
			||||||
  nfs:
 | 
					  nfs:
 | 
				
			||||||
@@ -21,15 +16,10 @@ kind: PersistentVolumeClaim
 | 
				
			|||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: grafana-nfs
 | 
					  name: grafana-nfs
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  # storageClassName: slow
 | 
					  storageClassName: ""
 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
    - ReadWriteOnce
 | 
					    - ReadWriteOnce
 | 
				
			||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: "1Gi"
 | 
					      storage: "1Gi"
 | 
				
			||||||
  selector:
 | 
					  volumeName: grafana-nfs
 | 
				
			||||||
    matchLabels:
 | 
					 | 
				
			||||||
      directory: grafana
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,570 +1,55 @@
 | 
				
			|||||||
rbac:
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  ## Use an existing ClusterRole/Role (depending on rbac.namespaced false/true)
 | 
					 | 
				
			||||||
  # useExistingRole: name-of-some-(cluster)role
 | 
					 | 
				
			||||||
  pspEnabled: true
 | 
					 | 
				
			||||||
  pspUseAppArmor: true
 | 
					 | 
				
			||||||
  namespaced: false
 | 
					 | 
				
			||||||
  extraRoleRules: []
 | 
					 | 
				
			||||||
  # - apiGroups: []
 | 
					 | 
				
			||||||
  #   resources: []
 | 
					 | 
				
			||||||
  #   verbs: []
 | 
					 | 
				
			||||||
  extraClusterRoleRules: []
 | 
					 | 
				
			||||||
  # - apiGroups: []
 | 
					 | 
				
			||||||
  #   resources: []
 | 
					 | 
				
			||||||
  #   verbs: []
 | 
					 | 
				
			||||||
serviceAccount:
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  name:
 | 
					 | 
				
			||||||
  nameTest:
 | 
					 | 
				
			||||||
## Service account annotations. Can be templated.
 | 
					 | 
				
			||||||
#  annotations:
 | 
					 | 
				
			||||||
#    eks.amazonaws.com/role-arn: arn:aws:iam::123456789000:role/iam-role-name-here
 | 
					 | 
				
			||||||
  autoMount: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
replicas: 1
 | 
					replicas: 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Create a headless service for the deployment
 | 
					## Create a headless service for the deployment
 | 
				
			||||||
headlessService: false
 | 
					headlessService: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Create HorizontalPodAutoscaler object for deployment type
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
autoscaling:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
#   minReplicas: 1
 | 
					 | 
				
			||||||
#   maxReplicas: 10
 | 
					 | 
				
			||||||
#   metrics:
 | 
					 | 
				
			||||||
#   - type: Resource
 | 
					 | 
				
			||||||
#     resource:
 | 
					 | 
				
			||||||
#       name: cpu
 | 
					 | 
				
			||||||
#       targetAverageUtilization: 60
 | 
					 | 
				
			||||||
#   - type: Resource
 | 
					 | 
				
			||||||
#     resource:
 | 
					 | 
				
			||||||
#       name: memory
 | 
					 | 
				
			||||||
#       targetAverageUtilization: 60
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## See `kubectl explain poddisruptionbudget.spec` for more
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
 | 
					 | 
				
			||||||
podDisruptionBudget: {}
 | 
					 | 
				
			||||||
#  minAvailable: 1
 | 
					 | 
				
			||||||
#  maxUnavailable: 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## See `kubectl explain deployment.spec.strategy` for more
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
 | 
					 | 
				
			||||||
deploymentStrategy:
 | 
					 | 
				
			||||||
  type: RollingUpdate
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
readinessProbe:
 | 
					 | 
				
			||||||
  httpGet:
 | 
					 | 
				
			||||||
    path: /api/health
 | 
					 | 
				
			||||||
    port: 3000
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
livenessProbe:
 | 
					 | 
				
			||||||
  httpGet:
 | 
					 | 
				
			||||||
    path: /api/health
 | 
					 | 
				
			||||||
    port: 3000
 | 
					 | 
				
			||||||
  initialDelaySeconds: 60
 | 
					 | 
				
			||||||
  timeoutSeconds: 30
 | 
					 | 
				
			||||||
  failureThreshold: 10
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Use an alternate scheduler, e.g. "stork".
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
# schedulerName: "default-scheduler"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
image:
 | 
					 | 
				
			||||||
  repository: grafana/grafana
 | 
					 | 
				
			||||||
  tag: 9.0.2
 | 
					 | 
				
			||||||
  sha: ""
 | 
					 | 
				
			||||||
  pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Optionally specify an array of imagePullSecrets.
 | 
					 | 
				
			||||||
  ## Secrets must be manually created in the namespace.
 | 
					 | 
				
			||||||
  ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
 | 
					 | 
				
			||||||
  ## Can be templated.
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  # pullSecrets:
 | 
					 | 
				
			||||||
  #   - myRegistrKeySecretName
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
testFramework:
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
  image: "bats/bats"
 | 
					 | 
				
			||||||
  tag: "v1.4.1"
 | 
					 | 
				
			||||||
  imagePullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
  securityContext: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
securityContext:
 | 
					 | 
				
			||||||
  runAsUser: 472
 | 
					 | 
				
			||||||
  runAsGroup: 472
 | 
					 | 
				
			||||||
  fsGroup: 472
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
containerSecurityContext:
 | 
					 | 
				
			||||||
  {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Extra configmaps to mount in grafana pods
 | 
					 | 
				
			||||||
# Values are templated.
 | 
					 | 
				
			||||||
extraConfigmapMounts: []
 | 
					 | 
				
			||||||
  # - name: certs-configmap
 | 
					 | 
				
			||||||
  #   mountPath: /etc/grafana/ssl/
 | 
					 | 
				
			||||||
  #   subPath: certificates.crt # (optional)
 | 
					 | 
				
			||||||
  #   configMap: certs-configmap
 | 
					 | 
				
			||||||
  #   readOnly: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
extraEmptyDirMounts: []
 | 
					 | 
				
			||||||
  # - name: provisioning-notifiers
 | 
					 | 
				
			||||||
  #   mountPath: /etc/grafana/provisioning/notifiers
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Apply extra labels to common labels.
 | 
					 | 
				
			||||||
extraLabels: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Assign a PriorityClassName to pods if set
 | 
					 | 
				
			||||||
# priorityClassName:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
downloadDashboardsImage:
 | 
					 | 
				
			||||||
  repository: curlimages/curl
 | 
					 | 
				
			||||||
  tag: 7.73.0
 | 
					 | 
				
			||||||
  sha: ""
 | 
					 | 
				
			||||||
  pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
downloadDashboards:
 | 
					 | 
				
			||||||
  env: {}
 | 
					 | 
				
			||||||
  envFromSecret: ""
 | 
					 | 
				
			||||||
  resources: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pod Annotations
 | 
					 | 
				
			||||||
# podAnnotations: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pod Labels
 | 
					 | 
				
			||||||
# podLabels: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
podPortName: grafana
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Deployment annotations
 | 
					 | 
				
			||||||
# annotations: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Expose the grafana service to be accessed from outside the cluster (LoadBalancer service).
 | 
					## Expose the grafana service to be accessed from outside the cluster (LoadBalancer service).
 | 
				
			||||||
## or access it from within the cluster (ClusterIP service). Set the service type and the port to serve it.
 | 
					## or access it from within the cluster (ClusterIP service). Set the service type and the port to serve it.
 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/services/
 | 
					## ref: http://kubernetes.io/docs/user-guide/services/
 | 
				
			||||||
##
 | 
					##
 | 
				
			||||||
service:
 | 
					service:
 | 
				
			||||||
  enabled: true
 | 
					  enabled: true
 | 
				
			||||||
  type: ClusterIP
 | 
					 | 
				
			||||||
  port: 80
 | 
					 | 
				
			||||||
  targetPort: 3000
 | 
					 | 
				
			||||||
    # targetPort: 4181 To be used with a proxy extraContainer
 | 
					 | 
				
			||||||
  annotations: {}
 | 
					 | 
				
			||||||
  labels: {}
 | 
					 | 
				
			||||||
  portName: service
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
serviceMonitor:
 | 
					serviceMonitor:
 | 
				
			||||||
  ## If true, a ServiceMonitor CRD is created for a prometheus operator
 | 
					  ## If true, a ServiceMonitor CRD is created for a prometheus operator
 | 
				
			||||||
  ## https://github.com/coreos/prometheus-operator
 | 
					  ## https://github.com/coreos/prometheus-operator
 | 
				
			||||||
  ##
 | 
					  ##
 | 
				
			||||||
  enabled: false
 | 
					  enabled: false
 | 
				
			||||||
  path: /metrics
 | 
					 | 
				
			||||||
  #  namespace: monitoring  (defaults to use the namespace this chart is deployed to)
 | 
					 | 
				
			||||||
  labels: {}
 | 
					 | 
				
			||||||
  interval: 1m
 | 
					 | 
				
			||||||
  scheme: http
 | 
					 | 
				
			||||||
  tlsConfig: {}
 | 
					 | 
				
			||||||
  scrapeTimeout: 30s
 | 
					 | 
				
			||||||
  relabelings: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
extraExposePorts: []
 | 
					 | 
				
			||||||
 # - name: keycloak
 | 
					 | 
				
			||||||
 #   port: 8080
 | 
					 | 
				
			||||||
 #   targetPort: 8080
 | 
					 | 
				
			||||||
 #   type: ClusterIP
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# overrides pod.spec.hostAliases in the grafana deployment's pods
 | 
					 | 
				
			||||||
hostAliases: []
 | 
					 | 
				
			||||||
  # - ip: "1.2.3.4"
 | 
					 | 
				
			||||||
  #   hostnames:
 | 
					 | 
				
			||||||
  #     - "my.host.com"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ingress:
 | 
					ingress:
 | 
				
			||||||
  enabled: true
 | 
					  enabled: false
 | 
				
			||||||
  # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
 | 
					 | 
				
			||||||
  # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
 | 
					 | 
				
			||||||
  # ingressClassName: nginx
 | 
					 | 
				
			||||||
  # Values can be templated
 | 
					 | 
				
			||||||
  annotations: {
 | 
					 | 
				
			||||||
    kubernetes.io/ingress.class: nginx,
 | 
					 | 
				
			||||||
    cert-manager.io/cluster-issuer: cloudflare-letsencrypt-prod
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
    # kubernetes.io/ingress.class: nginx
 | 
					 | 
				
			||||||
    # kubernetes.io/tls-acme: "true"
 | 
					 | 
				
			||||||
  labels: {}
 | 
					 | 
				
			||||||
  path: /
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # pathType is only for k8s >= 1.1=
 | 
					# credentials
 | 
				
			||||||
  pathType: Prefix
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  hosts:
 | 
					 | 
				
			||||||
    - grafana.kluster.moll.re
 | 
					 | 
				
			||||||
  ## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
 | 
					 | 
				
			||||||
  extraPaths: []
 | 
					 | 
				
			||||||
  # - path: /*
 | 
					 | 
				
			||||||
  #   backend:
 | 
					 | 
				
			||||||
  #     serviceName: ssl-redirect
 | 
					 | 
				
			||||||
  #     servicePort: use-annotation
 | 
					 | 
				
			||||||
  ## Or for k8s > 1.19
 | 
					 | 
				
			||||||
  # - path: /*
 | 
					 | 
				
			||||||
  #   pathType: Prefix
 | 
					 | 
				
			||||||
  #   backend:
 | 
					 | 
				
			||||||
  #     service:
 | 
					 | 
				
			||||||
  #       name: ssl-redirect
 | 
					 | 
				
			||||||
  #       port:
 | 
					 | 
				
			||||||
  #         name: use-annotation
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  tls: 
 | 
					 | 
				
			||||||
    - hosts:
 | 
					 | 
				
			||||||
      - grafana.kluster.moll.re
 | 
					 | 
				
			||||||
      secretName: cloudflare-letsencrypt-issuer-account-key
 | 
					 | 
				
			||||||
    #  - secretName: chart-example-tls
 | 
					 | 
				
			||||||
  #    hosts:
 | 
					 | 
				
			||||||
  #      - chart-example.local
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
resources: {}
 | 
					 | 
				
			||||||
#  limits:
 | 
					 | 
				
			||||||
#    cpu: 100m
 | 
					 | 
				
			||||||
#    memory: 128Mi
 | 
					 | 
				
			||||||
#  requests:
 | 
					 | 
				
			||||||
#    cpu: 100m
 | 
					 | 
				
			||||||
#    memory: 128Mi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Node labels for pod assignment
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/user-guide/node-selection/
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
nodeSelector: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Tolerations for pod assignment
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
tolerations: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Affinity for pod assignment (evaluated as template)
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
affinity: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Additional init containers (evaluated as template)
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
extraInitContainers: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Enable an Specify container in extraContainers. This is meant to allow adding an authentication proxy to a grafana pod
 | 
					 | 
				
			||||||
extraContainers: ""
 | 
					 | 
				
			||||||
# extraContainers: |
 | 
					 | 
				
			||||||
# - name: proxy
 | 
					 | 
				
			||||||
#   image: quay.io/gambol99/keycloak-proxy:latest
 | 
					 | 
				
			||||||
#   args:
 | 
					 | 
				
			||||||
#   - -provider=github
 | 
					 | 
				
			||||||
#   - -client-id=
 | 
					 | 
				
			||||||
#   - -client-secret=
 | 
					 | 
				
			||||||
#   - -github-org=<ORG_NAME>
 | 
					 | 
				
			||||||
#   - -email-domain=*
 | 
					 | 
				
			||||||
#   - -cookie-secret=
 | 
					 | 
				
			||||||
#   - -http-address=http://0.0.0.0:4181
 | 
					 | 
				
			||||||
#   - -upstream-url=http://127.0.0.1:3000
 | 
					 | 
				
			||||||
#   ports:
 | 
					 | 
				
			||||||
#     - name: proxy-web
 | 
					 | 
				
			||||||
#       containerPort: 4181
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Volumes that can be used in init containers that will not be mounted to deployment pods
 | 
					 | 
				
			||||||
extraContainerVolumes: []
 | 
					 | 
				
			||||||
#  - name: volume-from-secret
 | 
					 | 
				
			||||||
#    secret:
 | 
					 | 
				
			||||||
#      secretName: secret-to-mount
 | 
					 | 
				
			||||||
#  - name: empty-dir-volume
 | 
					 | 
				
			||||||
#    emptyDir: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Enable persistence using Persistent Volume Claims
 | 
					 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
persistence:
 | 
					 | 
				
			||||||
  type: pvc
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
  # storageClassName: default
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadWriteOnce
 | 
					 | 
				
			||||||
  size: 10Gi
 | 
					 | 
				
			||||||
  # annotations: {}
 | 
					 | 
				
			||||||
  finalizers:
 | 
					 | 
				
			||||||
    - kubernetes.io/pvc-protection
 | 
					 | 
				
			||||||
  # selectorLabels: {}
 | 
					 | 
				
			||||||
  ## Sub-directory of the PV to mount. Can be templated.
 | 
					 | 
				
			||||||
  # subPath: ""
 | 
					 | 
				
			||||||
  ## Name of an existing PVC. Can be templated.
 | 
					 | 
				
			||||||
  existingClaim: grafana-nfs
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## If persistence is not enabled, this allows to mount the
 | 
					 | 
				
			||||||
  ## local storage in-memory to improve performance
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  inMemory:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
    ## The maximum usage on memory medium EmptyDir would be
 | 
					 | 
				
			||||||
    ## the minimum value between the SizeLimit specified
 | 
					 | 
				
			||||||
    ## here and the sum of memory limits of all containers in a pod
 | 
					 | 
				
			||||||
    ##
 | 
					 | 
				
			||||||
    # sizeLimit: 300Mi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
initChownData:
 | 
					 | 
				
			||||||
  ## If false, data ownership will not be reset at startup
 | 
					 | 
				
			||||||
  ## This allows the prometheus-server to be run with an arbitrary user
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## initChownData container image
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  image:
 | 
					 | 
				
			||||||
    repository: busybox
 | 
					 | 
				
			||||||
    tag: "1.31.1"
 | 
					 | 
				
			||||||
    sha: ""
 | 
					 | 
				
			||||||
    pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## initChownData resource requests and limits
 | 
					 | 
				
			||||||
  ## Ref: http://kubernetes.io/docs/user-guide/compute-resources/
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  resources: {}
 | 
					 | 
				
			||||||
  #  limits:
 | 
					 | 
				
			||||||
  #    cpu: 100m
 | 
					 | 
				
			||||||
  #    memory: 128Mi
 | 
					 | 
				
			||||||
  #  requests:
 | 
					 | 
				
			||||||
  #    cpu: 100m
 | 
					 | 
				
			||||||
  #    memory: 128Mi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Administrator credentials when not using an existing secret (see below)
 | 
					 | 
				
			||||||
adminUser: admin
 | 
					 | 
				
			||||||
# adminPassword: strongpassword
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Use an existing secret for the admin user.
 | 
					 | 
				
			||||||
admin:
 | 
					admin:
 | 
				
			||||||
  ## Name of the secret. Can be templated.
 | 
					  existingSecret: grafana-admin-secret
 | 
				
			||||||
  existingSecret: ""
 | 
					  userKey: user
 | 
				
			||||||
  userKey: admin-user
 | 
					  passwordKey: password
 | 
				
			||||||
  passwordKey: admin-password
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Define command to be executed at startup by grafana container
 | 
					datasources:
 | 
				
			||||||
## Needed if using `vault-env` to manage secrets (ref: https://banzaicloud.com/blog/inject-secrets-into-pods-vault/)
 | 
					  datasources.yaml:
 | 
				
			||||||
## Default is "run.sh" as defined in grafana's Dockerfile
 | 
					    apiVersion: 1
 | 
				
			||||||
# command:
 | 
					    datasources:
 | 
				
			||||||
# - "sh"
 | 
					      - name: Thanos
 | 
				
			||||||
# - "/run.sh"
 | 
					        type: prometheus
 | 
				
			||||||
 | 
					        url: http://thanos-querier.prometheus.svc:9090
 | 
				
			||||||
## Use an alternate scheduler, e.g. "stork".
 | 
					        isDefault: true
 | 
				
			||||||
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
 | 
					      - name: Prometheus
 | 
				
			||||||
##
 | 
					        type: prometheus
 | 
				
			||||||
# schedulerName:
 | 
					        url: http://prometheus.prometheus.svc:9090
 | 
				
			||||||
 | 
					        isDefault: false
 | 
				
			||||||
## Extra environment variables that will be pass onto deployment pods
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## to provide grafana with access to CloudWatch on AWS EKS:
 | 
					 | 
				
			||||||
## 1. create an iam role of type "Web identity" with provider oidc.eks.* (note the provider for later)
 | 
					 | 
				
			||||||
## 2. edit the "Trust relationships" of the role, add a line inside the StringEquals clause using the
 | 
					 | 
				
			||||||
## same oidc eks provider as noted before (same as the existing line)
 | 
					 | 
				
			||||||
## also, replace NAMESPACE and prometheus-operator-grafana with the service account namespace and name
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
##  "oidc.eks.us-east-1.amazonaws.com/id/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:sub": "system:serviceaccount:NAMESPACE:prometheus-operator-grafana",
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## 3. attach a policy to the role, you can use a built in policy called CloudWatchReadOnlyAccess
 | 
					 | 
				
			||||||
## 4. use the following env: (replace 123456789000 and iam-role-name-here with your aws account number and role name)
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## env:
 | 
					 | 
				
			||||||
##   AWS_ROLE_ARN: arn:aws:iam::123456789000:role/iam-role-name-here
 | 
					 | 
				
			||||||
##   AWS_WEB_IDENTITY_TOKEN_FILE: /var/run/secrets/eks.amazonaws.com/serviceaccount/token
 | 
					 | 
				
			||||||
##   AWS_REGION: us-east-1
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## 5. uncomment the EKS section in extraSecretMounts: below
 | 
					 | 
				
			||||||
## 6. uncomment the annotation section in the serviceAccount: above
 | 
					 | 
				
			||||||
## make sure to replace arn:aws:iam::123456789000:role/iam-role-name-here with your role arn
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
env: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## "valueFrom" environment variable references that will be added to deployment pods. Name is templated.
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#envvarsource-v1-core
 | 
					 | 
				
			||||||
## Renders in container spec as:
 | 
					 | 
				
			||||||
##   env:
 | 
					 | 
				
			||||||
##     ...
 | 
					 | 
				
			||||||
##     - name: <key>
 | 
					 | 
				
			||||||
##       valueFrom:
 | 
					 | 
				
			||||||
##         <value rendered as YAML>
 | 
					 | 
				
			||||||
envValueFrom: {}
 | 
					 | 
				
			||||||
  #  ENV_NAME:
 | 
					 | 
				
			||||||
  #    configMapKeyRef:
 | 
					 | 
				
			||||||
  #      name: configmap-name
 | 
					 | 
				
			||||||
  #      key: value_key
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## The name of a secret in the same kubernetes namespace which contain values to be added to the environment
 | 
					 | 
				
			||||||
## This can be useful for auth tokens, etc. Value is templated.
 | 
					 | 
				
			||||||
envFromSecret: ""
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Sensible environment variables that will be rendered as new secret object
 | 
					 | 
				
			||||||
## This can be useful for auth tokens, etc
 | 
					 | 
				
			||||||
envRenderSecret: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## The names of secrets in the same kubernetes namespace which contain values to be added to the environment
 | 
					 | 
				
			||||||
## Each entry should contain a name key, and can optionally specify whether the secret must be defined with an optional key.
 | 
					 | 
				
			||||||
## Name is templated.
 | 
					 | 
				
			||||||
envFromSecrets: []
 | 
					 | 
				
			||||||
## - name: secret-name
 | 
					 | 
				
			||||||
##   optional: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## The names of conifgmaps in the same kubernetes namespace which contain values to be added to the environment
 | 
					 | 
				
			||||||
## Each entry should contain a name key, and can optionally specify whether the configmap must be defined with an optional key.
 | 
					 | 
				
			||||||
## Name is templated.
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#configmapenvsource-v1-core
 | 
					 | 
				
			||||||
envFromConfigMaps: []
 | 
					 | 
				
			||||||
## - name: configmap-name
 | 
					 | 
				
			||||||
##   optional: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Inject Kubernetes services as environment variables.
 | 
					 | 
				
			||||||
# See https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#environment-variables
 | 
					 | 
				
			||||||
enableServiceLinks: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Additional grafana server secret mounts
 | 
					 | 
				
			||||||
# Defines additional mounts with secrets. Secrets must be manually created in the namespace.
 | 
					 | 
				
			||||||
extraSecretMounts: []
 | 
					 | 
				
			||||||
  # - name: secret-files
 | 
					 | 
				
			||||||
  #   mountPath: /etc/secrets
 | 
					 | 
				
			||||||
  #   secretName: grafana-secret-files
 | 
					 | 
				
			||||||
  #   readOnly: true
 | 
					 | 
				
			||||||
  #   subPath: ""
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  # for AWS EKS (cloudwatch) use the following (see also instruction in env: above)
 | 
					 | 
				
			||||||
  # - name: aws-iam-token
 | 
					 | 
				
			||||||
  #   mountPath: /var/run/secrets/eks.amazonaws.com/serviceaccount
 | 
					 | 
				
			||||||
  #   readOnly: true
 | 
					 | 
				
			||||||
  #   projected:
 | 
					 | 
				
			||||||
  #     defaultMode: 420
 | 
					 | 
				
			||||||
  #     sources:
 | 
					 | 
				
			||||||
  #       - serviceAccountToken:
 | 
					 | 
				
			||||||
  #           audience: sts.amazonaws.com
 | 
					 | 
				
			||||||
  #           expirationSeconds: 86400
 | 
					 | 
				
			||||||
  #           path: token
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  # for CSI e.g. Azure Key Vault use the following
 | 
					 | 
				
			||||||
  # - name: secrets-store-inline
 | 
					 | 
				
			||||||
  #  mountPath: /run/secrets
 | 
					 | 
				
			||||||
  #  readOnly: true
 | 
					 | 
				
			||||||
  #  csi:
 | 
					 | 
				
			||||||
  #    driver: secrets-store.csi.k8s.io
 | 
					 | 
				
			||||||
  #    readOnly: true
 | 
					 | 
				
			||||||
  #    volumeAttributes:
 | 
					 | 
				
			||||||
  #      secretProviderClass: "akv-grafana-spc"
 | 
					 | 
				
			||||||
  #    nodePublishSecretRef:                       # Only required when using service principal mode
 | 
					 | 
				
			||||||
  #       name: grafana-akv-creds                  # Only required when using service principal mode
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Additional grafana server volume mounts
 | 
					 | 
				
			||||||
# Defines additional volume mounts.
 | 
					 | 
				
			||||||
extraVolumeMounts: []
 | 
					 | 
				
			||||||
  # - name: extra-volume-0
 | 
					 | 
				
			||||||
  #   mountPath: /mnt/volume0
 | 
					 | 
				
			||||||
  #   readOnly: true
 | 
					 | 
				
			||||||
  #   existingClaim: volume-claim
 | 
					 | 
				
			||||||
  # - name: extra-volume-1
 | 
					 | 
				
			||||||
  #   mountPath: /mnt/volume1
 | 
					 | 
				
			||||||
  #   readOnly: true
 | 
					 | 
				
			||||||
  #   hostPath: /usr/shared/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Container Lifecycle Hooks. Execute a specific bash command or make an HTTP request
 | 
					 | 
				
			||||||
lifecycleHooks: {}
 | 
					 | 
				
			||||||
  # postStart:
 | 
					 | 
				
			||||||
  #   exec:
 | 
					 | 
				
			||||||
  #     command: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pass the plugins you want installed as a list.
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
plugins: []
 | 
					 | 
				
			||||||
  # - digrich-bubblechart-panel
 | 
					 | 
				
			||||||
  # - grafana-clock-panel
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure grafana datasources
 | 
					 | 
				
			||||||
## ref: http://docs.grafana.org/administration/provisioning/#datasources
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
datasources: {}
 | 
					 | 
				
			||||||
#  datasources.yaml:
 | 
					 | 
				
			||||||
#    apiVersion: 1
 | 
					 | 
				
			||||||
#    datasources:
 | 
					 | 
				
			||||||
#    - name: Prometheus
 | 
					 | 
				
			||||||
#      type: prometheus
 | 
					 | 
				
			||||||
#      url: http://prometheus-prometheus-server
 | 
					 | 
				
			||||||
#      access: proxy
 | 
					 | 
				
			||||||
#      isDefault: true
 | 
					 | 
				
			||||||
#    - name: CloudWatch
 | 
					 | 
				
			||||||
#      type: cloudwatch
 | 
					 | 
				
			||||||
#      access: proxy
 | 
					 | 
				
			||||||
#      uid: cloudwatch
 | 
					 | 
				
			||||||
#      editable: false
 | 
					 | 
				
			||||||
#      jsonData:
 | 
					 | 
				
			||||||
#        authType: default
 | 
					 | 
				
			||||||
#        defaultRegion: us-east-1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure notifiers
 | 
					 | 
				
			||||||
## ref: http://docs.grafana.org/administration/provisioning/#alert-notification-channels
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
notifiers: {}
 | 
					 | 
				
			||||||
#  notifiers.yaml:
 | 
					 | 
				
			||||||
#    notifiers:
 | 
					 | 
				
			||||||
#    - name: email-notifier
 | 
					 | 
				
			||||||
#      type: email
 | 
					 | 
				
			||||||
#      uid: email1
 | 
					 | 
				
			||||||
#      # either:
 | 
					 | 
				
			||||||
#      org_id: 1
 | 
					 | 
				
			||||||
#      # or
 | 
					 | 
				
			||||||
#      org_name: Main Org.
 | 
					 | 
				
			||||||
#      is_default: true
 | 
					 | 
				
			||||||
#      settings:
 | 
					 | 
				
			||||||
#        addresses: an_email_address@example.com
 | 
					 | 
				
			||||||
#    delete_notifiers:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure grafana dashboard providers
 | 
					 | 
				
			||||||
## ref: http://docs.grafana.org/administration/provisioning/#dashboards
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## `path` must be /var/lib/grafana/dashboards/<provider_name>
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
dashboardProviders: {}
 | 
					 | 
				
			||||||
#  dashboardproviders.yaml:
 | 
					 | 
				
			||||||
#    apiVersion: 1
 | 
					 | 
				
			||||||
#    providers:
 | 
					 | 
				
			||||||
#    - name: 'default'
 | 
					 | 
				
			||||||
#      orgId: 1
 | 
					 | 
				
			||||||
#      folder: ''
 | 
					 | 
				
			||||||
#      type: file
 | 
					 | 
				
			||||||
#      disableDeletion: false
 | 
					 | 
				
			||||||
#      editable: true
 | 
					 | 
				
			||||||
#      options:
 | 
					 | 
				
			||||||
#        path: /var/lib/grafana/dashboards/default
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure grafana dashboard to import
 | 
					 | 
				
			||||||
## NOTE: To use dashboards you must also enable/configure dashboardProviders
 | 
					 | 
				
			||||||
## ref: https://grafana.com/dashboards
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## dashboards per provider, use provider name as key.
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
dashboards: {}
 | 
					 | 
				
			||||||
  # default:
 | 
					 | 
				
			||||||
  #   some-dashboard:
 | 
					 | 
				
			||||||
  #     json: |
 | 
					 | 
				
			||||||
  #       $RAW_JSON
 | 
					 | 
				
			||||||
  #   custom-dashboard:
 | 
					 | 
				
			||||||
  #     file: dashboards/custom-dashboard.json
 | 
					 | 
				
			||||||
  #   prometheus-stats:
 | 
					 | 
				
			||||||
  #     gnetId: 2
 | 
					 | 
				
			||||||
  #     revision: 2
 | 
					 | 
				
			||||||
  #     datasource: Prometheus
 | 
					 | 
				
			||||||
  #   local-dashboard:
 | 
					 | 
				
			||||||
  #     url: https://example.com/repository/test.json
 | 
					 | 
				
			||||||
  #     token: ''
 | 
					 | 
				
			||||||
  #   local-dashboard-base64:
 | 
					 | 
				
			||||||
  #     url: https://example.com/repository/test-b64.json
 | 
					 | 
				
			||||||
  #     token: ''
 | 
					 | 
				
			||||||
  #     b64content: true
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dashboardProviders:
 | 
				
			||||||
 | 
					 dashboardproviders.yaml:
 | 
				
			||||||
 | 
					   apiVersion: 1
 | 
				
			||||||
 | 
					   providers:
 | 
				
			||||||
 | 
					   - name: 'default'
 | 
				
			||||||
 | 
					     orgId: 1
 | 
				
			||||||
 | 
					     folder: ''
 | 
				
			||||||
 | 
					     type: file
 | 
				
			||||||
 | 
					     disableDeletion: false
 | 
				
			||||||
 | 
					     editable: true
 | 
				
			||||||
 | 
					     options:
 | 
				
			||||||
 | 
					       path: /var/lib/grafana/dashboards/default
 | 
				
			||||||
## Reference to external ConfigMap per provider. Use provider name as key and ConfigMap name as value.
 | 
					## Reference to external ConfigMap per provider. Use provider name as key and ConfigMap name as value.
 | 
				
			||||||
## A provider dashboards must be defined either by external ConfigMaps or in values.yaml, not in both.
 | 
					## A provider dashboards must be defined either by external ConfigMaps or in values.yaml, not in both.
 | 
				
			||||||
## ConfigMap data example:
 | 
					## ConfigMap data example:
 | 
				
			||||||
@@ -573,301 +58,12 @@ dashboards: {}
 | 
				
			|||||||
##   example-dashboard.json: |
 | 
					##   example-dashboard.json: |
 | 
				
			||||||
##     RAW_JSON
 | 
					##     RAW_JSON
 | 
				
			||||||
##
 | 
					##
 | 
				
			||||||
dashboardsConfigMaps: {}
 | 
					dashboardsConfigMaps:
 | 
				
			||||||
#  default: ""
 | 
					  default: grafana-dashboards
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Grafana's primary configuration
 | 
					 | 
				
			||||||
## NOTE: values in map will be converted to ini format
 | 
					 | 
				
			||||||
## ref: http://docs.grafana.org/installation/configuration/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
grafana.ini:
 | 
					grafana.ini:
 | 
				
			||||||
  paths:
 | 
					  wal: true
 | 
				
			||||||
    data: /var/lib/grafana/
 | 
					  default_theme: dark
 | 
				
			||||||
    logs: /var/log/grafana
 | 
					  unified_alerting:
 | 
				
			||||||
    plugins: /var/lib/grafana/plugins
 | 
					 | 
				
			||||||
    provisioning: /etc/grafana/provisioning
 | 
					 | 
				
			||||||
  analytics:
 | 
					 | 
				
			||||||
    check_for_updates: true
 | 
					 | 
				
			||||||
  log:
 | 
					 | 
				
			||||||
    mode: console
 | 
					 | 
				
			||||||
  grafana_net:
 | 
					 | 
				
			||||||
    url: https://grafana.net
 | 
					 | 
				
			||||||
## grafana Authentication can be enabled with the following values on grafana.ini
 | 
					 | 
				
			||||||
 # server:
 | 
					 | 
				
			||||||
      # The full public facing url you use in browser, used for redirects and emails
 | 
					 | 
				
			||||||
 #    root_url:
 | 
					 | 
				
			||||||
 # https://grafana.com/docs/grafana/latest/auth/github/#enable-github-in-grafana
 | 
					 | 
				
			||||||
 # auth.github:
 | 
					 | 
				
			||||||
 #    enabled: false
 | 
					 | 
				
			||||||
 #    allow_sign_up: false
 | 
					 | 
				
			||||||
 #    scopes: user:email,read:org
 | 
					 | 
				
			||||||
 #    auth_url: https://github.com/login/oauth/authorize
 | 
					 | 
				
			||||||
 #    token_url: https://github.com/login/oauth/access_token
 | 
					 | 
				
			||||||
 #    api_url: https://api.github.com/user
 | 
					 | 
				
			||||||
 #    team_ids:
 | 
					 | 
				
			||||||
 #    allowed_organizations:
 | 
					 | 
				
			||||||
 #    client_id:
 | 
					 | 
				
			||||||
 #    client_secret:
 | 
					 | 
				
			||||||
## LDAP Authentication can be enabled with the following values on grafana.ini
 | 
					 | 
				
			||||||
## NOTE: Grafana will fail to start if the value for ldap.toml is invalid
 | 
					 | 
				
			||||||
  # auth.ldap:
 | 
					 | 
				
			||||||
  #   enabled: true
 | 
					 | 
				
			||||||
  #   allow_sign_up: true
 | 
					 | 
				
			||||||
  #   config_file: /etc/grafana/ldap.toml
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Grafana's LDAP configuration
 | 
					 | 
				
			||||||
## Templated by the template in _helpers.tpl
 | 
					 | 
				
			||||||
## NOTE: To enable the grafana.ini must be configured with auth.ldap.enabled
 | 
					 | 
				
			||||||
## ref: http://docs.grafana.org/installation/configuration/#auth-ldap
 | 
					 | 
				
			||||||
## ref: http://docs.grafana.org/installation/ldap/#configuration
 | 
					 | 
				
			||||||
ldap:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  # `existingSecret` is a reference to an existing secret containing the ldap configuration
 | 
					 | 
				
			||||||
  # for Grafana in a key `ldap-toml`.
 | 
					 | 
				
			||||||
  existingSecret: ""
 | 
					 | 
				
			||||||
  # `config` is the content of `ldap.toml` that will be stored in the created secret
 | 
					 | 
				
			||||||
  config: ""
 | 
					 | 
				
			||||||
  # config: |-
 | 
					 | 
				
			||||||
  #   verbose_logging = true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  #   [[servers]]
 | 
					 | 
				
			||||||
  #   host = "my-ldap-server"
 | 
					 | 
				
			||||||
  #   port = 636
 | 
					 | 
				
			||||||
  #   use_ssl = true
 | 
					 | 
				
			||||||
  #   start_tls = false
 | 
					 | 
				
			||||||
  #   ssl_skip_verify = false
 | 
					 | 
				
			||||||
  #   bind_dn = "uid=%s,ou=users,dc=myorg,dc=com"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Grafana's SMTP configuration
 | 
					 | 
				
			||||||
## NOTE: To enable, grafana.ini must be configured with smtp.enabled
 | 
					 | 
				
			||||||
## ref: http://docs.grafana.org/installation/configuration/#smtp
 | 
					 | 
				
			||||||
smtp:
 | 
					 | 
				
			||||||
  # `existingSecret` is a reference to an existing secret containing the smtp configuration
 | 
					 | 
				
			||||||
  # for Grafana.
 | 
					 | 
				
			||||||
  existingSecret: ""
 | 
					 | 
				
			||||||
  userKey: "user"
 | 
					 | 
				
			||||||
  passwordKey: "password"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders
 | 
					 | 
				
			||||||
## Requires at least Grafana 5 to work and can't be used together with parameters dashboardProviders, datasources and dashboards
 | 
					 | 
				
			||||||
sidecar:
 | 
					 | 
				
			||||||
  image:
 | 
					 | 
				
			||||||
    repository: quay.io/kiwigrid/k8s-sidecar
 | 
					 | 
				
			||||||
    tag: 1.15.6
 | 
					 | 
				
			||||||
    sha: ""
 | 
					 | 
				
			||||||
  imagePullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
  resources: {}
 | 
					 | 
				
			||||||
#   limits:
 | 
					 | 
				
			||||||
#     cpu: 100m
 | 
					 | 
				
			||||||
#     memory: 100Mi
 | 
					 | 
				
			||||||
#   requests:
 | 
					 | 
				
			||||||
#     cpu: 50m
 | 
					 | 
				
			||||||
#     memory: 50Mi
 | 
					 | 
				
			||||||
  securityContext: {}
 | 
					 | 
				
			||||||
  # skipTlsVerify Set to true to skip tls verification for kube api calls
 | 
					 | 
				
			||||||
  # skipTlsVerify: true
 | 
					 | 
				
			||||||
  enableUniqueFilenames: false
 | 
					 | 
				
			||||||
  readinessProbe: {}
 | 
					 | 
				
			||||||
  livenessProbe: {}
 | 
					 | 
				
			||||||
  dashboards:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					    enabled: false
 | 
				
			||||||
    SCProvider: true
 | 
					 | 
				
			||||||
    # label that the configmaps with dashboards are marked with
 | 
					 | 
				
			||||||
    label: grafana_dashboard
 | 
					 | 
				
			||||||
    # value of label that the configmaps with dashboards are set to
 | 
					 | 
				
			||||||
    labelValue: null
 | 
					 | 
				
			||||||
    # folder in the pod that should hold the collected dashboards (unless `defaultFolderName` is set)
 | 
					 | 
				
			||||||
    folder: /tmp/dashboards
 | 
					 | 
				
			||||||
    # The default folder name, it will create a subfolder under the `folder` and put dashboards in there instead
 | 
					 | 
				
			||||||
    defaultFolderName: null
 | 
					 | 
				
			||||||
    # Namespaces list. If specified, the sidecar will search for config-maps/secrets inside these namespaces.
 | 
					 | 
				
			||||||
    # Otherwise the namespace in which the sidecar is running will be used.
 | 
					 | 
				
			||||||
    # It's also possible to specify ALL to search in all namespaces.
 | 
					 | 
				
			||||||
    searchNamespace: null
 | 
					 | 
				
			||||||
    # Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
 | 
					 | 
				
			||||||
    watchMethod: WATCH
 | 
					 | 
				
			||||||
    # search in configmap, secret or both
 | 
					 | 
				
			||||||
    resource: both
 | 
					 | 
				
			||||||
    # If specified, the sidecar will look for annotation with this name to create folder and put graph here.
 | 
					 | 
				
			||||||
    # You can use this parameter together with `provider.foldersFromFilesStructure`to annotate configmaps and create folder structure.
 | 
					 | 
				
			||||||
    folderAnnotation: null
 | 
					 | 
				
			||||||
    # Absolute path to shell script to execute after a configmap got reloaded
 | 
					 | 
				
			||||||
    script: null
 | 
					 | 
				
			||||||
    # watchServerTimeout: request to the server, asking it to cleanly close the connection after that.
 | 
					 | 
				
			||||||
    # defaults to 60sec; much higher values like 3600 seconds (1h) are feasible for non-Azure K8S
 | 
					 | 
				
			||||||
    # watchServerTimeout: 3600
 | 
					 | 
				
			||||||
    #
 | 
					 | 
				
			||||||
    # watchClientTimeout: is a client-side timeout, configuring your local socket.
 | 
					 | 
				
			||||||
    # If you have a network outage dropping all packets with no RST/FIN,
 | 
					 | 
				
			||||||
    # this is how long your client waits before realizing & dropping the connection.
 | 
					 | 
				
			||||||
    # defaults to 66sec (sic!)
 | 
					 | 
				
			||||||
    # watchClientTimeout: 60
 | 
					 | 
				
			||||||
    #
 | 
					 | 
				
			||||||
    # provider configuration that lets grafana manage the dashboards
 | 
					 | 
				
			||||||
    provider:
 | 
					 | 
				
			||||||
      # name of the provider, should be unique
 | 
					 | 
				
			||||||
      name: sidecarProvider
 | 
					 | 
				
			||||||
      # orgid as configured in grafana
 | 
					 | 
				
			||||||
      orgid: 1
 | 
					 | 
				
			||||||
      # folder in which the dashboards should be imported in grafana
 | 
					 | 
				
			||||||
      folder: ''
 | 
					 | 
				
			||||||
      # type of the provider
 | 
					 | 
				
			||||||
      type: file
 | 
					 | 
				
			||||||
      # disableDelete to activate a import-only behaviour
 | 
					 | 
				
			||||||
      disableDelete: false
 | 
					 | 
				
			||||||
      # allow updating provisioned dashboards from the UI
 | 
					 | 
				
			||||||
      allowUiUpdates: false
 | 
					 | 
				
			||||||
      # allow Grafana to replicate dashboard structure from filesystem
 | 
					 | 
				
			||||||
      foldersFromFilesStructure: false
 | 
					 | 
				
			||||||
    # Additional dashboard sidecar volume mounts
 | 
					 | 
				
			||||||
    extraMounts: []
 | 
					 | 
				
			||||||
    # Sets the size limit of the dashboard sidecar emptyDir volume
 | 
					 | 
				
			||||||
    sizeLimit: {}
 | 
					 | 
				
			||||||
  datasources:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
    # label that the configmaps with datasources are marked with
 | 
					 | 
				
			||||||
    label: grafana_datasource
 | 
					 | 
				
			||||||
    # value of label that the configmaps with datasources are set to
 | 
					 | 
				
			||||||
    labelValue: null
 | 
					 | 
				
			||||||
    # If specified, the sidecar will search for datasource config-maps inside this namespace.
 | 
					 | 
				
			||||||
    # Otherwise the namespace in which the sidecar is running will be used.
 | 
					 | 
				
			||||||
    # It's also possible to specify ALL to search in all namespaces
 | 
					 | 
				
			||||||
    searchNamespace: null
 | 
					 | 
				
			||||||
    # Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
 | 
					 | 
				
			||||||
    watchMethod: WATCH
 | 
					 | 
				
			||||||
    # search in configmap, secret or both
 | 
					 | 
				
			||||||
    resource: both
 | 
					 | 
				
			||||||
    # Endpoint to send request to reload datasources
 | 
					 | 
				
			||||||
    reloadURL: "http://localhost:3000/api/admin/provisioning/datasources/reload"
 | 
					 | 
				
			||||||
    skipReload: false
 | 
					 | 
				
			||||||
    # Deploy the datasource sidecar as an initContainer in addition to a container.
 | 
					 | 
				
			||||||
    # This is needed if skipReload is true, to load any datasources defined at startup time.
 | 
					 | 
				
			||||||
    initDatasources: false
 | 
					 | 
				
			||||||
    # Sets the size limit of the datasource sidecar emptyDir volume
 | 
					 | 
				
			||||||
    sizeLimit: {}
 | 
					 | 
				
			||||||
  plugins:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
    # label that the configmaps with plugins are marked with
 | 
					 | 
				
			||||||
    label: grafana_plugin
 | 
					 | 
				
			||||||
    # value of label that the configmaps with plugins are set to
 | 
					 | 
				
			||||||
    labelValue: null
 | 
					 | 
				
			||||||
    # If specified, the sidecar will search for plugin config-maps inside this namespace.
 | 
					 | 
				
			||||||
    # Otherwise the namespace in which the sidecar is running will be used.
 | 
					 | 
				
			||||||
    # It's also possible to specify ALL to search in all namespaces
 | 
					 | 
				
			||||||
    searchNamespace: null
 | 
					 | 
				
			||||||
    # Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds.
 | 
					 | 
				
			||||||
    watchMethod: WATCH
 | 
					 | 
				
			||||||
    # search in configmap, secret or both
 | 
					 | 
				
			||||||
    resource: both
 | 
					 | 
				
			||||||
    # Endpoint to send request to reload plugins
 | 
					 | 
				
			||||||
    reloadURL: "http://localhost:3000/api/admin/provisioning/plugins/reload"
 | 
					 | 
				
			||||||
    skipReload: false
 | 
					 | 
				
			||||||
    # Deploy the datasource sidecar as an initContainer in addition to a container.
 | 
					 | 
				
			||||||
    # This is needed if skipReload is true, to load any plugins defined at startup time.
 | 
					 | 
				
			||||||
    initPlugins: false
 | 
					 | 
				
			||||||
    # Sets the size limit of the plugin sidecar emptyDir volume
 | 
					 | 
				
			||||||
    sizeLimit: {}
 | 
					 | 
				
			||||||
  notifiers:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
    # label that the configmaps with notifiers are marked with
 | 
					 | 
				
			||||||
    label: grafana_notifier
 | 
					 | 
				
			||||||
    # If specified, the sidecar will search for notifier config-maps inside this namespace.
 | 
					 | 
				
			||||||
    # Otherwise the namespace in which the sidecar is running will be used.
 | 
					 | 
				
			||||||
    # It's also possible to specify ALL to search in all namespaces
 | 
					 | 
				
			||||||
    searchNamespace: null
 | 
					 | 
				
			||||||
    # search in configmap, secret or both
 | 
					 | 
				
			||||||
    resource: both
 | 
					 | 
				
			||||||
    # Sets the size limit of the notifier sidecar emptyDir volume
 | 
					 | 
				
			||||||
    sizeLimit: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Override the deployment namespace
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
namespaceOverride: ""
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Number of old ReplicaSets to retain
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
revisionHistoryLimit: 10
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Add a seperate remote image renderer deployment/service
 | 
					 | 
				
			||||||
imageRenderer:
 | 
					 | 
				
			||||||
  # Enable the image-renderer deployment & service
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  replicas: 1
 | 
					 | 
				
			||||||
  image:
 | 
					 | 
				
			||||||
    # image-renderer Image repository
 | 
					 | 
				
			||||||
    repository: grafana/grafana-image-renderer
 | 
					 | 
				
			||||||
    # image-renderer Image tag
 | 
					 | 
				
			||||||
    tag: latest
 | 
					 | 
				
			||||||
    # image-renderer Image sha (optional)
 | 
					 | 
				
			||||||
    sha: ""
 | 
					 | 
				
			||||||
    # image-renderer ImagePullPolicy
 | 
					 | 
				
			||||||
    pullPolicy: Always
 | 
					 | 
				
			||||||
  # extra environment variables
 | 
					 | 
				
			||||||
  env:
 | 
					 | 
				
			||||||
    HTTP_HOST: "0.0.0.0"
 | 
					 | 
				
			||||||
    # RENDERING_ARGS: --no-sandbox,--disable-gpu,--window-size=1280x758
 | 
					 | 
				
			||||||
    # RENDERING_MODE: clustered
 | 
					 | 
				
			||||||
    # IGNORE_HTTPS_ERRORS: true
 | 
					 | 
				
			||||||
  # image-renderer deployment serviceAccount
 | 
					 | 
				
			||||||
  serviceAccountName: ""
 | 
					 | 
				
			||||||
  # image-renderer deployment securityContext
 | 
					 | 
				
			||||||
  securityContext: {}
 | 
					 | 
				
			||||||
  # image-renderer deployment Host Aliases
 | 
					 | 
				
			||||||
  hostAliases: []
 | 
					 | 
				
			||||||
  # image-renderer deployment priority class
 | 
					 | 
				
			||||||
  priorityClassName: ''
 | 
					 | 
				
			||||||
  service:
 | 
					 | 
				
			||||||
    # Enable the image-renderer service
 | 
					 | 
				
			||||||
    enabled: true
 | 
					 | 
				
			||||||
    # image-renderer service port name
 | 
					 | 
				
			||||||
    portName: 'http'
 | 
					 | 
				
			||||||
    # image-renderer service port used by both service and deployment
 | 
					 | 
				
			||||||
    port: 8081
 | 
					 | 
				
			||||||
    targetPort: 8081
 | 
					 | 
				
			||||||
  # If https is enabled in Grafana, this needs to be set as 'https' to correctly configure the callback used in Grafana
 | 
					 | 
				
			||||||
  grafanaProtocol: http
 | 
					 | 
				
			||||||
  # In case a sub_path is used this needs to be added to the image renderer callback
 | 
					 | 
				
			||||||
  grafanaSubPath: ""
 | 
					 | 
				
			||||||
  # name of the image-renderer port on the pod
 | 
					 | 
				
			||||||
  podPortName: http
 | 
					 | 
				
			||||||
  # number of image-renderer replica sets to keep
 | 
					 | 
				
			||||||
  revisionHistoryLimit: 10
 | 
					 | 
				
			||||||
  networkPolicy:
 | 
					 | 
				
			||||||
    # Enable a NetworkPolicy to limit inbound traffic to only the created grafana pods
 | 
					 | 
				
			||||||
    limitIngress: true
 | 
					 | 
				
			||||||
    # Enable a NetworkPolicy to limit outbound traffic to only the created grafana pods
 | 
					 | 
				
			||||||
    limitEgress: false
 | 
					 | 
				
			||||||
  resources: {}
 | 
					 | 
				
			||||||
#   limits:
 | 
					 | 
				
			||||||
#     cpu: 100m
 | 
					 | 
				
			||||||
#     memory: 100Mi
 | 
					 | 
				
			||||||
#   requests:
 | 
					 | 
				
			||||||
#     cpu: 50m
 | 
					 | 
				
			||||||
#     memory: 50Mi
 | 
					 | 
				
			||||||
  ## Node labels for pod assignment
 | 
					 | 
				
			||||||
  ## ref: https://kubernetes.io/docs/user-guide/node-selection/
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  nodeSelector: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Tolerations for pod assignment
 | 
					 | 
				
			||||||
  ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  tolerations: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Affinity for pod assignment (evaluated as template)
 | 
					 | 
				
			||||||
  ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  affinity: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Create a dynamic manifests via values:
 | 
					 | 
				
			||||||
extraObjects: []
 | 
					 | 
				
			||||||
  # - apiVersion: "kubernetes-client.io/v1"
 | 
					 | 
				
			||||||
  #   kind: ExternalSecret
 | 
					 | 
				
			||||||
  #   metadata:
 | 
					 | 
				
			||||||
  #     name: grafana-secrets
 | 
					 | 
				
			||||||
  #   spec:
 | 
					 | 
				
			||||||
  #     backendType: gcpSecretsManager
 | 
					 | 
				
			||||||
  #     data:
 | 
					 | 
				
			||||||
  #       - key: grafana-admin-password
 | 
					 | 
				
			||||||
  #         name: adminPassword
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,157 +0,0 @@
 | 
				
			|||||||
## Default values.yaml for Telegraf
 | 
					 | 
				
			||||||
## This is a YAML-formatted file.
 | 
					 | 
				
			||||||
## ref: https://hub.docker.com/r/library/telegraf/tags/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
image:
 | 
					 | 
				
			||||||
  repo: "telegraf"
 | 
					 | 
				
			||||||
  tag: "1.22"
 | 
					 | 
				
			||||||
  pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure resource requests and limits
 | 
					 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
 | 
					 | 
				
			||||||
resources:
 | 
					 | 
				
			||||||
  requests:
 | 
					 | 
				
			||||||
    memory: 256Mi
 | 
					 | 
				
			||||||
    cpu: 0.1
 | 
					 | 
				
			||||||
  limits:
 | 
					 | 
				
			||||||
    memory: 1Gi
 | 
					 | 
				
			||||||
    cpu: 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pod annotations
 | 
					 | 
				
			||||||
podAnnotations: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pod labels
 | 
					 | 
				
			||||||
podLabels: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure args passed to Telegraf containers
 | 
					 | 
				
			||||||
args: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## The name of a secret in the same kubernetes namespace which contains values to
 | 
					 | 
				
			||||||
## be added to the environment (must be manually created)
 | 
					 | 
				
			||||||
## This can be useful for auth tokens, etc.
 | 
					 | 
				
			||||||
# envFromSecret: "telegraf-tokens"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Environment
 | 
					 | 
				
			||||||
env:
 | 
					 | 
				
			||||||
  # This pulls HOSTNAME from the node, not the pod.
 | 
					 | 
				
			||||||
  - name: HOSTNAME
 | 
					 | 
				
			||||||
    valueFrom:
 | 
					 | 
				
			||||||
      fieldRef:
 | 
					 | 
				
			||||||
        fieldPath: spec.nodeName
 | 
					 | 
				
			||||||
  # In test clusters where hostnames are resolved in /etc/hosts on each node,
 | 
					 | 
				
			||||||
  # the HOSTNAME is not resolvable from inside containers
 | 
					 | 
				
			||||||
  # So inject the host IP as well
 | 
					 | 
				
			||||||
  - name: HOSTIP
 | 
					 | 
				
			||||||
    valueFrom:
 | 
					 | 
				
			||||||
      fieldRef:
 | 
					 | 
				
			||||||
        fieldPath: status.hostIP
 | 
					 | 
				
			||||||
  # Mount the host filesystem and set the appropriate env variables.
 | 
					 | 
				
			||||||
  # ref: https://github.com/influxdata/telegraf/blob/master/docs/FAQ.md
 | 
					 | 
				
			||||||
  # HOST_PROC is required by the cpu, disk, diskio, kernel and processes input plugins
 | 
					 | 
				
			||||||
  - name: "HOST_PROC"
 | 
					 | 
				
			||||||
    value: "/hostfs/proc"
 | 
					 | 
				
			||||||
  # HOST_SYS is required by the diskio plugin
 | 
					 | 
				
			||||||
  - name: "HOST_SYS"
 | 
					 | 
				
			||||||
    value: "/hostfs/sys"
 | 
					 | 
				
			||||||
  - name: "HOST_MOUNT_PREFIX"
 | 
					 | 
				
			||||||
    value: "/hostfs"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Add custom volumes and mounts
 | 
					 | 
				
			||||||
# volumes:
 | 
					 | 
				
			||||||
# - name: telegraf-output-influxdb2
 | 
					 | 
				
			||||||
#   configMap:
 | 
					 | 
				
			||||||
#     name: "telegraf-output-influxdb2"
 | 
					 | 
				
			||||||
# mountPoints:
 | 
					 | 
				
			||||||
# - name: telegraf-output-influxdb2
 | 
					 | 
				
			||||||
#   mountPath: /etc/telegraf/conf.d
 | 
					 | 
				
			||||||
#   subPath: influxdb2.conf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Tolerations for pod assignment
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
tolerations: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## If the DaemonSet should run on the host's network namespace
 | 
					 | 
				
			||||||
## hostNetwork: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## If using hostNetwork=true, set dnsPolicy to ClusterFirstWithHostNet
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#
 | 
					 | 
				
			||||||
## dnsPolicy: ClusterFirstWithHostNet
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## If using dnsPolicy=None, set dnsConfig
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
 | 
					 | 
				
			||||||
## dnsConfig:
 | 
					 | 
				
			||||||
##   nameservers:
 | 
					 | 
				
			||||||
##     - 1.2.3.4
 | 
					 | 
				
			||||||
##   searches:
 | 
					 | 
				
			||||||
##     - ns1.svc.cluster-domain.example
 | 
					 | 
				
			||||||
##     - my.dns.search.suffix
 | 
					 | 
				
			||||||
##   options:
 | 
					 | 
				
			||||||
##     - name: ndots
 | 
					 | 
				
			||||||
##       value: "2"
 | 
					 | 
				
			||||||
##     - name: edns0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
rbac:
 | 
					 | 
				
			||||||
  # Specifies whether RBAC resources should be created
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
serviceAccount:
 | 
					 | 
				
			||||||
  # Specifies whether a ServiceAccount should be created
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  # The name of the ServiceAccount to use.
 | 
					 | 
				
			||||||
  # If not set and create is true, a name is generated using the fullname template
 | 
					 | 
				
			||||||
  # name:
 | 
					 | 
				
			||||||
  # Annotations for the ServiceAccount
 | 
					 | 
				
			||||||
  annotations: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Specify priorityClassName
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
 | 
					 | 
				
			||||||
# priorityClassName: system-node-critical
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Specify the pod's SecurityContext, including the OS user and group to run the pod
 | 
					 | 
				
			||||||
podSecurityContext: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
override_config:
 | 
					 | 
				
			||||||
  toml: ~
 | 
					 | 
				
			||||||
  # Provide a literal TOML config
 | 
					 | 
				
			||||||
  # toml: |+
 | 
					 | 
				
			||||||
  #   [global_tags]
 | 
					 | 
				
			||||||
  #     foo = "bar"
 | 
					 | 
				
			||||||
  #   [agent]
 | 
					 | 
				
			||||||
  #     interval = "10s"
 | 
					 | 
				
			||||||
  #   [[inputs.mem]]
 | 
					 | 
				
			||||||
  #   [[outputs.influxdb_v2]]
 | 
					 | 
				
			||||||
  #     urls           = ["https://us-west-2-1.aws.cloud2.influxdata.com"]
 | 
					 | 
				
			||||||
  #     bucket         = "data"
 | 
					 | 
				
			||||||
  #     organization   = "OurCompany"
 | 
					 | 
				
			||||||
  #     token          = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Exposed telegraf configuration
 | 
					 | 
				
			||||||
## ref: https://docs.influxdata.com/telegraf/v1.13/administration/configuration/
 | 
					 | 
				
			||||||
config:
 | 
					 | 
				
			||||||
  # global_tags:
 | 
					 | 
				
			||||||
  #   cluster: "mycluster"
 | 
					 | 
				
			||||||
  agent:
 | 
					 | 
				
			||||||
    interval: "10s"
 | 
					 | 
				
			||||||
    round_interval: true
 | 
					 | 
				
			||||||
    metric_batch_size: 1000
 | 
					 | 
				
			||||||
    metric_buffer_limit: 10000
 | 
					 | 
				
			||||||
    collection_jitter: "0s"
 | 
					 | 
				
			||||||
    flush_interval: "10s"
 | 
					 | 
				
			||||||
    flush_jitter: "0s"
 | 
					 | 
				
			||||||
    precision: ""
 | 
					 | 
				
			||||||
    debug: false
 | 
					 | 
				
			||||||
    quiet: false
 | 
					 | 
				
			||||||
    logfile: ""
 | 
					 | 
				
			||||||
    hostname: "$HOSTNAME"
 | 
					 | 
				
			||||||
    omit_hostname: false
 | 
					 | 
				
			||||||
  outputs:
 | 
					 | 
				
			||||||
    - influxdb_v2:
 | 
					 | 
				
			||||||
        urls:
 | 
					 | 
				
			||||||
          - "http://influxdb-influxdb2.monitoring:80"
 | 
					 | 
				
			||||||
        token: N_jNm1hZTfyhJneTJj2G357mQ7EJdNzdvebjSJX6JkbyaXNup_IAqeYowblMgV8EjLypNvauTl27ewJvI_rbqQ==
 | 
					 | 
				
			||||||
        organization: "influxdata"
 | 
					 | 
				
			||||||
        bucket: "kluster"
 | 
					 | 
				
			||||||
  monitor_self: false
 | 
					 | 
				
			||||||
  docker_endpoint: "unix:///run/k3s/containerd/containerd.sock"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@@ -1,15 +1,10 @@
 | 
				
			|||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
kind: PersistentVolume
 | 
					kind: PersistentVolume
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: influxdb-nfs
 | 
					  name: influxdb-nfs
 | 
				
			||||||
  labels:
 | 
					 | 
				
			||||||
    directory: influxdb
 | 
					 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  # storageClassName: slow
 | 
					 | 
				
			||||||
  capacity:
 | 
					  capacity:
 | 
				
			||||||
    storage: "10Gi"
 | 
					    storage: "10Gi"
 | 
				
			||||||
  # volumeMode: Filesystem
 | 
					 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
    - ReadWriteOnce
 | 
					    - ReadWriteOnce
 | 
				
			||||||
  nfs:
 | 
					  nfs:
 | 
				
			||||||
@@ -27,6 +22,4 @@ spec:
 | 
				
			|||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: "10Gi"
 | 
					      storage: "10Gi"
 | 
				
			||||||
  selector:
 | 
					  volumeName: influxdb-nfs
 | 
				
			||||||
    matchLabels:
 | 
					 | 
				
			||||||
      directory: influxdb
 | 
					 | 
				
			||||||
@@ -1,92 +1,3 @@
 | 
				
			|||||||
image:
 | 
					 | 
				
			||||||
  repository: influxdb
 | 
					 | 
				
			||||||
  tag: 2.3.0-alpine
 | 
					 | 
				
			||||||
  pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Annotations to be added to InfluxDB pods
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
podAnnotations: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Labels to be added to InfluxDB pods
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
podLabels: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
nameOverride: ""
 | 
					 | 
				
			||||||
fullnameOverride: ""
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure resource requests and limits
 | 
					 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
resources: {}
 | 
					 | 
				
			||||||
  # We usually recommend not to specify default resources and to leave this as a conscious
 | 
					 | 
				
			||||||
  # choice for the user. This also increases chances charts run on environments with little
 | 
					 | 
				
			||||||
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
 | 
					 | 
				
			||||||
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
 | 
					 | 
				
			||||||
  # limits:
 | 
					 | 
				
			||||||
  #  cpu: 100m
 | 
					 | 
				
			||||||
  #  memory: 128Mi
 | 
					 | 
				
			||||||
  # requests:
 | 
					 | 
				
			||||||
  #  cpu: 100m
 | 
					 | 
				
			||||||
  #  memory: 128Mi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Node labels for pod assignment
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/user-guide/node-selection/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
nodeSelector: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Tolerations for pod assignment
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
tolerations: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Affinity for pod assignment
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
affinity: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
securityContext: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Customize liveness, readiness and startup probes
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
livenessProbe: {}
 | 
					 | 
				
			||||||
  # path: "/health"
 | 
					 | 
				
			||||||
  # scheme: "HTTP"
 | 
					 | 
				
			||||||
  # initialDelaySeconds: 0
 | 
					 | 
				
			||||||
  # periodSeconds: 10
 | 
					 | 
				
			||||||
  # timeoutSeconds: 1
 | 
					 | 
				
			||||||
  # failureThreshold: 3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
readinessProbe: {}
 | 
					 | 
				
			||||||
  # path: "/health"
 | 
					 | 
				
			||||||
  # scheme: "HTTP"
 | 
					 | 
				
			||||||
  # initialDelaySeconds: 0
 | 
					 | 
				
			||||||
  # periodSeconds: 10
 | 
					 | 
				
			||||||
  # timeoutSeconds: 1
 | 
					 | 
				
			||||||
  # successThreshold: 1
 | 
					 | 
				
			||||||
  # failureThreshold: 3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
startupProbe:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  # path: "/health"
 | 
					 | 
				
			||||||
  # scheme: "HTTP"
 | 
					 | 
				
			||||||
  # initialDelaySeconds: 30
 | 
					 | 
				
			||||||
  # periodSeconds: 5
 | 
					 | 
				
			||||||
  # timeoutSeconds: 1
 | 
					 | 
				
			||||||
  # failureThreshold: 6
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Extra environment variables to configure influxdb
 | 
					 | 
				
			||||||
## e.g.
 | 
					 | 
				
			||||||
# env:
 | 
					 | 
				
			||||||
#   - name: FOO
 | 
					 | 
				
			||||||
#     value: BAR
 | 
					 | 
				
			||||||
#   - name: BAZ
 | 
					 | 
				
			||||||
#     valueFrom:
 | 
					 | 
				
			||||||
#       secretKeyRef:
 | 
					 | 
				
			||||||
#         name: my-secret
 | 
					 | 
				
			||||||
#         key: my-key
 | 
					 | 
				
			||||||
env: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Create default user through docker entrypoint
 | 
					## Create default user through docker entrypoint
 | 
				
			||||||
## Defaults indicated below
 | 
					## Defaults indicated below
 | 
				
			||||||
##
 | 
					##
 | 
				
			||||||
@@ -100,10 +11,6 @@ adminUser:
 | 
				
			|||||||
  password: ""
 | 
					  password: ""
 | 
				
			||||||
  token: ""
 | 
					  token: ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ## The password and token are obtained from an existing secret. The expected
 | 
					 | 
				
			||||||
  ## keys are `admin-password` and `admin-token`.
 | 
					 | 
				
			||||||
  ## If set, the password and token values above are ignored.
 | 
					 | 
				
			||||||
  # existingSecret: influxdb-auth
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Persist data to a persistent volume
 | 
					## Persist data to a persistent volume
 | 
				
			||||||
##
 | 
					##
 | 
				
			||||||
@@ -113,83 +20,7 @@ persistence:
 | 
				
			|||||||
  useExisting: true
 | 
					  useExisting: true
 | 
				
			||||||
  ## Name of existing PVC to be used in the influx deployment
 | 
					  ## Name of existing PVC to be used in the influx deployment
 | 
				
			||||||
  name: influxdb-nfs
 | 
					  name: influxdb-nfs
 | 
				
			||||||
  ## influxdb data Persistent Volume Storage Class
 | 
					 | 
				
			||||||
  ## If defined, storageClassName: <storageClass>
 | 
					 | 
				
			||||||
  ## If set to "-", storageClassName: "", which disables dynamic provisioning
 | 
					 | 
				
			||||||
  ## If undefined (the default) or set to null, no storageClassName spec is
 | 
					 | 
				
			||||||
  ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
 | 
					 | 
				
			||||||
  ##   GKE, AWS & OpenStack)
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  # storageClass: "-"
 | 
					 | 
				
			||||||
  accessMode: ReadWriteOnce
 | 
					 | 
				
			||||||
  size: 10Gi
 | 
					 | 
				
			||||||
  mountPath: /var/lib/influxdb2
 | 
					 | 
				
			||||||
  subPath: ""
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Add custom volume and volumeMounts
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
# volumes:
 | 
					 | 
				
			||||||
#   - name: influxdb2-templates
 | 
					 | 
				
			||||||
#     hostPath:
 | 
					 | 
				
			||||||
#       path: /data/influxdb2-templates
 | 
					 | 
				
			||||||
#       type: Directory
 | 
					 | 
				
			||||||
# mountPoints:
 | 
					 | 
				
			||||||
#   - name: influxdb2-templates
 | 
					 | 
				
			||||||
#     mountPath: /influxdb2-templates
 | 
					 | 
				
			||||||
#     readOnly: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Allow executing custom init scripts
 | 
					 | 
				
			||||||
## If the container finds any files with the .sh extension inside of the
 | 
					 | 
				
			||||||
## /docker-entrypoint-initdb.d folder, it will execute them.
 | 
					 | 
				
			||||||
## When multiple scripts are present, they will be executed in lexical sort order by name.
 | 
					 | 
				
			||||||
## For more details see Custom Initialization Scripts in https://hub.docker.com/_/influxdb
 | 
					 | 
				
			||||||
initScripts:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  scripts:
 | 
					 | 
				
			||||||
    init.sh: |+
 | 
					 | 
				
			||||||
      #!/bin/bash
 | 
					 | 
				
			||||||
      influx apply --force yes -u https://raw.githubusercontent.com/influxdata/community-templates/master/influxdb2_operational_monitoring/influxdb2_operational_monitoring.yml
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Specify a service type
 | 
					 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/services/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
service:
 | 
					 | 
				
			||||||
  type: LoadBalancer
 | 
					 | 
				
			||||||
  loadBalancerIP: 192.168.3.4
 | 
					 | 
				
			||||||
  port: 80
 | 
					 | 
				
			||||||
  targetPort: 8086
 | 
					 | 
				
			||||||
  annotations: {}
 | 
					 | 
				
			||||||
  labels: {}
 | 
					 | 
				
			||||||
  portName: http
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
serviceAccount:
 | 
					 | 
				
			||||||
  # Specifies whether a ServiceAccount should be created
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  # The name of the ServiceAccount to use.
 | 
					 | 
				
			||||||
  # If not set and create is true, a name is generated using the fullname template
 | 
					 | 
				
			||||||
  name:
 | 
					 | 
				
			||||||
  # Annotations for the ServiceAccount
 | 
					 | 
				
			||||||
  annotations: {}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ingress:
 | 
					ingress:
 | 
				
			||||||
  enabled: false
 | 
					  enabled: false
 | 
				
			||||||
  # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
 | 
					 | 
				
			||||||
  # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
 | 
					 | 
				
			||||||
  # className: nginx
 | 
					 | 
				
			||||||
  tls: false
 | 
					 | 
				
			||||||
  # secretName: my-tls-cert # only needed if tls above is true or default certificate is not configured for Nginx
 | 
					 | 
				
			||||||
  hostname: influxdb.foobar.com
 | 
					 | 
				
			||||||
  annotations: {}
 | 
					 | 
				
			||||||
    # kubernetes.io/ingress.class: "nginx"
 | 
					 | 
				
			||||||
    # kubernetes.io/tls-acme: "true"
 | 
					 | 
				
			||||||
  path: /
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pod disruption budget configuration
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
pdb:
 | 
					 | 
				
			||||||
  ## Specifies whether a Pod disruption budget should be created
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  minAvailable: 1
 | 
					 | 
				
			||||||
  # maxUnavailable: 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										20
									
								
								apps/monitoring/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								apps/monitoring/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: monitoring
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resources: 
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - grafana.pvc.yaml
 | 
				
			||||||
 | 
					  # - influxdb.pvc.yaml
 | 
				
			||||||
 | 
					  - grafana.ingress.yaml
 | 
				
			||||||
 | 
					  - grafana-admin.sealedsecret.yaml
 | 
				
			||||||
 | 
					  - dashboards/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					helmCharts:
 | 
				
			||||||
 | 
					  - releaseName: grafana
 | 
				
			||||||
 | 
					    name: grafana
 | 
				
			||||||
 | 
					    repo: https://grafana.github.io/helm-charts
 | 
				
			||||||
 | 
					    version: 7.3.9
 | 
				
			||||||
 | 
					    valuesFile: grafana.values.yaml
 | 
				
			||||||
							
								
								
									
										4
									
								
								apps/monitoring/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/monitoring/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: placeholder
 | 
				
			||||||
@@ -1,167 +0,0 @@
 | 
				
			|||||||
## Default values.yaml for Telegraf
 | 
					 | 
				
			||||||
## This is a YAML-formatted file.
 | 
					 | 
				
			||||||
## ref: https://hub.docker.com/r/library/telegraf/tags/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
replicaCount: 1
 | 
					 | 
				
			||||||
image:
 | 
					 | 
				
			||||||
  repo: "telegraf"
 | 
					 | 
				
			||||||
  tag: "1.25"
 | 
					 | 
				
			||||||
  pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
podAnnotations: {}
 | 
					 | 
				
			||||||
podLabels: {}
 | 
					 | 
				
			||||||
imagePullSecrets: []
 | 
					 | 
				
			||||||
## Configure args passed to Telegraf containers
 | 
					 | 
				
			||||||
args: []
 | 
					 | 
				
			||||||
# The name of a secret in the same kubernetes namespace which contains values to
 | 
					 | 
				
			||||||
# be added to the environment (must be manually created)
 | 
					 | 
				
			||||||
# This can be useful for auth tokens, etc.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# envFromSecret: "telegraf-tokens"
 | 
					 | 
				
			||||||
env:
 | 
					 | 
				
			||||||
  - name: HOSTNAME
 | 
					 | 
				
			||||||
    value: "telegraf-polling-service"
 | 
					 | 
				
			||||||
# An older "volumeMounts" key was previously added which will likely
 | 
					 | 
				
			||||||
# NOT WORK as you expect. Please use this newer configuration.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# volumes:
 | 
					 | 
				
			||||||
# - name: telegraf-output-influxdb2
 | 
					 | 
				
			||||||
#   configMap:
 | 
					 | 
				
			||||||
#     name: "telegraf-output-influxdb2"
 | 
					 | 
				
			||||||
# mountPoints:
 | 
					 | 
				
			||||||
# - name: telegraf-output-influxdb2
 | 
					 | 
				
			||||||
#   mountPath: /etc/telegraf/conf.d
 | 
					 | 
				
			||||||
#   subPath: influxdb2.conf
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Configure resource requests and limits
 | 
					 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
 | 
					 | 
				
			||||||
resources: {}
 | 
					 | 
				
			||||||
# requests:
 | 
					 | 
				
			||||||
#   memory: 128Mi
 | 
					 | 
				
			||||||
#   cpu: 100m
 | 
					 | 
				
			||||||
# limits:
 | 
					 | 
				
			||||||
#   memory: 128Mi
 | 
					 | 
				
			||||||
#   cpu: 100m
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Node labels for pod assignment
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/user-guide/node-selection/
 | 
					 | 
				
			||||||
nodeSelector: {}
 | 
					 | 
				
			||||||
## Affinity for pod assignment
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
affinity: {}
 | 
					 | 
				
			||||||
## Tolerations for pod assignment
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
tolerations: []
 | 
					 | 
				
			||||||
# - key: "key"
 | 
					 | 
				
			||||||
#   operator: "Equal|Exists"
 | 
					 | 
				
			||||||
#   value: "value"
 | 
					 | 
				
			||||||
#   effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
service:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  type: ClusterIP
 | 
					 | 
				
			||||||
  annotations: {}
 | 
					 | 
				
			||||||
rbac:
 | 
					 | 
				
			||||||
  # Specifies whether RBAC resources should be created
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  # Create only for the release namespace or cluster wide (Role vs ClusterRole)
 | 
					 | 
				
			||||||
  clusterWide: false
 | 
					 | 
				
			||||||
  # Rules for the created rule
 | 
					 | 
				
			||||||
  rules: []
 | 
					 | 
				
			||||||
# When using the prometheus input to scrape all pods you need extra rules set to the ClusterRole to be
 | 
					 | 
				
			||||||
# able to scan the pods for scraping labels. The following rules have been taken from:
 | 
					 | 
				
			||||||
# https://github.com/helm/charts/blob/master/stable/prometheus/templates/server-clusterrole.yaml#L8-L46
 | 
					 | 
				
			||||||
#    - apiGroups:
 | 
					 | 
				
			||||||
#        - ""
 | 
					 | 
				
			||||||
#      resources:
 | 
					 | 
				
			||||||
#        - nodes
 | 
					 | 
				
			||||||
#        - nodes/proxy
 | 
					 | 
				
			||||||
#        - nodes/metrics
 | 
					 | 
				
			||||||
#        - services
 | 
					 | 
				
			||||||
#        - endpoints
 | 
					 | 
				
			||||||
#        - pods
 | 
					 | 
				
			||||||
#        - ingresses
 | 
					 | 
				
			||||||
#        - configmaps
 | 
					 | 
				
			||||||
#      verbs:
 | 
					 | 
				
			||||||
#        - get
 | 
					 | 
				
			||||||
#        - list
 | 
					 | 
				
			||||||
#        - watch
 | 
					 | 
				
			||||||
#    - apiGroups:
 | 
					 | 
				
			||||||
#        - "extensions"
 | 
					 | 
				
			||||||
#      resources:
 | 
					 | 
				
			||||||
#        - ingresses/status
 | 
					 | 
				
			||||||
#        - ingresses
 | 
					 | 
				
			||||||
#      verbs:
 | 
					 | 
				
			||||||
#        - get
 | 
					 | 
				
			||||||
#        - list
 | 
					 | 
				
			||||||
#        - watch
 | 
					 | 
				
			||||||
#    - nonResourceURLs:
 | 
					 | 
				
			||||||
#        - "/metrics"
 | 
					 | 
				
			||||||
#      verbs:
 | 
					 | 
				
			||||||
#        - get
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
serviceAccount:
 | 
					 | 
				
			||||||
  # Specifies whether a ServiceAccount should be created
 | 
					 | 
				
			||||||
  create: false
 | 
					 | 
				
			||||||
## Exposed telegraf configuration
 | 
					 | 
				
			||||||
## For full list of possible values see `/docs/all-config-values.yaml` and `/docs/all-config-values.toml`
 | 
					 | 
				
			||||||
## ref: https://docs.influxdata.com/telegraf/v1.1/administration/configuration/
 | 
					 | 
				
			||||||
config:
 | 
					 | 
				
			||||||
  agent:
 | 
					 | 
				
			||||||
    interval: "2m"
 | 
					 | 
				
			||||||
    round_interval: true
 | 
					 | 
				
			||||||
    metric_batch_size: 1000
 | 
					 | 
				
			||||||
    metric_buffer_limit: 10000
 | 
					 | 
				
			||||||
    collection_jitter: "0s"
 | 
					 | 
				
			||||||
    flush_interval: "10s"
 | 
					 | 
				
			||||||
    flush_jitter: "0s"
 | 
					 | 
				
			||||||
    precision: ""
 | 
					 | 
				
			||||||
    debug: false
 | 
					 | 
				
			||||||
    quiet: false
 | 
					 | 
				
			||||||
    logfile: ""
 | 
					 | 
				
			||||||
    hostname: "$HOSTNAME"
 | 
					 | 
				
			||||||
    omit_hostname: false
 | 
					 | 
				
			||||||
  processors:
 | 
					 | 
				
			||||||
    - enum:
 | 
					 | 
				
			||||||
        mapping:
 | 
					 | 
				
			||||||
          field: "status"
 | 
					 | 
				
			||||||
          dest: "status_code"
 | 
					 | 
				
			||||||
          value_mappings:
 | 
					 | 
				
			||||||
            healthy: 1
 | 
					 | 
				
			||||||
            problem: 2
 | 
					 | 
				
			||||||
            critical: 3
 | 
					 | 
				
			||||||
  outputs:
 | 
					 | 
				
			||||||
    - influxdb_v2:
 | 
					 | 
				
			||||||
        urls:
 | 
					 | 
				
			||||||
          - "http://influxdb-influxdb2.monitoring:80"
 | 
					 | 
				
			||||||
        token: We64mk4L4bqYCL77x3fAUSYfOse9Kktyf2eBLyrryG9c3-y8PQFiKPIh9EvSWuq78QSQz6hUcsm7XSFR2Zj1MA==
 | 
					 | 
				
			||||||
        organization: "influxdata"
 | 
					 | 
				
			||||||
        bucket: "homeassistant"
 | 
					 | 
				
			||||||
  inputs:
 | 
					 | 
				
			||||||
    - http:
 | 
					 | 
				
			||||||
        urls:
 | 
					 | 
				
			||||||
          - "http://adguard-home.adguard:3000/control/stats"
 | 
					 | 
				
			||||||
        data_format: "json"
 | 
					 | 
				
			||||||
metrics:
 | 
					 | 
				
			||||||
  health:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
    service_address: "http://:8888"
 | 
					 | 
				
			||||||
    threshold: 5000.0
 | 
					 | 
				
			||||||
  internal:
 | 
					 | 
				
			||||||
    enabled: true
 | 
					 | 
				
			||||||
    collect_memstats: false
 | 
					 | 
				
			||||||
# Lifecycle hooks
 | 
					 | 
				
			||||||
# hooks:
 | 
					 | 
				
			||||||
#   postStart: ["/bin/sh", "-c", "echo Telegraf started"]
 | 
					 | 
				
			||||||
#   preStop: ["/bin/sh", "-c", "sleep 60"]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pod disruption budget configuration
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
pdb:
 | 
					 | 
				
			||||||
  ## Specifies whether a Pod disruption budget should be created
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  minAvailable: 1
 | 
					 | 
				
			||||||
  # maxUnavailable: 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@@ -1,51 +1,7 @@
 | 
				
			|||||||
## Default values.yaml for Telegraf
 | 
					 | 
				
			||||||
## This is a YAML-formatted file.
 | 
					 | 
				
			||||||
## ref: https://hub.docker.com/r/library/telegraf/tags/
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
replicaCount: 1
 | 
					 | 
				
			||||||
image:
 | 
					 | 
				
			||||||
  repo: "telegraf"
 | 
					 | 
				
			||||||
  tag: "1.25"
 | 
					 | 
				
			||||||
  pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
podAnnotations: {}
 | 
					 | 
				
			||||||
podLabels: {}
 | 
					 | 
				
			||||||
imagePullSecrets: []
 | 
					 | 
				
			||||||
## Configure args passed to Telegraf containers
 | 
					 | 
				
			||||||
args: []
 | 
					 | 
				
			||||||
# The name of a secret in the same kubernetes namespace which contains values to
 | 
					 | 
				
			||||||
# be added to the environment (must be manually created)
 | 
					 | 
				
			||||||
# This can be useful for auth tokens, etc.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# envFromSecret: "telegraf-tokens"
 | 
					 | 
				
			||||||
env:
 | 
					env:
 | 
				
			||||||
  - name: HOSTNAME
 | 
					  - name: HOSTNAME
 | 
				
			||||||
    value: "telegraf-speedtest"
 | 
					    value: "telegraf-speedtest"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Configure resource requests and limits
 | 
					 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
 | 
					 | 
				
			||||||
resources: {}
 | 
					 | 
				
			||||||
# requests:
 | 
					 | 
				
			||||||
#   memory: 128Mi
 | 
					 | 
				
			||||||
#   cpu: 100m
 | 
					 | 
				
			||||||
# limits:
 | 
					 | 
				
			||||||
#   memory: 128Mi
 | 
					 | 
				
			||||||
#   cpu: 100m
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Node labels for pod assignment
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/user-guide/node-selection/
 | 
					 | 
				
			||||||
nodeSelector: {}
 | 
					 | 
				
			||||||
## Affinity for pod assignment
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
affinity: {}
 | 
					 | 
				
			||||||
## Tolerations for pod assignment
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
tolerations: []
 | 
					 | 
				
			||||||
# - key: "key"
 | 
					 | 
				
			||||||
#   operator: "Equal|Exists"
 | 
					 | 
				
			||||||
#   value: "value"
 | 
					 | 
				
			||||||
#   effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)"
 | 
					 | 
				
			||||||
service:
 | 
					service:
 | 
				
			||||||
  enabled: false
 | 
					  enabled: false
 | 
				
			||||||
rbac:
 | 
					rbac:
 | 
				
			||||||
@@ -94,17 +50,3 @@ config:
 | 
				
			|||||||
  inputs:
 | 
					  inputs:
 | 
				
			||||||
    - internet_speed:
 | 
					    - internet_speed:
 | 
				
			||||||
        enable_file_download: false
 | 
					        enable_file_download: false
 | 
				
			||||||
 | 
					 | 
				
			||||||
# Lifecycle hooks
 | 
					 | 
				
			||||||
# hooks:
 | 
					 | 
				
			||||||
#   postStart: ["/bin/sh", "-c", "echo Telegraf started"]
 | 
					 | 
				
			||||||
#   preStop: ["/bin/sh", "-c", "sleep 60"]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Pod disruption budget configuration
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
pdb:
 | 
					 | 
				
			||||||
  ## Specifies whether a Pod disruption budget should be created
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  create: true
 | 
					 | 
				
			||||||
  minAvailable: 1
 | 
					 | 
				
			||||||
  # maxUnavailable: 1
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,17 +0,0 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					 | 
				
			||||||
kind: IngressRoute
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: nextcloud
 | 
					 | 
				
			||||||
  name: nextcloud-ingressroute
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  entryPoints:
 | 
					 | 
				
			||||||
    - websecure
 | 
					 | 
				
			||||||
  routes:
 | 
					 | 
				
			||||||
  - match: Host(`nextcloud.kluster.moll.re`)
 | 
					 | 
				
			||||||
    kind: Rule
 | 
					 | 
				
			||||||
    services:
 | 
					 | 
				
			||||||
    - name: nextcloud
 | 
					 | 
				
			||||||
      port: 8080
 | 
					 | 
				
			||||||
  tls:
 | 
					 | 
				
			||||||
    certResolver: default-tls 
 | 
					 | 
				
			||||||
@@ -1,29 +0,0 @@
 | 
				
			|||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolume
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: nextcloud
 | 
					 | 
				
			||||||
  name: nextcloud-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  # storageClassName: fast
 | 
					 | 
				
			||||||
  capacity:
 | 
					 | 
				
			||||||
    storage: "150Gi"
 | 
					 | 
				
			||||||
  # volumeMode: Filesystem
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadWriteOnce
 | 
					 | 
				
			||||||
  nfs:
 | 
					 | 
				
			||||||
    path: /kluster/nextcloud
 | 
					 | 
				
			||||||
    server: 192.168.1.157
 | 
					 | 
				
			||||||
---
 | 
					 | 
				
			||||||
apiVersion: v1
 | 
					 | 
				
			||||||
kind: PersistentVolumeClaim
 | 
					 | 
				
			||||||
metadata:
 | 
					 | 
				
			||||||
  namespace: nextcloud
 | 
					 | 
				
			||||||
  name: nextcloud-nfs
 | 
					 | 
				
			||||||
spec:
 | 
					 | 
				
			||||||
  storageClassName: ""
 | 
					 | 
				
			||||||
  accessModes:
 | 
					 | 
				
			||||||
    - ReadWriteOnce
 | 
					 | 
				
			||||||
  resources:
 | 
					 | 
				
			||||||
    requests:
 | 
					 | 
				
			||||||
      storage: "150Gi"
 | 
					 | 
				
			||||||
  volumeName: nextcloud-nfs
 | 
					 | 
				
			||||||
@@ -1,294 +0,0 @@
 | 
				
			|||||||
## Official nextcloud image version
 | 
					 | 
				
			||||||
## ref: https://hub.docker.com/r/library/nextcloud/tags/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
image:
 | 
					 | 
				
			||||||
  repository: nextcloud
 | 
					 | 
				
			||||||
  tag: "27" # needs to be a string because of the template
 | 
					 | 
				
			||||||
  pullPolicy: IfNotPresent
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
nameOverride: ""
 | 
					 | 
				
			||||||
fullnameOverride: ""
 | 
					 | 
				
			||||||
podAnnotations: {}
 | 
					 | 
				
			||||||
deploymentAnnotations: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Number of replicas to be deployed
 | 
					 | 
				
			||||||
replicaCount: 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Allowing use of ingress controllers
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
ingress:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Allow configuration of lifecycle hooks
 | 
					 | 
				
			||||||
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
 | 
					 | 
				
			||||||
lifecycle: {}
 | 
					 | 
				
			||||||
  # postStartCommand: []
 | 
					 | 
				
			||||||
  # preStopCommand: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
nextcloud:
 | 
					 | 
				
			||||||
  host: nextcloud.kluster.moll.re
 | 
					 | 
				
			||||||
  username: admin
 | 
					 | 
				
			||||||
  password: changeme
 | 
					 | 
				
			||||||
  ## Use an existing secret
 | 
					 | 
				
			||||||
  existingSecret:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
  update: 0
 | 
					 | 
				
			||||||
  # If web server is not binding default port, you can define it
 | 
					 | 
				
			||||||
  # containerPort: 8080
 | 
					 | 
				
			||||||
  datadir: /var/www/html/data
 | 
					 | 
				
			||||||
  persistence:
 | 
					 | 
				
			||||||
    subPath:
 | 
					 | 
				
			||||||
  mail:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
  # PHP Configuration files
 | 
					 | 
				
			||||||
  # Will be injected in /usr/local/etc/php/conf.d for apache image and in /usr/local/etc/php-fpm.d when nginx.enabled: true
 | 
					 | 
				
			||||||
  phpConfigs: {}
 | 
					 | 
				
			||||||
  # Default config files
 | 
					 | 
				
			||||||
  # IMPORTANT: Will be used only if you put extra configs, otherwise default will come from nextcloud itself
 | 
					 | 
				
			||||||
  # Default confgurations can be found here: https://github.com/nextcloud/docker/tree/master/16.0/apache/config
 | 
					 | 
				
			||||||
  defaultConfigs:
 | 
					 | 
				
			||||||
    # To protect /var/www/html/config
 | 
					 | 
				
			||||||
    .htaccess: true
 | 
					 | 
				
			||||||
    # Redis default configuration
 | 
					 | 
				
			||||||
    redis.config.php: true
 | 
					 | 
				
			||||||
    # Apache configuration for rewrite urls
 | 
					 | 
				
			||||||
    apache-pretty-urls.config.php: true
 | 
					 | 
				
			||||||
    # Define APCu as local cache
 | 
					 | 
				
			||||||
    apcu.config.php: true
 | 
					 | 
				
			||||||
    # Apps directory configs
 | 
					 | 
				
			||||||
    apps.config.php: true
 | 
					 | 
				
			||||||
    # Used for auto configure database
 | 
					 | 
				
			||||||
    autoconfig.php: true
 | 
					 | 
				
			||||||
    # SMTP default configuration
 | 
					 | 
				
			||||||
    smtp.config.php: true
 | 
					 | 
				
			||||||
  # Extra config files created in /var/www/html/config/
 | 
					 | 
				
			||||||
  # ref: https://docs.nextcloud.com/server/15/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file
 | 
					 | 
				
			||||||
  configs: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # For example, to use S3 as primary storage
 | 
					 | 
				
			||||||
  # ref: https://docs.nextcloud.com/server/13/admin_manual/configuration_files/primary_storage.html#simple-storage-service-s3
 | 
					 | 
				
			||||||
  #
 | 
					 | 
				
			||||||
  #  configs:
 | 
					 | 
				
			||||||
  #    s3.config.php: |-
 | 
					 | 
				
			||||||
  #      <?php
 | 
					 | 
				
			||||||
  #      $CONFIG = array (
 | 
					 | 
				
			||||||
  #        'objectstore' => array(
 | 
					 | 
				
			||||||
  #          'class' => '\\OC\\Files\\ObjectStore\\S3',
 | 
					 | 
				
			||||||
  #          'arguments' => array(
 | 
					 | 
				
			||||||
  #            'bucket'     => 'my-bucket',
 | 
					 | 
				
			||||||
  #            'autocreate' => true,
 | 
					 | 
				
			||||||
  #            'key'        => 'xxx',
 | 
					 | 
				
			||||||
  #            'secret'     => 'xxx',
 | 
					 | 
				
			||||||
  #            'region'     => 'us-east-1',
 | 
					 | 
				
			||||||
  #            'use_ssl'    => true
 | 
					 | 
				
			||||||
  #          )
 | 
					 | 
				
			||||||
  #        )
 | 
					 | 
				
			||||||
  #      );
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Strategy used to replace old pods
 | 
					 | 
				
			||||||
  ## IMPORTANT: use with care, it is suggested to leave as that for upgrade purposes
 | 
					 | 
				
			||||||
  ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
 | 
					 | 
				
			||||||
  strategy:
 | 
					 | 
				
			||||||
    type: Recreate
 | 
					 | 
				
			||||||
    # type: RollingUpdate
 | 
					 | 
				
			||||||
    # rollingUpdate:
 | 
					 | 
				
			||||||
    #   maxSurge: 1
 | 
					 | 
				
			||||||
    #   maxUnavailable: 0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  ## Extra environment variables
 | 
					 | 
				
			||||||
  extraEnv:
 | 
					 | 
				
			||||||
  #  - name: SOME_SECRET_ENV
 | 
					 | 
				
			||||||
  #    valueFrom:
 | 
					 | 
				
			||||||
  #      secretKeyRef:
 | 
					 | 
				
			||||||
  #        name: nextcloud
 | 
					 | 
				
			||||||
  #        key: secret_key
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Extra mounts for the pods. Example shown is for connecting a legacy NFS volume
 | 
					 | 
				
			||||||
  # to NextCloud pods in Kubernetes. This can then be configured in External Storage
 | 
					 | 
				
			||||||
  extraVolumes:
 | 
					 | 
				
			||||||
  #  - name: nfs
 | 
					 | 
				
			||||||
  #    nfs:
 | 
					 | 
				
			||||||
  #      server: "10.0.0.1"
 | 
					 | 
				
			||||||
  #      path: "/nextcloud_data"
 | 
					 | 
				
			||||||
  #      readOnly: false
 | 
					 | 
				
			||||||
  extraVolumeMounts:
 | 
					 | 
				
			||||||
  #  - name: nfs
 | 
					 | 
				
			||||||
  #    mountPath: "/legacy_data"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  # Extra secuurityContext parameters. For example you may need to define runAsNonRoot directive
 | 
					 | 
				
			||||||
  # extraSecurityContext:
 | 
					 | 
				
			||||||
  #   runAsUser: "33"
 | 
					 | 
				
			||||||
  #   runAsGroup: "33"
 | 
					 | 
				
			||||||
  #   runAsNonRoot: true
 | 
					 | 
				
			||||||
  #   readOnlyRootFilesystem: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
nginx:
 | 
					 | 
				
			||||||
  ## You need to set an fpm version of the image for nextcloud if you want to use nginx!
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  resources: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
internalDatabase:
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
  name: nextcloud
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## External database configuration
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
externalDatabase:
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Supported database engines: mysql or postgresql
 | 
					 | 
				
			||||||
  type: postgresql
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Database host
 | 
					 | 
				
			||||||
  host: postgres-postgresql.postgres
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Database user
 | 
					 | 
				
			||||||
  user: nextcloud
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Database password
 | 
					 | 
				
			||||||
  password: test
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Database name
 | 
					 | 
				
			||||||
  database: nextcloud
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Use a existing secret
 | 
					 | 
				
			||||||
  existingSecret:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
    # secretName: nameofsecret
 | 
					 | 
				
			||||||
    # usernameKey: username
 | 
					 | 
				
			||||||
    # passwordKey: password
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## MariaDB chart configuration
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
mariadb:
 | 
					 | 
				
			||||||
  ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
postgresql:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
## Redis chart configuration
 | 
					 | 
				
			||||||
## for more options see https://github.com/bitnami/charts/tree/master/bitnami/redis
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
redis:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  auth:
 | 
					 | 
				
			||||||
    enabled: true
 | 
					 | 
				
			||||||
    password: 'changeme'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Cronjob to execute Nextcloud background tasks
 | 
					 | 
				
			||||||
## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
cronjob:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  # Nexcl
 | 
					 | 
				
			||||||
service:
 | 
					 | 
				
			||||||
  type: ClusterIP
 | 
					 | 
				
			||||||
  port: 8080
 | 
					 | 
				
			||||||
  loadBalancerIP: nil
 | 
					 | 
				
			||||||
  nodePort: nil
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Enable persistence using Persistent Volume Claims
 | 
					 | 
				
			||||||
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
persistence:
 | 
					 | 
				
			||||||
  # Nextcloud Data (/var/www/html)
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
  annotations: {}
 | 
					 | 
				
			||||||
  ## nextcloud data Persistent Volume Storage Class
 | 
					 | 
				
			||||||
  ## If defined, storageClassName: <storageClass>
 | 
					 | 
				
			||||||
  ## If set to "-", storageClassName: "", which disables dynamic provisioning
 | 
					 | 
				
			||||||
  ## If undefined (the default) or set to null, no storageClassName spec is
 | 
					 | 
				
			||||||
  ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
 | 
					 | 
				
			||||||
  ##   GKE, AWS & OpenStack)
 | 
					 | 
				
			||||||
  ##
 | 
					 | 
				
			||||||
  # storageClass: "-"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## A manually managed Persistent Volume and Claim
 | 
					 | 
				
			||||||
  ## Requires persistence.enabled: true
 | 
					 | 
				
			||||||
  ## If defined, PVC must be created manually before volume will be bound
 | 
					 | 
				
			||||||
  existingClaim: nextcloud-nfs
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  accessMode: ReadWriteOnce
 | 
					 | 
				
			||||||
  size: 150Gi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  ## Use an additional pvc for the data directory rather than a subpath of the default PVC
 | 
					 | 
				
			||||||
  ## Useful to store data on a different storageClass (e.g. on slower disks)
 | 
					 | 
				
			||||||
  nextcloudData:
 | 
					 | 
				
			||||||
    enabled: false
 | 
					 | 
				
			||||||
    subPath:
 | 
					 | 
				
			||||||
    annotations: {}
 | 
					 | 
				
			||||||
    # storageClass: "-"
 | 
					 | 
				
			||||||
    # existingClaim:
 | 
					 | 
				
			||||||
    accessMode: ReadWriteOnce
 | 
					 | 
				
			||||||
    size: 8Gi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
resources:
 | 
					 | 
				
			||||||
  # We usually recommend not to specify default resources and to leave this as a conscious
 | 
					 | 
				
			||||||
  # choice for the user. This also increases chances charts run on environments with little
 | 
					 | 
				
			||||||
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
 | 
					 | 
				
			||||||
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
 | 
					 | 
				
			||||||
  limits:
 | 
					 | 
				
			||||||
   cpu: 2000m
 | 
					 | 
				
			||||||
   memory: 2Gi
 | 
					 | 
				
			||||||
  requests:
 | 
					 | 
				
			||||||
   cpu: 100m
 | 
					 | 
				
			||||||
   memory: 128Mi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Liveness and readiness probe values
 | 
					 | 
				
			||||||
## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
livenessProbe:
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
  initialDelaySeconds: 250
 | 
					 | 
				
			||||||
  periodSeconds: 10
 | 
					 | 
				
			||||||
  timeoutSeconds: 5
 | 
					 | 
				
			||||||
  failureThreshold: 3
 | 
					 | 
				
			||||||
  successThreshold: 1
 | 
					 | 
				
			||||||
readinessProbe:
 | 
					 | 
				
			||||||
  enabled: true
 | 
					 | 
				
			||||||
  initialDelaySeconds: 250
 | 
					 | 
				
			||||||
  periodSeconds: 10
 | 
					 | 
				
			||||||
  timeoutSeconds: 5
 | 
					 | 
				
			||||||
  failureThreshold: 3
 | 
					 | 
				
			||||||
  successThreshold: 1
 | 
					 | 
				
			||||||
startupProbe:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  initialDelaySeconds: 250
 | 
					 | 
				
			||||||
  periodSeconds: 10
 | 
					 | 
				
			||||||
  timeoutSeconds: 5
 | 
					 | 
				
			||||||
  failureThreshold: 30
 | 
					 | 
				
			||||||
  successThreshold: 1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Enable pod autoscaling using HorizontalPodAutoscaler
 | 
					 | 
				
			||||||
## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
hpa:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
nodeSelector: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
tolerations: []
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
affinity: {}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Prometheus Exporter / Metrics
 | 
					 | 
				
			||||||
##
 | 
					 | 
				
			||||||
metrics:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
rbac:
 | 
					 | 
				
			||||||
  enabled: false
 | 
					 | 
				
			||||||
  serviceaccount:
 | 
					 | 
				
			||||||
    create: true
 | 
					 | 
				
			||||||
    name: nextcloud-serviceaccount
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: Middleware
 | 
					kind: Middleware
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: websocket
 | 
					  name: websocket
 | 
				
			||||||
@@ -9,7 +9,7 @@ spec:
 | 
				
			|||||||
      # enable websockets
 | 
					      # enable websockets
 | 
				
			||||||
      Upgrade: "websocket"
 | 
					      Upgrade: "websocket"
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
    name: ntfy-ingressroute
 | 
					    name: ntfy-ingressroute
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,4 +13,4 @@ resources:
 | 
				
			|||||||
images:
 | 
					images:
 | 
				
			||||||
  - name: binwiederhier/ntfy
 | 
					  - name: binwiederhier/ntfy
 | 
				
			||||||
    newName: binwiederhier/ntfy
 | 
					    newName: binwiederhier/ntfy
 | 
				
			||||||
    newTag: v2.8.0
 | 
					    newTag: v2.10.0
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										37
									
								
								apps/recipes/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								apps/recipes/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,37 @@
 | 
				
			|||||||
 | 
					apiVersion: apps/v1
 | 
				
			||||||
 | 
					kind: Deployment
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: mealie
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: mealie
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: mealie
 | 
				
			||||||
 | 
					    spec:
 | 
				
			||||||
 | 
					      containers:
 | 
				
			||||||
 | 
					      - name: mealie
 | 
				
			||||||
 | 
					        image: mealie
 | 
				
			||||||
 | 
					        resources:
 | 
				
			||||||
 | 
					          limits:
 | 
				
			||||||
 | 
					            memory: "500Mi"
 | 
				
			||||||
 | 
					            cpu: "500m"
 | 
				
			||||||
 | 
					        ports:
 | 
				
			||||||
 | 
					        - containerPort: 9000
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          - name: ALLOW_SIGNUP
 | 
				
			||||||
 | 
					            value: "true"
 | 
				
			||||||
 | 
					          - name: TZ
 | 
				
			||||||
 | 
					            value: Europe/Paris
 | 
				
			||||||
 | 
					          - name: BASE_URL
 | 
				
			||||||
 | 
					            value: https://recipes.kluster.moll.re
 | 
				
			||||||
 | 
					        volumeMounts:
 | 
				
			||||||
 | 
					        - name: mealie-data
 | 
				
			||||||
 | 
					          mountPath: /app/data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      volumes:
 | 
				
			||||||
 | 
					      - name: mealie-data
 | 
				
			||||||
 | 
					        persistentVolumeClaim:
 | 
				
			||||||
 | 
					          claimName: mealie
 | 
				
			||||||
							
								
								
									
										16
									
								
								apps/recipes/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/recipes/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
 | 
					kind: IngressRoute
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: mealie-ingressroute
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  entryPoints:
 | 
				
			||||||
 | 
					    - websecure
 | 
				
			||||||
 | 
					  routes:
 | 
				
			||||||
 | 
					    - match: Host(`recipes.kluster.moll.re`)
 | 
				
			||||||
 | 
					      kind: Rule
 | 
				
			||||||
 | 
					      services:
 | 
				
			||||||
 | 
					        - name: mealie-web
 | 
				
			||||||
 | 
					          port: 9000
 | 
				
			||||||
 | 
					  tls:
 | 
				
			||||||
 | 
					    certResolver: default-tls
 | 
				
			||||||
							
								
								
									
										16
									
								
								apps/recipes/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/recipes/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: recipes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - deployment.yaml
 | 
				
			||||||
 | 
					  - pvc.yaml
 | 
				
			||||||
 | 
					  - service.yaml
 | 
				
			||||||
 | 
					  - ingress.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					images:
 | 
				
			||||||
 | 
					  - name: mealie
 | 
				
			||||||
 | 
					    newTag: v1.6.0
 | 
				
			||||||
 | 
					    newName: ghcr.io/mealie-recipes/mealie
 | 
				
			||||||
							
								
								
									
										4
									
								
								apps/recipes/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/recipes/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: placeholder
 | 
				
			||||||
							
								
								
									
										12
									
								
								apps/recipes/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								apps/recipes/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: mealie
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  resources:
 | 
				
			||||||
 | 
					    requests:
 | 
				
			||||||
 | 
					      storage: 5Gi
 | 
				
			||||||
 | 
					  volumeMode: Filesystem
 | 
				
			||||||
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
							
								
								
									
										10
									
								
								apps/recipes/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/recipes/service.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Service
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: mealie-web
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    app: mealie
 | 
				
			||||||
 | 
					  ports:
 | 
				
			||||||
 | 
					  - port: 9000
 | 
				
			||||||
 | 
					    targetPort: 9000
 | 
				
			||||||
@@ -18,9 +18,9 @@ spec:
 | 
				
			|||||||
          ports:
 | 
					          ports:
 | 
				
			||||||
            - containerPort: 7070
 | 
					            - containerPort: 7070
 | 
				
			||||||
          volumeMounts:
 | 
					          volumeMounts:
 | 
				
			||||||
            - name: rss-data
 | 
					            - name: data
 | 
				
			||||||
              mountPath: /data
 | 
					              mountPath: /data
 | 
				
			||||||
      volumes:
 | 
					      volumes:
 | 
				
			||||||
        - name: rss-data
 | 
					        - name: data
 | 
				
			||||||
          persistentVolumeClaim:
 | 
					          persistentVolumeClaim:
 | 
				
			||||||
            claimName: rss-claim
 | 
					            claimName: data
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: rss-ingressroute
 | 
					  name: rss-ingressroute
 | 
				
			||||||
@@ -14,4 +14,3 @@ spec:
 | 
				
			|||||||
          port: 80
 | 
					          port: 80
 | 
				
			||||||
  tls:
 | 
					  tls:
 | 
				
			||||||
    certResolver: default-tls
 | 
					    certResolver: default-tls
 | 
				
			||||||
        
 | 
					 | 
				
			||||||
@@ -1,12 +1,11 @@
 | 
				
			|||||||
kind: PersistentVolumeClaim
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: v1
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: rss-claim
 | 
					  name: data
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  storageClassName: nfs-client
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
  accessModes:
 | 
					  accessModes:
 | 
				
			||||||
    - ReadWriteOnce
 | 
					    - ReadWriteOnce
 | 
				
			||||||
  resources:
 | 
					  resources:
 | 
				
			||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: 1Gi
 | 
					      storage: 1Gi
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								apps/todos/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								apps/todos/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					### Adding a user
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					kubectl exec -it -n todos deployments/todos-vikunja -- /app/vikunja/vikunja user create -u <username> -e "<user-email>"
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Password will be prompted.
 | 
				
			||||||
							
								
								
									
										21
									
								
								apps/todos/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								apps/todos/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
 | 
					kind: IngressRoute
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: todos-ingressroute
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  entryPoints:
 | 
				
			||||||
 | 
					    - websecure
 | 
				
			||||||
 | 
					  routes:
 | 
				
			||||||
 | 
					    - match: Host(`todos.kluster.moll.re`) && PathPrefix(`/api/v1`)
 | 
				
			||||||
 | 
					      kind: Rule
 | 
				
			||||||
 | 
					      services:
 | 
				
			||||||
 | 
					        - name: todos-api
 | 
				
			||||||
 | 
					          port: 3456
 | 
				
			||||||
 | 
					    - match: Host(`todos.kluster.moll.re`) && PathPrefix(`/`)
 | 
				
			||||||
 | 
					      kind: Rule
 | 
				
			||||||
 | 
					      services:
 | 
				
			||||||
 | 
					        - name: todos-frontend
 | 
				
			||||||
 | 
					          port: 80
 | 
				
			||||||
 | 
					  tls:
 | 
				
			||||||
 | 
					    certResolver: default-tls
 | 
				
			||||||
							
								
								
									
										18
									
								
								apps/todos/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								apps/todos/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
 | 
					kind: Kustomization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace: todos
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					resources:
 | 
				
			||||||
 | 
					  - namespace.yaml
 | 
				
			||||||
 | 
					  - pvc.yaml
 | 
				
			||||||
 | 
					  - ingress.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# helmCharts:
 | 
				
			||||||
 | 
					#   - name: vikunja
 | 
				
			||||||
 | 
					#     version: 0.1.5
 | 
				
			||||||
 | 
					#     repo: https://charts.oecis.io
 | 
				
			||||||
 | 
					#     valuesFile: values.yaml
 | 
				
			||||||
 | 
					#     releaseName: todos
 | 
				
			||||||
 | 
					# managed by argocd directly
 | 
				
			||||||
							
								
								
									
										4
									
								
								apps/todos/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/todos/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: Namespace
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: placeholder
 | 
				
			||||||
							
								
								
									
										12
									
								
								apps/todos/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								apps/todos/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: PersistentVolumeClaim
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: data
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  resources:
 | 
				
			||||||
 | 
					    requests:
 | 
				
			||||||
 | 
					      storage: 5Gi
 | 
				
			||||||
 | 
					  volumeMode: Filesystem
 | 
				
			||||||
 | 
					  storageClassName: "nfs-client"
 | 
				
			||||||
 | 
					  accessModes:
 | 
				
			||||||
 | 
					    - ReadWriteOnce
 | 
				
			||||||
							
								
								
									
										51
									
								
								apps/todos/values.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								apps/todos/values.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,51 @@
 | 
				
			|||||||
 | 
					######################
 | 
				
			||||||
 | 
					# VIKUNJA COMPONENTS #
 | 
				
			||||||
 | 
					######################
 | 
				
			||||||
 | 
					# You can find the default values that this `values.yaml` overrides, in the comment at the top of this file.
 | 
				
			||||||
 | 
					api:
 | 
				
			||||||
 | 
					  enabled: true
 | 
				
			||||||
 | 
					  image:
 | 
				
			||||||
 | 
					    tag: 0.22.1
 | 
				
			||||||
 | 
					  persistence:
 | 
				
			||||||
 | 
					    # This is your Vikunja data will live, you can either let
 | 
				
			||||||
 | 
					    # the chart create a new PVC for you or provide an existing one.
 | 
				
			||||||
 | 
					    data:
 | 
				
			||||||
 | 
					      enabled: true
 | 
				
			||||||
 | 
					      existingClaim: data
 | 
				
			||||||
 | 
					      accessMode: ReadWriteOnce
 | 
				
			||||||
 | 
					      size: 10Gi
 | 
				
			||||||
 | 
					      mountPath: /app/vikunja/files
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ingress:
 | 
				
			||||||
 | 
					    main:
 | 
				
			||||||
 | 
					      enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  configMaps:
 | 
				
			||||||
 | 
					    # The configuration for Vikunja's api.
 | 
				
			||||||
 | 
					    # https://vikunja.io/docs/config-options/
 | 
				
			||||||
 | 
					    config:
 | 
				
			||||||
 | 
					      enabled: true
 | 
				
			||||||
 | 
					      data:
 | 
				
			||||||
 | 
					        config.yml: |
 | 
				
			||||||
 | 
					          service:
 | 
				
			||||||
 | 
					              frontendUrl: https://todos.kluster.moll.re
 | 
				
			||||||
 | 
					          database:
 | 
				
			||||||
 | 
					            type: sqlite
 | 
				
			||||||
 | 
					            path: /app/vikunja/files/vikunja.db
 | 
				
			||||||
 | 
					          registration: false
 | 
				
			||||||
 | 
					  env:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					frontend:
 | 
				
			||||||
 | 
					  enabled: true
 | 
				
			||||||
 | 
					  image:
 | 
				
			||||||
 | 
					    tag: 0.22.1
 | 
				
			||||||
 | 
					  ingress:
 | 
				
			||||||
 | 
					    main:
 | 
				
			||||||
 | 
					      enabled: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					postgresql:
 | 
				
			||||||
 | 
					  enabled: false
 | 
				
			||||||
 | 
					redis:
 | 
				
			||||||
 | 
					  enabled: false
 | 
				
			||||||
 | 
					typesense:
 | 
				
			||||||
 | 
					  enabled: false
 | 
				
			||||||
@@ -1,13 +1,15 @@
 | 
				
			|||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  namespace: whoami
 | 
					  namespace: whoami
 | 
				
			||||||
  name: whoami-ingressroute
 | 
					  name: whoami-ingressroute
 | 
				
			||||||
 | 
					  annotations:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  entryPoints:
 | 
					  entryPoints:
 | 
				
			||||||
    - websecure
 | 
					    - websecure
 | 
				
			||||||
  routes:
 | 
					  routes:
 | 
				
			||||||
  - match: Host(`whoami.kluster.moll.re`)
 | 
					  - match: Host(`whoami.kluster.moll.re`) || Host(`homepage.kluster.moll.re`)
 | 
				
			||||||
    kind: Rule
 | 
					    kind: Rule
 | 
				
			||||||
    services:
 | 
					    services:
 | 
				
			||||||
    - name: whoami
 | 
					    - name: whoami
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,7 +12,9 @@ spec:
 | 
				
			|||||||
  destination:
 | 
					  destination:
 | 
				
			||||||
    server: https://kubernetes.default.svc
 | 
					    server: https://kubernetes.default.svc
 | 
				
			||||||
    namespace: argocd
 | 
					    namespace: argocd
 | 
				
			||||||
  syncPolicy:
 | 
					  # syncPolicy:
 | 
				
			||||||
    automated:
 | 
					  #   automated:
 | 
				
			||||||
      prune: true
 | 
					  #     prune: true
 | 
				
			||||||
      # selfHeal: true
 | 
					  #     selfHeal: false
 | 
				
			||||||
 | 
					  # DO NOT AUTO SYNC THE APP OF APPS.
 | 
				
			||||||
 | 
					  # all other apps are auto-synced, but adding new apps should be done manually.
 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: traefik.containo.us/v1alpha1
 | 
					apiVersion: traefik.io/v1alpha1
 | 
				
			||||||
kind: IngressRoute
 | 
					kind: IngressRoute
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
    name: argocd-ingressroute
 | 
					    name: argocd-ingressroute
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								infrastructure/backup/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								infrastructure/backup/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					# How to restore
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					1.  Port forward the rest api for gcloud
 | 
				
			||||||
 | 
					    ```bash
 | 
				
			||||||
 | 
					    kubectl port-forward -n backup service/rclone-gcloud 8000
 | 
				
			||||||
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					2. Load the snapshots locally
 | 
				
			||||||
 | 
					    ```bash
 | 
				
			||||||
 | 
					    restic -r rest:http://127.0.0.1:8000/kluster mount /mnt/restic
 | 
				
			||||||
 | 
					    ```
 | 
				
			||||||
 | 
					    (The password is in a secret)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					3. Copy relevant files to the correct location on the NAS
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
@@ -4,7 +4,7 @@ kind: Kustomization
 | 
				
			|||||||
namespace: backup
 | 
					namespace: backup
 | 
				
			||||||
# nameSuffix: -backup
 | 
					# nameSuffix: -backup
 | 
				
			||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - ../../base
 | 
					  - ../../cronjobs-base
 | 
				
			||||||
  # - ./restic-commands.yaml
 | 
					  # - ./restic-commands.yaml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -3,7 +3,7 @@ kind: Kustomization
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace: backup
 | 
					namespace: backup
 | 
				
			||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - ../../base
 | 
					  - ../../cronjobs-base
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# patch the cronjob args field:
 | 
					# patch the cronjob args field:
 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user