Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add netbood.xyz #251

Merged
merged 2 commits into from
Feb 1, 2025
Merged

add netbood.xyz #251

merged 2 commits into from
Feb 1, 2025

Conversation

RonaldPhilipsen
Copy link
Owner

No description provided.

Copy link
Contributor

github-actions bot commented Feb 1, 2025

--- HelmRelease: network/netboot Service: network/netboot-main

+++ HelmRelease: network/netboot Service: network/netboot-main

@@ -0,0 +1,22 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: netboot-main
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+    app.kubernetes.io/service: netboot-main
+spec:
+  type: ClusterIP
+  ports:
+  - port: 3000
+    targetPort: 3000
+    protocol: TCP
+    name: http
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/name: netboot
+
--- HelmRelease: network/netboot Service: network/netboot-tftp

+++ HelmRelease: network/netboot Service: network/netboot-tftp

@@ -0,0 +1,22 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: netboot-tftp
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+    app.kubernetes.io/service: netboot-tftp
+spec:
+  type: NodePort
+  ports:
+  - port: 69
+    targetPort: 69
+    protocol: UDP
+    name: tftp
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/name: netboot
+
--- HelmRelease: network/netboot Service: network/netboot-web

+++ HelmRelease: network/netboot Service: network/netboot-web

@@ -0,0 +1,24 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: netboot-web
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+    app.kubernetes.io/service: netboot-web
+  annotations:
+    io.cilium/lb-ipam-ips: 172.16.20.103
+spec:
+  type: LoadBalancer
+  ports:
+  - port: 80
+    targetPort: 80
+    protocol: TCP
+    name: web
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/name: netboot
+
--- HelmRelease: network/netboot Deployment: network/netboot

+++ HelmRelease: network/netboot Deployment: network/netboot

@@ -0,0 +1,49 @@

+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: netboot
+  labels:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+spec:
+  revisionHistoryLimit: 3
+  replicas: 1
+  strategy:
+    type: Recreate
+  selector:
+    matchLabels:
+      app.kubernetes.io/component: main
+      app.kubernetes.io/name: netboot
+      app.kubernetes.io/instance: netboot
+  template:
+    metadata:
+      labels:
+        app.kubernetes.io/component: main
+        app.kubernetes.io/instance: netboot
+        app.kubernetes.io/name: netboot
+    spec:
+      enableServiceLinks: false
+      serviceAccountName: default
+      automountServiceAccountToken: true
+      hostIPC: false
+      hostNetwork: true
+      hostPID: false
+      dnsPolicy: ClusterFirstWithHostNet
+      containers:
+      - image: ghcr.io/netbootxyz/netbootxyz:0.7.3-nbxyz2
+        name: main
+        volumeMounts:
+        - mountPath: /assets
+          name: assets
+        - mountPath: /config
+          name: config
+      volumes:
+      - emptyDir: {}
+        name: assets
+      - name: config
+        persistentVolumeClaim:
+          claimName: netboot
+
--- HelmRelease: network/netboot Ingress: network/netboot

+++ HelmRelease: network/netboot Ingress: network/netboot

@@ -0,0 +1,32 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: netboot
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+  annotations:
+    external-dns.alpha.kubernetes.io/target: internal...PLACEHOLDER_SECRET_DOMAIN..
+    hajimari.io/appName: Netboot.xyz
+    hajimari.io/enable: 'true'
+    hajimari.io/icon: refresh-auto
+    hajimari.io/info: Network boot system
+spec:
+  ingressClassName: internal
+  tls:
+  - hosts:
+    - netboot...PLACEHOLDER_SECRET_DOMAIN..
+  rules:
+  - host: netboot...PLACEHOLDER_SECRET_DOMAIN..
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: netboot-main
+            port:
+              number: 3000
+

Copy link
Contributor

github-actions bot commented Feb 1, 2025

--- kubernetes/flux/meta Kustomization: flux-system/cluster-meta ConfigMap: flux-system/cluster-settings

+++ kubernetes/flux/meta Kustomization: flux-system/cluster-meta ConfigMap: flux-system/cluster-settings

@@ -1,22 +1,23 @@

 ---
 apiVersion: v1
 data:
   BITTORRENT_IP: 172.16.20.140
-  BLOCKY_IP: 172.16.20.100
   CLUSTER_GATEWAY: 172.16.20.11
   CLUSTER_INGRESS_LAN: 172.16.20.12
   CLUSTER_INGRESS_WAN: 172.16.20.13
   ESPHOME_IP: 172.16.20.131
   GATEWAY_IP: 172.16.20.1
   HA_IP: 172.16.20.130
+  LB_BLOCKY: 172.16.20.100
+  LB_MQTT: 172.16.20.102
+  LB_NETBOOT_XYZ: 172.16.20.103
+  LB_POSTGRES: 172.16.20.101
   MATTER_IP: 172.16.20.132
-  MQTT_IP: 172.16.20.102
   NFS_IP: 172.16.20.7
   OMADA_CONTROLLER_IP: 192.168.0.2
-  POSTGRES_IP: 172.16.20.101
   TIMEZONE: Europe/Amsterdam
 kind: ConfigMap
 metadata:
   labels:
     kustomize.toolkit.fluxcd.io/name: cluster-meta
     kustomize.toolkit.fluxcd.io/namespace: flux-system
--- kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/netboot

+++ kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/netboot

@@ -0,0 +1,35 @@

+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1
+kind: Kustomization
+metadata:
+  labels:
+    kustomize.toolkit.fluxcd.io/name: cluster-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: netboot
+  namespace: flux-system
+spec:
+  commonMetadata:
+    labels:
+      app.kubernetes.io/name: netboot
+  decryption:
+    provider: sops
+    secretRef:
+      name: sops-age
+  interval: 30m
+  path: ./kubernetes/apps/network/netboot/app
+  postBuild:
+    substituteFrom:
+    - kind: ConfigMap
+      name: cluster-settings
+      optional: true
+    - kind: Secret
+      name: cluster-secrets
+      optional: true
+  prune: true
+  sourceRef:
+    kind: GitRepository
+    name: flux-system
+  targetNamespace: network
+  timeout: 5m
+  wait: false
+
--- kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot HelmRelease: network/netboot

+++ kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot HelmRelease: network/netboot

@@ -0,0 +1,92 @@

+---
+apiVersion: helm.toolkit.fluxcd.io/v2
+kind: HelmRelease
+metadata:
+  labels:
+    app.kubernetes.io/name: netboot
+    kustomize.toolkit.fluxcd.io/name: netboot
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: netboot
+  namespace: network
+spec:
+  chart:
+    spec:
+      chart: app-template
+      interval: 15m
+      sourceRef:
+        kind: HelmRepository
+        name: bjw-s
+        namespace: flux-system
+      version: 3.6.1
+  interval: 15m
+  values:
+    controllers:
+      main:
+        containers:
+          main:
+            image:
+              repository: ghcr.io/netbootxyz/netbootxyz
+              tag: 0.7.3-nbxyz2
+    defaultPodOptions:
+      hostNetwork: true
+    ingress:
+      main:
+        annotations:
+          external-dns.alpha.kubernetes.io/target: internal...PLACEHOLDER_SECRET_DOMAIN..
+          hajimari.io/appName: Netboot.xyz
+          hajimari.io/enable: 'true'
+          hajimari.io/icon: refresh-auto
+          hajimari.io/info: Network boot system
+        className: internal
+        enabled: true
+        hosts:
+        - host: netboot...PLACEHOLDER_SECRET_DOMAIN..
+          paths:
+          - path: /
+            pathType: Prefix
+            service:
+              identifier: main
+              port: http
+        tls:
+        - hosts:
+          - netboot...PLACEHOLDER_SECRET_DOMAIN..
+    persistence:
+      assets:
+        enabled: true
+        type: emptyDir
+      config:
+        enabled: true
+        existingClaim: netboot
+    service:
+      main:
+        controller: main
+        ports:
+          http:
+            port: 3000
+      tftp:
+        controller: main
+        enabled: true
+        ports:
+          tftp:
+            enabled: true
+            port: 69
+            primary: false
+            protocol: UDP
+            targetPort: 69
+        primary: false
+        type: NodePort
+      web:
+        annotations:
+          io.cilium/lb-ipam-ips: 172.16.20.103
+        controller: main
+        enabled: true
+        ports:
+          web:
+            enabled: true
+            port: 80
+            primary: false
+            protocol: HTTP
+            targetPort: 80
+        primary: false
+        type: LoadBalancer
+
--- kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot PersistentVolumeClaim: network/netboot

+++ kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot PersistentVolumeClaim: network/netboot

@@ -0,0 +1,18 @@

+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  labels:
+    app.kubernetes.io/name: netboot
+    kustomize.toolkit.fluxcd.io/name: netboot
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: netboot
+  namespace: network
+spec:
+  accessModes:
+  - ReadWriteMany
+  resources:
+    requests:
+      storage: 5Gi
+  storageClassName: nfs-provision
+

Copy link
Contributor

github-actions bot commented Feb 1, 2025

--- HelmRelease: network/netboot Service: network/netboot-main

+++ HelmRelease: network/netboot Service: network/netboot-main

@@ -0,0 +1,22 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: netboot-main
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+    app.kubernetes.io/service: netboot-main
+spec:
+  type: ClusterIP
+  ports:
+  - port: 3000
+    targetPort: 3000
+    protocol: TCP
+    name: http
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/name: netboot
+
--- HelmRelease: network/netboot Service: network/netboot-tftp

+++ HelmRelease: network/netboot Service: network/netboot-tftp

@@ -0,0 +1,22 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: netboot-tftp
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+    app.kubernetes.io/service: netboot-tftp
+spec:
+  type: NodePort
+  ports:
+  - port: 69
+    targetPort: 69
+    protocol: UDP
+    name: tftp
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/name: netboot
+
--- HelmRelease: network/netboot Service: network/netboot-web

+++ HelmRelease: network/netboot Service: network/netboot-web

@@ -0,0 +1,24 @@

+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: netboot-web
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+    app.kubernetes.io/service: netboot-web
+  annotations:
+    io.cilium/lb-ipam-ips: 172.16.20.103
+spec:
+  type: LoadBalancer
+  ports:
+  - port: 80
+    targetPort: 80
+    protocol: TCP
+    name: web
+  selector:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/name: netboot
+
--- HelmRelease: network/netboot Deployment: network/netboot

+++ HelmRelease: network/netboot Deployment: network/netboot

@@ -0,0 +1,49 @@

+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: netboot
+  labels:
+    app.kubernetes.io/component: main
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+spec:
+  revisionHistoryLimit: 3
+  replicas: 1
+  strategy:
+    type: Recreate
+  selector:
+    matchLabels:
+      app.kubernetes.io/component: main
+      app.kubernetes.io/name: netboot
+      app.kubernetes.io/instance: netboot
+  template:
+    metadata:
+      labels:
+        app.kubernetes.io/component: main
+        app.kubernetes.io/instance: netboot
+        app.kubernetes.io/name: netboot
+    spec:
+      enableServiceLinks: false
+      serviceAccountName: default
+      automountServiceAccountToken: true
+      hostIPC: false
+      hostNetwork: true
+      hostPID: false
+      dnsPolicy: ClusterFirstWithHostNet
+      containers:
+      - image: ghcr.io/netbootxyz/netbootxyz:0.7.3-nbxyz2
+        name: main
+        volumeMounts:
+        - mountPath: /assets
+          name: assets
+        - mountPath: /config
+          name: config
+      volumes:
+      - emptyDir: {}
+        name: assets
+      - name: config
+        persistentVolumeClaim:
+          claimName: netboot
+
--- HelmRelease: network/netboot Ingress: network/netboot

+++ HelmRelease: network/netboot Ingress: network/netboot

@@ -0,0 +1,32 @@

+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+  name: netboot
+  labels:
+    app.kubernetes.io/instance: netboot
+    app.kubernetes.io/managed-by: Helm
+    app.kubernetes.io/name: netboot
+  annotations:
+    external-dns.alpha.kubernetes.io/target: internal...PLACEHOLDER_SECRET_DOMAIN..
+    hajimari.io/appName: Netboot.xyz
+    hajimari.io/enable: 'true'
+    hajimari.io/icon: refresh-auto
+    hajimari.io/info: Network boot system
+spec:
+  ingressClassName: internal
+  tls:
+  - hosts:
+    - netboot...PLACEHOLDER_SECRET_DOMAIN..
+  rules:
+  - host: netboot...PLACEHOLDER_SECRET_DOMAIN..
+    http:
+      paths:
+      - path: /
+        pathType: Prefix
+        backend:
+          service:
+            name: netboot-main
+            port:
+              number: 3000
+

Copy link
Contributor

github-actions bot commented Feb 1, 2025

--- kubernetes/flux/meta Kustomization: flux-system/cluster-meta ConfigMap: flux-system/cluster-settings

+++ kubernetes/flux/meta Kustomization: flux-system/cluster-meta ConfigMap: flux-system/cluster-settings

@@ -1,22 +1,23 @@

 ---
 apiVersion: v1
 data:
   BITTORRENT_IP: 172.16.20.140
-  BLOCKY_IP: 172.16.20.100
   CLUSTER_GATEWAY: 172.16.20.11
   CLUSTER_INGRESS_LAN: 172.16.20.12
   CLUSTER_INGRESS_WAN: 172.16.20.13
   ESPHOME_IP: 172.16.20.131
   GATEWAY_IP: 172.16.20.1
   HA_IP: 172.16.20.130
+  LB_BLOCKY: 172.16.20.100
+  LB_MQTT: 172.16.20.102
+  LB_NETBOOT_XYZ: 172.16.20.103
+  LB_POSTGRES: 172.16.20.101
   MATTER_IP: 172.16.20.132
-  MQTT_IP: 172.16.20.102
   NFS_IP: 172.16.20.7
   OMADA_CONTROLLER_IP: 192.168.0.2
-  POSTGRES_IP: 172.16.20.101
   TIMEZONE: Europe/Amsterdam
 kind: ConfigMap
 metadata:
   labels:
     kustomize.toolkit.fluxcd.io/name: cluster-meta
     kustomize.toolkit.fluxcd.io/namespace: flux-system
--- kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/netboot

+++ kubernetes/apps Kustomization: flux-system/cluster-apps Kustomization: flux-system/netboot

@@ -0,0 +1,35 @@

+---
+apiVersion: kustomize.toolkit.fluxcd.io/v1
+kind: Kustomization
+metadata:
+  labels:
+    kustomize.toolkit.fluxcd.io/name: cluster-apps
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: netboot
+  namespace: flux-system
+spec:
+  commonMetadata:
+    labels:
+      app.kubernetes.io/name: netboot
+  decryption:
+    provider: sops
+    secretRef:
+      name: sops-age
+  interval: 30m
+  path: ./kubernetes/apps/network/netboot/app
+  postBuild:
+    substituteFrom:
+    - kind: ConfigMap
+      name: cluster-settings
+      optional: true
+    - kind: Secret
+      name: cluster-secrets
+      optional: true
+  prune: true
+  sourceRef:
+    kind: GitRepository
+    name: flux-system
+  targetNamespace: network
+  timeout: 5m
+  wait: false
+
--- kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot HelmRelease: network/netboot

+++ kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot HelmRelease: network/netboot

@@ -0,0 +1,92 @@

+---
+apiVersion: helm.toolkit.fluxcd.io/v2
+kind: HelmRelease
+metadata:
+  labels:
+    app.kubernetes.io/name: netboot
+    kustomize.toolkit.fluxcd.io/name: netboot
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: netboot
+  namespace: network
+spec:
+  chart:
+    spec:
+      chart: app-template
+      interval: 15m
+      sourceRef:
+        kind: HelmRepository
+        name: bjw-s
+        namespace: flux-system
+      version: 3.6.1
+  interval: 15m
+  values:
+    controllers:
+      main:
+        containers:
+          main:
+            image:
+              repository: ghcr.io/netbootxyz/netbootxyz
+              tag: 0.7.3-nbxyz2
+    defaultPodOptions:
+      hostNetwork: true
+    ingress:
+      main:
+        annotations:
+          external-dns.alpha.kubernetes.io/target: internal...PLACEHOLDER_SECRET_DOMAIN..
+          hajimari.io/appName: Netboot.xyz
+          hajimari.io/enable: 'true'
+          hajimari.io/icon: refresh-auto
+          hajimari.io/info: Network boot system
+        className: internal
+        enabled: true
+        hosts:
+        - host: netboot...PLACEHOLDER_SECRET_DOMAIN..
+          paths:
+          - path: /
+            pathType: Prefix
+            service:
+              identifier: main
+              port: http
+        tls:
+        - hosts:
+          - netboot...PLACEHOLDER_SECRET_DOMAIN..
+    persistence:
+      assets:
+        enabled: true
+        type: emptyDir
+      config:
+        enabled: true
+        existingClaim: netboot
+    service:
+      main:
+        controller: main
+        ports:
+          http:
+            port: 3000
+      tftp:
+        controller: main
+        enabled: true
+        ports:
+          tftp:
+            enabled: true
+            port: 69
+            primary: false
+            protocol: UDP
+            targetPort: 69
+        primary: false
+        type: NodePort
+      web:
+        annotations:
+          io.cilium/lb-ipam-ips: 172.16.20.103
+        controller: main
+        enabled: true
+        ports:
+          web:
+            enabled: true
+            port: 80
+            primary: false
+            protocol: HTTP
+            targetPort: 80
+        primary: false
+        type: LoadBalancer
+
--- kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot PersistentVolumeClaim: network/netboot

+++ kubernetes/apps/network/netboot/app Kustomization: flux-system/netboot PersistentVolumeClaim: network/netboot

@@ -0,0 +1,18 @@

+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  labels:
+    app.kubernetes.io/name: netboot
+    kustomize.toolkit.fluxcd.io/name: netboot
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: netboot
+  namespace: network
+spec:
+  accessModes:
+  - ReadWriteMany
+  resources:
+    requests:
+      storage: 5Gi
+  storageClassName: nfs-provision
+

@RonaldPhilipsen RonaldPhilipsen merged commit b9f49cd into main Feb 1, 2025
5 checks passed
@RonaldPhilipsen RonaldPhilipsen deleted the netboot branch February 1, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant