Compare commits

..

43 Commits

Author SHA1 Message Date
f67a5a86f0 Merge pull request #403 from 3dwardch3ng/app/home-assistant
remove home-assistant and flight-tracker services
2024-07-03 00:26:20 +10:00
10ff6539d3 remove home-assistant and flight-tracker services 2024-07-03 00:25:51 +10:00
e1e66145e9 Merge pull request #402 from 3dwardch3ng/app/home-assistant
fixing metadata for core and node-red
2024-07-01 22:40:15 +10:00
40ddba1f5e fixing metadata for core and node-red 2024-07-01 22:39:43 +10:00
54ef0679ea Merge pull request #401 from 3dwardch3ng/app/home-assistant
fix ks issue
2024-07-01 22:06:53 +10:00
a2f83d5ef8 fix ks issue 2024-07-01 22:06:34 +10:00
3aaef980fd Merge pull request #400 from 3dwardch3ng/app/home-assistant
App/home assistant
2024-07-01 21:50:11 +10:00
ec6c7640bd remove flight-tracker 2024-07-01 21:49:52 +10:00
5f38f24fe4 add home assistant 2024-07-01 21:49:15 +10:00
ef261c0d51 Merge pull request #399 from 3dwardch3ng/app/home-assistant
add home assistant addon node-red
2024-07-01 17:51:33 +10:00
bc5f1f78ca add home assistant addon node-red 2024-07-01 17:51:16 +10:00
d8e2d361fc Merge pull request #398 from 3dwardch3ng/app/home-assistant
add home assistant addon node-red
2024-07-01 17:50:58 +10:00
116b74db99 add home assistant addon node-red 2024-07-01 17:50:41 +10:00
b387437752 Merge pull request #397 from 3dwardch3ng/app/home-assistant
App/home assistant
2024-07-01 17:46:33 +10:00
32f7b57854 add home assistant addon node-red 2024-07-01 17:44:23 +10:00
04c2e97b6f add app home assistant core 2024-07-01 16:16:11 +10:00
4c5cbb2cdb Merge pull request #396 from 3dwardch3ng/app/flight-tracker
update image
2024-07-01 12:44:49 +10:00
bf33b6578a update image 2024-07-01 12:44:18 +10:00
b2b129934f Merge pull request #395 from 3dwardch3ng/app/flight-tracker
fix config file path value
2024-06-30 23:13:31 +10:00
ba381c6b49 fix config file path value 2024-06-30 23:13:14 +10:00
00abb1ed32 Merge pull request #394 from 3dwardch3ng/app/flight-tracker
fix incorrect vol names
2024-06-30 23:09:05 +10:00
efb4d0431c fix incorrect vol names 2024-06-30 23:08:46 +10:00
bb3ad74219 Merge pull request #393 from 3dwardch3ng/app/flight-tracker
add name of ports to the service
2024-06-30 23:03:41 +10:00
806dd1458b add name of ports to the service 2024-06-30 23:03:24 +10:00
3abf720f4a Merge pull request #392 from 3dwardch3ng/app/flight-tracker
mount config files
2024-06-30 22:59:39 +10:00
fe00923a02 mount config files 2024-06-30 22:59:22 +10:00
a5b0b29b99 Merge pull request #391 from 3dwardch3ng/app/flight-tracker
add node affinity
2024-06-30 22:45:00 +10:00
fcbe2ddd2b add node affinity 2024-06-30 22:43:56 +10:00
d21cc9aa7d Merge pull request #390 from 3dwardch3ng/app/flight-tracker
add app flight-tracker
2024-06-30 22:36:47 +10:00
52db9e1669 add app flight-tracker 2024-06-30 22:36:12 +10:00
7f2b21b41b Merge pull request #389 from 3dwardch3ng/app/qBittorrent
update volumes for qBittorrent
2024-06-27 19:17:37 +10:00
1a6b123955 update volumes for qBittorrent 2024-06-27 19:17:19 +10:00
b699e6ead4 Merge pull request #388 from 3dwardch3ng/app/qBittorrent
update volumes for qBittorrent
2024-06-27 19:13:30 +10:00
3fb17564af update volumes for qBittorrent 2024-06-27 19:13:02 +10:00
899fa8d65a Merge pull request #387 from 3dwardch3ng/misc
adding ingress for testing
2024-06-27 16:18:43 +10:00
d4dceafb8c adding ingress for testing 2024-06-27 16:18:09 +10:00
afb662491f Merge pull request #386 from 3dwardch3ng/misc
Misc
2024-06-27 15:55:57 +10:00
1ea019717e update values for the kubernetes-event-exporter 2024-06-27 15:55:19 +10:00
6e118f5a3a update local-path-provisioner 2024-06-27 15:38:50 +10:00
d6a43ad78b update config for the kubernetes-event-exporter 2024-06-27 15:11:11 +10:00
250e3bb9bb Merge pull request #385 from 3dwardch3ng/misc
Misc
2024-06-27 14:28:41 +10:00
d6d463e866 adding namespace to the SourceRef for the bitnami 2024-06-27 14:28:19 +10:00
f6544c3ce7 fix local-path-provisioner repo ref branch 2024-06-27 14:25:30 +10:00
9 changed files with 203 additions and 45 deletions

View File

@@ -24,7 +24,9 @@ spec:
port: 8388
config:
persistence:
name: "qbittorrent-config-pvc"
name: config
storageClass: local-path
size: 5Gi
volumeMounts:
- name: qbittorrent-download-pvc
- name: download
mountPath: /download

View File

@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: qbittorrent-config
name: config
namespace: qbittorrent
labels:
type: local
@@ -18,7 +18,7 @@ spec:
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: qbittorrent-config-pvc
name: config
namespace: qbittorrent
nodeAffinity:
required:
@@ -48,7 +48,7 @@ spec:
apiVersion: v1
kind: PersistentVolume
metadata:
name: qbittorrent-download
name: download
namespace: qbittorrent
labels:
type: local
@@ -56,7 +56,7 @@ spec:
storageClassName: local-path
volumeMode: Filesystem
capacity:
storage: 5Gi
storage: 64Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
@@ -65,7 +65,7 @@ spec:
claimRef:
apiVersion: v1
kind: PersistentVolumeClaim
name: qbittorrent-download-pvc
name: download
namespace: qbittorrent
nodeAffinity:
required:
@@ -79,10 +79,10 @@ spec:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: qbittorrent-download-pvc
name: download
namespace: qbittorrent
labels:
name: qbittorrent-download-pvc
name: download
spec:
storageClassName: local-path
volumeMode: Filesystem

View File

@@ -0,0 +1,149 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: local-path-provisioner-service-account
namespace: local-path-storage
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: local-path-provisioner-role
namespace: local-path-storage
rules:
- apiGroups: [ "" ]
resources: [ "pods" ]
verbs: [ "get", "list", "watch", "create", "patch", "update", "delete" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: local-path-provisioner-role
rules:
- apiGroups: [ "" ]
resources: [ "nodes", "persistentvolumeclaims", "configmaps", "pods", "pods/log" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "" ]
resources: [ "persistentvolumes" ]
verbs: [ "get", "list", "watch", "create", "patch", "update", "delete" ]
- apiGroups: [ "" ]
resources: [ "events" ]
verbs: [ "create", "patch" ]
- apiGroups: [ "storage.k8s.io" ]
resources: [ "storageclasses" ]
verbs: [ "get", "list", "watch" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: local-path-provisioner-bind
namespace: local-path-storage
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: local-path-provisioner-role
subjects:
- kind: ServiceAccount
name: local-path-provisioner-service-account
namespace: local-path-storage
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: local-path-provisioner-bind
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: local-path-provisioner-role
subjects:
- kind: ServiceAccount
name: local-path-provisioner-service-account
namespace: local-path-storage
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-path-provisioner
namespace: local-path-storage
spec:
replicas: 1
selector:
matchLabels:
app: local-path-provisioner
template:
metadata:
labels:
app: local-path-provisioner
spec:
serviceAccountName: local-path-provisioner-service-account
containers:
- name: local-path-provisioner
image: rancher/local-path-provisioner:v0.0.28
imagePullPolicy: IfNotPresent
command:
- local-path-provisioner
- --debug
- start
- --config
- /etc/config/config.json
volumeMounts:
- name: config-volume
mountPath: /etc/config/
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CONFIG_MOUNT_PATH
value: /etc/config/
volumes:
- name: config-volume
configMap:
name: local-path-config
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path
provisioner: rancher.io/local-path
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Retain
---
kind: ConfigMap
apiVersion: v1
metadata:
name: local-path-config
namespace: local-path-storage
data:
config.json: |-
{
"nodePathMap": [
{
"node": "DEFAULT_PATH_FOR_NON_LISTED_NODES",
"paths": [
"/opt/local-path-provisioner"]
}
]
}
setup: |-
#!/bin/sh
set -eu
mkdir -m 0777 -p "$VOL_DIR"
teardown: |-
#!/bin/sh
set -eu
rm -rf "$VOL_DIR"
helperPod.yaml: |-
apiVersion: v1
kind: Pod
metadata:
name: helper-pod
spec:
priorityClassName: system-node-critical
tolerations:
- key: node.kubernetes.io/disk-pressure
operator: Exists
effect: NoSchedule
containers:
- name: helper-pod
image: busybox
imagePullPolicy: IfNotPresent

View File

@@ -1,21 +0,0 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: local-path-provisioner
namespace: local-path-storage
spec:
interval: 1h
driftDetection:
mode: enabled
chart:
spec:
chart: local-path-provisioner
version: master-head
sourceRef:
kind: GitRepository
namespace: flux-system
name: local-path-provisioner
interval: 24h
values:
storageClass:
reclaimPolicy: Retain

View File

@@ -16,4 +16,4 @@ spec:
name: flux-system
dependsOn:
- name: namespaces
namespace: flux-system
namespace: flux-system

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: flight-tracker

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: home-assistant

View File

@@ -11,6 +11,7 @@ spec:
sourceRef:
kind: HelmRepository
name: bitnami
namespace: flux-system
interval: 60m
values:
config:
@@ -26,4 +27,36 @@ spec:
name: "{{ .InvolvedObject.Name }}"
namespace: "{{ .Namespace }}"
component: "{{ .Source.Component }}"
host: "{{ .Source.Host }}"
host: "{{ .Source.Host }}"
containerSecurityContext:
enabled: true
runAsNonRoot: false
privileged: true
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
nodeSelector:
kubernetes.io/hostname: rpi5-cluster-node-1
metrics:
enabled: true
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kubernetes-event-exporter-ingress
namespace: prometheus
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "event-exporter.cluster.local"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: kubernetes-event-exporter-metrics
port:
number: 2112

View File

@@ -1,13 +0,0 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: local-path-provisioner
namespace: flux-system
spec:
interval: 5m
ref:
branch: main
secretRef:
name: flux-system
timeout: 60s
url: https://github.com/rancher/local-path-provisioner.git