From 05a6f86f45fd160d247112f2c21730166efa5037 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 22 Feb 2025 21:45:11 -0600 Subject: [PATCH] add site profile --- .../applications/site-profile/Chart.yaml | 28 ++++++++++++++++ .../templates/external-secret.yaml | 23 +++++++++++++ .../applications/site-profile/values.yaml | 32 +++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 clusters/cl01tl/applications/site-profile/Chart.yaml create mode 100644 clusters/cl01tl/applications/site-profile/templates/external-secret.yaml create mode 100644 clusters/cl01tl/applications/site-profile/values.yaml diff --git a/clusters/cl01tl/applications/site-profile/Chart.yaml b/clusters/cl01tl/applications/site-profile/Chart.yaml new file mode 100644 index 000000000..19a21d054 --- /dev/null +++ b/clusters/cl01tl/applications/site-profile/Chart.yaml @@ -0,0 +1,28 @@ +apiVersion: v2 +name: site-profile +version: 1.0.0 +description: Site Profile +keywords: + - site-profile + - astro +home: https://wiki.alexlebens.dev/doc/site-profile-uoqXo94Yzd +sources: + - https://github.com/alexlebens/site-profile + - https://github.com/withastro/astro + - https://github.com/cloudflare/cloudflared + - https://github.com/alexlebens/site-profile/pkgs/container/site-profile + - https://github.com/bjw-s/helm-charts/tree/main/charts/other/app-template + - https://github.com/alexlebens/helm-charts/charts/cloudflared +maintainers: + - name: alexlebens +dependencies: + - name: app-template + alias: site-profile + repository: https://bjw-s.github.io/helm-charts/ + version: 3.6.1 + - name: cloudflared + alias: cloudflared-site + repository: http://alexlebens.github.io/helm-charts + version: 1.13.0 +icon: https://d21zlbwtcn424f.cloudfront.net/icon_white.png +appVersion: 0.5.5 diff --git a/clusters/cl01tl/applications/site-profile/templates/external-secret.yaml b/clusters/cl01tl/applications/site-profile/templates/external-secret.yaml new file mode 100644 index 000000000..94e0e0f0e --- /dev/null +++ b/clusters/cl01tl/applications/site-profile/templates/external-secret.yaml @@ -0,0 +1,23 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: site-profile-cloudflared-api-secret + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: site-profile-cloudflared-api-secret + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: web + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + secretStoreRef: + kind: ClusterSecretStore + name: vault + data: + - secretKey: cf-tunnel-token + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /cloudflare/tunnels/site-profile + metadataPolicy: None + property: token diff --git a/clusters/cl01tl/applications/site-profile/values.yaml b/clusters/cl01tl/applications/site-profile/values.yaml new file mode 100644 index 000000000..ab473959e --- /dev/null +++ b/clusters/cl01tl/applications/site-profile/values.yaml @@ -0,0 +1,32 @@ +site-profile: + global: + fullnameOverride: site-profile + controllers: + main: + type: deployment + replicas: 3 + strategy: Recreate + revisionHistoryLimit: 3 + containers: + main: + image: + repository: ghcr.io/alexlebens/site-profile + tag: 0.6.2 + pullPolicy: IfNotPresent + resources: + requests: + cpu: 10m + memory: 128Mi + serviceAccount: + create: true + service: + main: + controller: main + ports: + http: + port: 80 + targetPort: 4321 + protocol: HTTP +cloudflared-site: + name: cloudflared-site + existingSecretName: site-profile-cloudflared-api-secret