From 70f41aa9dc6a111fc948004abafad69a22cea211 Mon Sep 17 00:00:00 2001 From: prettysunflower Date: Sat, 31 May 2025 10:58:04 +0200 Subject: [PATCH] apps(glance): Added glance to the deployment --- apps/glance/deployment.yaml | 40 ++++++++++ apps/glance/glance.yml | 142 +++++++++++++++++++++++++++++++++ apps/glance/kustomization.yaml | 7 ++ apps/glance/services.yaml | 13 +++ 4 files changed, 202 insertions(+) create mode 100644 apps/glance/deployment.yaml create mode 100644 apps/glance/glance.yml create mode 100644 apps/glance/kustomization.yaml create mode 100644 apps/glance/services.yaml diff --git a/apps/glance/deployment.yaml b/apps/glance/deployment.yaml new file mode 100644 index 0000000..3b2a1e5 --- /dev/null +++ b/apps/glance/deployment.yaml @@ -0,0 +1,40 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: glance + labels: + app.kubernetes.io/name: glance +spec: + replicas: 2 + selector: + matchLabels: + app.kubernetes.io/name: glance + template: + metadata: + labels: + app.kubernetes.io/name: glance + spec: + volumes: + - name: config + configMap: + name: glance-config + containers: + - image: glanceapp/glance:latest + name: glance + imagePullPolicy: Always + ports: + - containerPort: 8080 + protocol: TCP + volumeMounts: + - name: config + mountPath: /app/config + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + runAsNonRoot: true + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault \ No newline at end of file diff --git a/apps/glance/glance.yml b/apps/glance/glance.yml new file mode 100644 index 0000000..79dd6e8 --- /dev/null +++ b/apps/glance/glance.yml @@ -0,0 +1,142 @@ +pages: + - name: Home + columns: + - size: small + widgets: + - type: calendar + + - type: rss + limit: 10 + collapse-after: 3 + cache: 30m + feeds: + - url: https://piranhaplant1.blogspot.com/feeds/posts/default + - url: https://www.nekomagic.com/feed/ + - url: https://soatok.blog/feed + - url: http://feeds.feedburner.com/PythonInsider + - url: https://blog.thunderbird.net/feed/ + - url: https://usesthis.com/feed.atom + - url: https://xeiaso.net/blog.rss + - url: https://touhou-project.news/feed.rss + - url: http://www.post.japanpost.jp/rss/int.xml + - url: https://www.reddit.com/user/AzulCrescent/submitted/.rss + - url: https://www.reddit.com/user/TheArchiveTerminal/submitted/.rss + - url: https://blog.gitea.com/rss.xml + + - type: twitch-channels + channels: + - a_lillian_ + - princessxen + - barry + - sylvysprit + - The8BitDrummer + - MataraKan + - nyanners + - DougDoug + - Touhou_Replay_Showcase + + - size: full + widgets: + - type: search + search-engine: https://kagi.com/search?token=ygXAizA-9gY.ejxyFYbeHxOWVxBYgxMGtJPmAeu1pi1DCtOVTW5yFd8&q={QUERY} + autofocus: true + - type: hacker-news + - type: bookmarks + groups: + - title: Internal + color: 331 64 52 + links: + - title: Hoarder + url: https://hoarder.remilia.ch + same-tab: true + - title: Actual Budget + url: https://actual.remilia.ch + same-tab: true + + - title: Paperless + url: https://papers.remilia.ch + same-tab: true + + - title: Privatebin + url: https://privatebin.remilia.ch + same-tab: true + + - title: Proxmox + url: https://yuyuko.remilia.ch:8006 + same-tab: true + + - title: Photos + url: https://photos.remilia.ch + same-tab: true + + - title: Portainer + url: https://portainer.remilia.ch + same-tab: true + + - title: Plex + url: https://plex.remilia.ch + same-tab: true + + - title: Koumbit + color: 91 70 40 + links: + - title: IRC + url: https://irc.prettysunflower.moe + same-tab: true + - title: Redmine + url: https://redmine.koumbit.net/ + same-tab: true + - title: kProject + url: https://travail.koumbit.net/node/29390/punches + same-tab: true + - title: Etherpad + url: https://pad.koumbit.net/ + same-tab: true + - title: Wiki + url: https://wiki.koumbit.net/ + same-tab: true + - title: Figurines + color: 10 70 50 + links: + - title: AmiAmi + url: https://www.amiami.com/ + same-tab: true + - title: HPOI + url: https://www.hpoi.net/ + same-tab: true + - title: OurFigureCollection (Suruga-ya) + url: https://ourfigurecollection.moe/surugaya/ + same-tab: true + - title: The Spreadsheet of Insanity + url: https://data.remilia.ch/base/bsemaa6OqPGDk6A5Uch/tblZGRYDwnFCDqnFAld/viwJgLAdhRRzvGpULZR + same-tab: true + + - size: small + widgets: + - type: weather + location: Montréal, Canada + + - type: clock + hour-format: 24h + timezones: + - timezone: Europe/Zurich + label: Genève + - timezone: Asia/Shanghai + label: Shanghai + - timezone: Asia/Tokyo + label: Tokyo + + - type: rss + limit: 10 + collapse-after: 3 + cache: 15m + title: Dynasty Reader updates + feeds: + - url: https://dynasty-scans.com/feed + +theme: + light: true + background-color: 0 0 95 + primary-color: 0 0 10 + positive-color: 175 59 40 + negative-color: 0 90 50 \ No newline at end of file diff --git a/apps/glance/kustomization.yaml b/apps/glance/kustomization.yaml new file mode 100644 index 0000000..5e51684 --- /dev/null +++ b/apps/glance/kustomization.yaml @@ -0,0 +1,7 @@ +resources: +- deployment.yaml +- services.yaml +configMapGenerator: +- name: glance-config + files: + - glance.yml \ No newline at end of file diff --git a/apps/glance/services.yaml b/apps/glance/services.yaml new file mode 100644 index 0000000..e50b030 --- /dev/null +++ b/apps/glance/services.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: glance +spec: + type: ClusterIP + selector: + app.kubernetes.io/name: glance + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + name: http \ No newline at end of file