deploy headlamp
This commit is contained in:
37
cluster/applications/headlamp/application.yaml
Normal file
37
cluster/applications/headlamp/application.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Application: skyway
|
||||||
|
# Wave 11 — after monitoring
|
||||||
|
# Kubernetes web UI — token auth now, OIDC via Authentik deferred (parking lot)
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: skyway
|
||||||
|
namespace: argocd
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "11"
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
sources:
|
||||||
|
- repoURL: https://kubernetes-sigs.github.io/headlamp/
|
||||||
|
chart: headlamp
|
||||||
|
targetRevision: 0.42.0
|
||||||
|
helm:
|
||||||
|
valueFiles:
|
||||||
|
- $values/cluster/applications/skyway/values.yaml
|
||||||
|
- repoURL: https://gitea.mk-labs.cloud/rblundon/homelab.git
|
||||||
|
targetRevision: main
|
||||||
|
path: cluster/applications/skyway
|
||||||
|
ref: values
|
||||||
|
directory:
|
||||||
|
exclude: "application.yaml"
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: skyway
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
- ServerSideApply=true
|
||||||
44
cluster/applications/headlamp/httproute.yaml
Normal file
44
cluster/applications/headlamp/httproute.yaml
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# HTTPRoute — Skyway via Cilium Gateway
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: skyway-tls
|
||||||
|
namespace: skyway
|
||||||
|
spec:
|
||||||
|
secretName: skyway-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
kind: ClusterIssuer
|
||||||
|
dnsNames:
|
||||||
|
- skyway.local.mk-labs.cloud
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: skyway
|
||||||
|
namespace: skyway
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/hostname: skyway.local.mk-labs.cloud
|
||||||
|
external-dns.alpha.kubernetes.io/target: "10.1.71.90"
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- group: gateway.networking.k8s.io
|
||||||
|
kind: Gateway
|
||||||
|
name: fastpass-gateway
|
||||||
|
namespace: gateway
|
||||||
|
sectionName: https
|
||||||
|
hostnames:
|
||||||
|
- skyway.local.mk-labs.cloud
|
||||||
|
rules:
|
||||||
|
- matches:
|
||||||
|
- path:
|
||||||
|
type: PathPrefix
|
||||||
|
value: /
|
||||||
|
backendRefs:
|
||||||
|
- group: ""
|
||||||
|
kind: Service
|
||||||
|
name: headlamp
|
||||||
|
port: 80
|
||||||
|
weight: 1
|
||||||
33
cluster/applications/headlamp/values.yaml
Normal file
33
cluster/applications/headlamp/values.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Skyway — Helm Values
|
||||||
|
# Chart: https://kubernetes-sigs.github.io/headlamp/
|
||||||
|
# Version: 0.42.0
|
||||||
|
#
|
||||||
|
# Auth: Token-based (service account) for now.
|
||||||
|
# TODO: Wire OIDC to guest-relations (Authentik) — requires Talos API server
|
||||||
|
# patch to add oidc-issuer-url. See parking lot.
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
config:
|
||||||
|
inCluster: true
|
||||||
|
|
||||||
|
# -- ClusterRoleBinding to cluster-admin for full visibility
|
||||||
|
clusterRoleBinding:
|
||||||
|
create: true
|
||||||
|
clusterRoleName: cluster-admin
|
||||||
|
|
||||||
|
serviceAccount:
|
||||||
|
create: true
|
||||||
|
name: headlamp
|
||||||
|
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 256Mi
|
||||||
|
|
||||||
|
# Ingress handled via HTTPRoute (Cilium Gateway) — disable built-in ingress
|
||||||
|
ingress:
|
||||||
|
enabled: false
|
||||||
Reference in New Issue
Block a user