REFACTOR(headlamp): replace k8s-dash with Headlamp

This commit is contained in:
2025-12-29 23:46:16 +09:00
parent e61264265f
commit 5227d9361d
4 changed files with 112 additions and 0 deletions

44
headlamp/argocd.yaml Normal file
View File

@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: headlamp
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
sources:
- repoURL: https://headlamp-k8s.github.io/headlamp
chart: headlamp
targetRevision: 0.25.1
helm:
valueFiles:
- $values/headlamp/helm-values.yaml
- repoURL: https://github.com/Mayne0213/applications.git
targetRevision: main
ref: values
- repoURL: https://github.com/Mayne0213/applications.git
targetRevision: main
path: headlamp
destination:
server: https://kubernetes.default.svc
namespace: headlamp
syncPolicy:
automated:
prune: true
selfHeal: true
allowEmpty: false
syncOptions:
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
managedNamespaceMetadata:
labels:
goldilocks.fairwinds.com/enabled: 'true'
revisionHistoryLimit: 10

40
headlamp/helm-values.yaml Normal file
View File

@@ -0,0 +1,40 @@
# Headlamp Helm Values
replicaCount: 1
image:
registry: ghcr.io
repository: headlamp-k8s/headlamp
tag: ""
pullPolicy: IfNotPresent
serviceAccount:
create: true
name: headlamp
clusterRoleBinding:
create: true
service:
type: ClusterIP
port: 80
resources:
requests:
cpu: 10m
memory: 64Mi
limits:
memory: 128Mi
# Ingress disabled - managed separately
ingress:
enabled: false
# Config
config:
baseURL: ""
oidc:
clientID: ""
clientSecret: ""
issuerURL: ""
scopes: ""

24
headlamp/ingress.yaml Normal file
View File

@@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: headlamp-ingress
namespace: headlamp
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
ingressClassName: traefik
tls:
- hosts:
- kubernetes0213.kro.kr
secretName: headlamp-tls
rules:
- host: kubernetes0213.kro.kr
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: headlamp
port:
number: 80

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ingress.yaml