Skip to content

Commit

Permalink
feat(hetzner): enable metrics server
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Nov 12, 2024
1 parent 7a004f8 commit 710aa96
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 17 deletions.
1 change: 0 additions & 1 deletion modules/hetzner/k3s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ module "k3s" {

disable_addons = [
"local-storage",
"metrics-server",
"servicelb",
"traefik"
]
Expand Down
20 changes: 20 additions & 0 deletions registry/clusters/dev/homepage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ spec:
repoURL: https://github.com/mrsimonemms/infrastructure
path: registry/components/homepage
targetRevision: HEAD
kustomize:
patches:
- target:
group: networking.k8s.io
version: v1
kind: Ingress
name: homepage
patch: |-
- op: replace
path: /spec/rules/0/host
value: homepage.simonemms.com
- target:
group: networking.k8s.io
version: v1
kind: Ingress
name: homepage
patch: |-
- op: replace
path: /spec/tls/0/host
value: homepage.simonemms.com
destination:
server: https://kubernetes.default.svc
namespace: homepage
Expand Down
4 changes: 1 addition & 3 deletions registry/components/homepage/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ spec:
controller:
annotations:
configmap.reloader.stakater.com/reload: homepage
replicas: 2
config:
useExistingConfigMap: homepage
enableRbac: true
Expand All @@ -25,8 +24,7 @@ spec:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt
# cert-manager.io/cluster-issuer: letsencrypt-staging
cert-manager.io/cluster-issuer: letsencrypt-staging
ingressClassName: nginx
hosts:
- host: homepage.dev.simonemms.com
Expand Down
35 changes: 22 additions & 13 deletions registry/components/homepage/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,45 @@ metadata:
annotations:
argocd.argoproj.io/sync-wave: "10"
data:
bookmarks.yaml: |
- Developer:
- Github:
- abbr: GH
href: https://github.com
bookmarks.yaml: ""
docker.yaml: ""
kubernetes.yaml: |
mode: cluster
services.yaml: ""
settings.yaml: ""
settings.yaml: |
background:
image: https://images.unsplash.com/photo-1502790671504-542ad42d5189?auto=format&fit=crop&w=2560&q=80
blur: sm
saturate: 50
brightness: 50
opacity: 50
headerStyle: boxed
widgets.yaml: |
- kubernetes:
cluster:
show: true
cpu: true
memory: true
showLabel: true
label: "Cluster"
label: Cluster
nodes:
show: true
cpu: true
memory: true
showLabel: true
# - resources:
# backend: resources
# cpu: true
# expanded: true
# memory: true
- search:
provider: google
provider:
- duckduckgo
- google
focus: true
showSearchSuggestions: true
target: _blank
- openmeteo:
label: Telford, UK
latitude: 52.68
longitude: -2.47
timezone: Europe/London
units: metric
cache: 15
format:
maximumFractionDigits: 1

0 comments on commit 710aa96

Please sign in to comment.