Skip to content

Commit

Permalink
feat(gimlet): impemented gimlet
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Feb 16, 2024
1 parent 6748a8f commit 78c89ae
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: &app gimlet
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 2.6.0
sourceRef:
kind: HelmRepository
name: bjw-s-charts
namespace: flux-system
install:
createNamespace: true
remediation:
retries: 3
upgrade:
remediation:
retries: 3
values:
controllers:
main:
replicas: 1
pod:
securityContext:
fsGroup: 999
# runAsGroup: 3000
# runAsNonRoot: true
# runAsUser: 1000
# seccompProfile:
# type: RuntimeDefault
containers:
main:
nameOverride: minecraft-bedrock
env:
API_HOST: "http://gimlet.flux-system.svc.cluster.local:9000"
HOST: "http://127.0.0.1:9000"
TZ: ${SETTING_TZ}

image:
repository: ghcr.io/gimlet-io/gimlet
tag: v0.25.0
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true

probes:
startup:
enabled: false
liveness: &probes
enabled: true
custom: true
spec:
httpGet:
path: /
port: &port 9000
scheme: HTTP
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
resources:
requests:
cpu: 200m
memory: 200Mi

service:
main:
ports:
http:
enabled: true
port: 9000
protocol: TCP

persistence:
data:
type: persistentVolumeClaim
existingClaim: gimlet-data
globalMounts:
- path: /var/lib/gimlet-dashboard

ingress:
main:
enabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: flux-system
resources:
- ./persistent-volume-claim.yaml
- ./helm-release.yaml
commonLabels:
app.kubernetes.io/name: gimlet
app.kubernetes.io/instance: gimlet
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gimlet-data
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: ceph-block
16 changes: 16 additions & 0 deletions kubernetes/talos-flux/apps/flux-system/gimlet/flux-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1beta2.json
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: apps-gimlet
namespace: flux-system
spec:
interval: 30m
path: ./kubernetes/talos-flux/apps/flux-system/gimlet/app
prune: true
sourceRef:
kind: GitRepository
name: home-ops
wait: true
timeout: 3m
1 change: 1 addition & 0 deletions kubernetes/talos-flux/apps/flux-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ resources:
# - ./namespace.yaml namespace is part of gotk manifests and will switch reconcile
- ./weave-gitops/flux-sync.yaml
- ./gotk/flux-sync.yaml
- ./gimlet/flux-sync.yaml

0 comments on commit 78c89ae

Please sign in to comment.