Skip to content

Commit

Permalink
add gcsim-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
srliao committed Dec 5, 2024
1 parent 4e9e361 commit 466fb5c
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 0 deletions.
20 changes: 20 additions & 0 deletions kubernetes/apps/gcsim/gcsim-assets/app/externalsecret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: gcsim-assets
spec:
secretStoreRef:
kind: ClusterSecretStore
name: onepassword-connect
target:
name: gcsim-assets-secret
template:
engineVersion: v2
data:
SOURCE_HOST: "{{ .SOURCE_HOST }}"
SOURCE_TYPE: "{{ .SOURCE_TYPE }}"
dataFrom:
- extract:
key: gcsim-assets
79 changes: 79 additions & 0 deletions kubernetes/apps/gcsim/gcsim-assets/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.0.4/charts/library/common/values.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app gcsim-assets
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.3.2
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controllers:
gcsim-assets:
annotations:
reloader.stakater.com/auto: "true"
containers:
app:
image:
repository: ghcr.io/genshinsim/assets-develop
tag: nightly@sha256:b7de2c4233f3755f638ca6113dafe786d6ec477244749c0c5660471459884c53
pullPolicy: Always
envFrom:
- secretRef:
name: gcsim-assets-secret
env:
TZ: America/Toronto
CACHE_DIR: /cache
PORT: &port 3000
resources:
requests:
cpu: 10m
memory: 512Mi
limits:
memory: 512Mi
service:
app:
controller: gcsim-assets
ports:
http:
port: *port
ingress:
app:
enabled: true
nameOverride: *app
className: internal
annotations:
hajimari.io/enable: "false"
hosts:
- host: &host '{{ .Release.Name }}.${SECRET_DOMAIN}'
paths:
- path: /
service:
identifier: app
port: http
tls:
- hosts:
- *host

persistence:
assets:
enabled: true
type: emptyDir
globalMounts:
- path: /cache
6 changes: 6 additions & 0 deletions kubernetes/apps/gcsim/gcsim-assets/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./helmrelease.yaml
- ./externalsecret.yaml
23 changes: 23 additions & 0 deletions kubernetes/apps/gcsim/gcsim-assets/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app gcsim-assets
namespace: flux-system
spec:
targetNamespace: gcsim
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/apps/gcsim/gcsim-assets/app
dependsOn:
- name: external-secrets-stores
prune: true
sourceRef:
kind: GitRepository
name: home-kubernetes
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

0 comments on commit 466fb5c

Please sign in to comment.