diff --git a/modules/hetzner/k3s.tf b/modules/hetzner/k3s.tf index 109f634..e051be2 100644 --- a/modules/hetzner/k3s.tf +++ b/modules/hetzner/k3s.tf @@ -49,7 +49,6 @@ module "k3s" { disable_addons = [ "local-storage", - "metrics-server", "servicelb", "traefik" ] diff --git a/registry/clusters/dev/homepage.yaml b/registry/clusters/dev/homepage.yaml index 7310cbd..1ae27c8 100644 --- a/registry/clusters/dev/homepage.yaml +++ b/registry/clusters/dev/homepage.yaml @@ -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 diff --git a/registry/components/homepage/application.yaml b/registry/components/homepage/application.yaml index 51f3bcc..1924101 100644 --- a/registry/components/homepage/application.yaml +++ b/registry/components/homepage/application.yaml @@ -16,7 +16,6 @@ spec: controller: annotations: configmap.reloader.stakater.com/reload: homepage - replicas: 2 config: useExistingConfigMap: homepage enableRbac: true @@ -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 diff --git a/registry/components/homepage/configmap.yaml b/registry/components/homepage/configmap.yaml index 1299b21..a7e12f1 100644 --- a/registry/components/homepage/configmap.yaml +++ b/registry/components/homepage/configmap.yaml @@ -6,16 +6,19 @@ 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: @@ -23,19 +26,25 @@ data: 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