Skip to content

Commit

Permalink
Setup headlamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Roxedus committed Nov 13, 2024
1 parent 2e0eecd commit 39e100d
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 0 deletions.
54 changes: 54 additions & 0 deletions kubernetes/main/apps/kube-system/headlamp/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app headlamp
spec:
interval: 30m
chart:
spec:
chart: *app
version: 0.26.0
sourceRef:
kind: HelmRepository
name: *app
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
values:
ingress:
enabled: true
ingressClassName: internal
hosts: [headlamp.kube.rostvik.site]
config:
pluginsDir: /build/plugins
initContainers:
- command:
- /bin/sh
- -c
- mkdir -p /build/plugins && cp -r /plugins/* /build/plugins/
image: ghcr.io/headlamp-k8s/headlamp-plugin-flux:latest
imagePullPolicy: Always
name: headlamp-plugins
volumeMounts:
- mountPath: /build/plugins
name: headlamp-plugins
persistentVolumeClaim:
accessModes:
- ReadWriteOnce
enabled: true
size: 1Gi
volumeMounts:
- mountPath: /build/plugins
name: headlamp-plugins
volumes:
- name: headlamp-plugins
persistentVolumeClaim:
claimName: headlamp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
21 changes: 21 additions & 0 deletions kubernetes/main/apps/kube-system/headlamp/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app headlamp
namespace: flux-system
spec:
targetNamespace: kube-system
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/main/apps/kube-system/headlamp/app
prune: true
sourceRef:
kind: GitRepository
name: flux-system
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m
1 change: 1 addition & 0 deletions kubernetes/main/apps/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- ./cilium/ks.yaml
- ./descheduler/ks.yaml
- ./headlamp/ks.yaml
- ./intel-device-plugin/ks.yaml
- ./metrics-server/ks.yaml
- ./node-feature-discovery/ks.yaml
Expand Down
10 changes: 10 additions & 0 deletions kubernetes/main/flux/repositories/helm/headlamp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/source.toolkit.fluxcd.io/helmrepository_v1.json
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: headlamp
namespace: flux-system
spec:
interval: 2h
url: https://headlamp-k8s.github.io/headlamp/

0 comments on commit 39e100d

Please sign in to comment.