Compare commits
11 commits
4d02d60eaf
...
ea295c539c
Author | SHA1 | Date | |
---|---|---|---|
ea295c539c | |||
7768df54fa | |||
9c471209dd | |||
f82340f479 | |||
dc76c069f8 | |||
85cc3d22da | |||
ce9f9cc232 | |||
f6da53ba2b | |||
5c6b01dced | |||
c14fa914f1 | |||
828459af2d |
15 changed files with 3 additions and 320 deletions
|
@ -38,10 +38,6 @@ Below you'll find an overview of the charts and an intro to get you started.
|
||||||
|
|
||||||
🚧 [Attic](charts/attic): Nix Binary Cache server that reduces the time to compile and distribute builds ([intro post](https://discourse.nixos.org/t/introducing-attic-a-self-hostable-nix-binary-cache-server/24343))
|
🚧 [Attic](charts/attic): Nix Binary Cache server that reduces the time to compile and distribute builds ([intro post](https://discourse.nixos.org/t/introducing-attic-a-self-hostable-nix-binary-cache-server/24343))
|
||||||
|
|
||||||
🚧 [paperless-ngx](charts/paperless-ngx): Document management system that transforms your physical documents into a searchable online archive.
|
|
||||||
|
|
||||||
🚧 [Vikunja](charts/vikunja): Todo app with web and dav support.
|
|
||||||
|
|
||||||
🚧 [Matrix Authentication Service](charts/matrix-authentication-service): Matrix auth system implementing MSC3861
|
🚧 [Matrix Authentication Service](charts/matrix-authentication-service): Matrix auth system implementing MSC3861
|
||||||
|
|
||||||
🚧 [Maubot](charts/maubot): Matrix bot system.
|
🚧 [Maubot](charts/maubot): Matrix bot system.
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
# Patterns to ignore when building packages.
|
|
||||||
# This supports shell glob matching, relative path matching, and
|
|
||||||
# negation (prefixed with !). Only one pattern per line.
|
|
||||||
.DS_Store
|
|
||||||
# Common VCS dirs
|
|
||||||
.git/
|
|
||||||
.gitignore
|
|
||||||
.bzr/
|
|
||||||
.bzrignore
|
|
||||||
.hg/
|
|
||||||
.hgignore
|
|
||||||
.svn/
|
|
||||||
# Common backup files
|
|
||||||
*.swp
|
|
||||||
*.bak
|
|
||||||
*.tmp
|
|
||||||
*.orig
|
|
||||||
*~
|
|
||||||
# Various IDEs
|
|
||||||
.project
|
|
||||||
.idea/
|
|
||||||
*.tmproj
|
|
||||||
.vscode/
|
|
|
@ -1,19 +0,0 @@
|
||||||
apiVersion: v2
|
|
||||||
name: clutch
|
|
||||||
description: Extensible platform for infrastructure management
|
|
||||||
type: application
|
|
||||||
version: 0.1.0
|
|
||||||
appVersion: "latest"
|
|
||||||
maintainers:
|
|
||||||
- name: Tommy Skaug
|
|
||||||
email: tommy@skaug.me
|
|
||||||
keywords:
|
|
||||||
- clutch
|
|
||||||
- developer
|
|
||||||
- portal
|
|
||||||
- tracking
|
|
||||||
- index
|
|
||||||
- infrastructure
|
|
||||||
- platform
|
|
||||||
sources:
|
|
||||||
- https://github.com/lyft/clutch
|
|
|
@ -1,51 +0,0 @@
|
||||||
{{/* vim: set filetype=mustache: */}}
|
|
||||||
{{/*
|
|
||||||
Expand the name of the chart.
|
|
||||||
*/}}
|
|
||||||
{{- define "clutch.name" -}}
|
|
||||||
{{- .Values.nameOverride | default .Chart.Name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create a default fully qualified app name.
|
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
|
||||||
*/}}
|
|
||||||
{{- define "clutch.fullname" -}}
|
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Get the correct image tag name
|
|
||||||
*/}}
|
|
||||||
{{- define "clutch.imageTag" -}}
|
|
||||||
{{- .Values.image.tag | default (printf "v%s" .Chart.AppVersion) -}}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
# Define a template for standard labels.
|
|
||||||
{{/*
|
|
||||||
Common labels
|
|
||||||
*/}}
|
|
||||||
{{- define "clutch.labels" -}}
|
|
||||||
helm.sh/chart: {{ include "clutch.chart" . }}
|
|
||||||
app.kubernetes.io/name: {{ include "clutch.fullname" . }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/version: {{ .Chart.Version | quote }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Selector labels
|
|
||||||
*/}}
|
|
||||||
{{- define "clutch.selectorLabels" -}}
|
|
||||||
app.kubernetes.io/name: {{ include "clutch.name" . }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
# Define a template for the chart name and version.
|
|
||||||
{{/*
|
|
||||||
Generate basic labels
|
|
||||||
*/}}
|
|
||||||
{{- define "clutch.chart" -}}
|
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" -}}
|
|
||||||
{{- end }}
|
|
|
@ -1,8 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: clutch-frontend-config
|
|
||||||
data:
|
|
||||||
clutch.config.js: |
|
|
||||||
module.exports = {}
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
name: {{ include "clutch.fullname" . }}-db-init
|
|
||||||
labels:
|
|
||||||
{{- include "clutch.labels" . | nindent 4 }}
|
|
||||||
annotations:
|
|
||||||
"helm.sh/hook": pre-install
|
|
||||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
restartPolicy: Never
|
|
||||||
containers:
|
|
||||||
- name: general-db-init
|
|
||||||
image: "{{ .Values.initContainers.dbInit.image.repository }}:{{ .Values.initContainers.dbInit.image.tag }}"
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: {{ .Values.initContainers.dbInit.existingSecretName }}
|
|
||||||
backoffLimit: 3
|
|
|
@ -1,71 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "clutch.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
{{- include "clutch.selectorLabels" . | nindent 6 }}
|
|
||||||
type: clutch
|
|
||||||
strategy:
|
|
||||||
rollingUpdate:
|
|
||||||
maxSurge: 25%
|
|
||||||
maxUnavailable: 25%
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
annotations:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
|
||||||
{{- include "clutch.selectorLabels" . | nindent 8 }}
|
|
||||||
{{- with .Values.podLabels }}
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
type: clutch
|
|
||||||
spec:
|
|
||||||
serviceAccount: {{ include "clutch.fullname" . }}
|
|
||||||
containers:
|
|
||||||
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
|
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
||||||
command: ["./clutch"]
|
|
||||||
args: ["-c", "/config/clutch-config.yaml"]
|
|
||||||
imagePullPolicy: Always
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
resources:
|
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
|
||||||
volumeMounts:
|
|
||||||
- name: clutch-config-backend
|
|
||||||
mountPath: /config
|
|
||||||
- name: clutch-config-frontend
|
|
||||||
mountPath: /frontend/src/clutch.config.js
|
|
||||||
subPath: clutch.config.js
|
|
||||||
env:
|
|
||||||
- name: BASE_URL
|
|
||||||
value: {{ .Values.config.baseUrl }}
|
|
||||||
volumes:
|
|
||||||
- name: clutch-config-backend
|
|
||||||
secret:
|
|
||||||
secretName: {{ .Values.existingSecretName }}
|
|
||||||
- name: clutch-config-frontend
|
|
||||||
configMap:
|
|
||||||
name: {{ include "clutch.fullname" . }}-frontend-config
|
|
||||||
{{- with .Values.nodeSelector }}
|
|
||||||
nodeSelector:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.affinity }}
|
|
||||||
affinity:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.tolerations }}
|
|
||||||
tolerations:
|
|
||||||
{{- toYaml . | nindent 8 }}
|
|
||||||
{{- end }}
|
|
|
@ -1,15 +0,0 @@
|
||||||
{{- if .Values.prometheus.podmonitor.enabled }}
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: PodMonitor
|
|
||||||
metadata:
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "clutch.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
{{- include "clutch.selectorLabels" . | nindent 6 }}
|
|
||||||
podMetricsEndpoints:
|
|
||||||
- port: metrics
|
|
||||||
path: "/healthcheck"
|
|
||||||
{{- end }}
|
|
|
@ -1,6 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "clutch.labels" . | nindent 4 }}
|
|
|
@ -1,29 +0,0 @@
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["nodes"]
|
|
||||||
verbs: ["list"]
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["pods", "pods/status"]
|
|
||||||
verbs: ["get", "list", "watch", "update"]
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["pods"]
|
|
||||||
verbs: ["delete"]
|
|
||||||
- apiGroups: ["autoscaling"]
|
|
||||||
resources: ["horizontalpodautoscalers", "horizontalpodautoscalers/status"]
|
|
||||||
verbs: ["get", "list", "watch"]
|
|
||||||
- apiGroups: ["autoscaling"]
|
|
||||||
resources: ["horizontalpodautoscalers"]
|
|
||||||
verbs: ["patch", "update"]
|
|
||||||
- apiGroups: ["extensions", "apps"]
|
|
||||||
resources: ["deployments", "deployments/scale", "deployments/status"]
|
|
||||||
verbs: ["get", "list", "watch"]
|
|
||||||
- apiGroups: ["extensions", "apps"]
|
|
||||||
resources: ["deployments/scale"]
|
|
||||||
verbs: ["patch", "update"]
|
|
||||||
- apiGroups: ["extensions", "apps"]
|
|
||||||
resources: ["deployments"]
|
|
||||||
verbs: ["update"]
|
|
|
@ -1,12 +0,0 @@
|
||||||
kind: ClusterRoleBinding
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
metadata:
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
|
@ -1,21 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: {{ include "clutch.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "clutch.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8080
|
|
||||||
name: clutch2
|
|
||||||
- port: 8080
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8080
|
|
||||||
name: clutch
|
|
||||||
selector:
|
|
||||||
selector:
|
|
||||||
{{- include "clutch.selectorLabels" . | nindent 4 }}
|
|
||||||
type: clutch
|
|
|
@ -1,39 +0,0 @@
|
||||||
config:
|
|
||||||
baseUrl: https://infrastructure.252.no
|
|
||||||
|
|
||||||
image:
|
|
||||||
repository: index.docker.io/lyft/clutch
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
|
||||||
tag: "latest"
|
|
||||||
|
|
||||||
existingSecretName: clutch-config-secret
|
|
||||||
|
|
||||||
initContainers:
|
|
||||||
dbInit:
|
|
||||||
image:
|
|
||||||
repository: ghcr.io/onedr0p/postgres-init
|
|
||||||
tag: "16"
|
|
||||||
existingSecretName: clutch-dbinit-secret
|
|
||||||
|
|
||||||
prometheus:
|
|
||||||
podmonitor:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
resources: {}
|
|
||||||
limits:
|
|
||||||
cpu: 500m
|
|
||||||
memory: 768Mi
|
|
||||||
# requests:
|
|
||||||
# cpu: 100m
|
|
||||||
# memory: 128Mi
|
|
||||||
|
|
||||||
nodeSelector: {}
|
|
||||||
|
|
||||||
tolerations: []
|
|
||||||
|
|
||||||
affinity: {}
|
|
||||||
|
|
||||||
podLabels: {}
|
|
||||||
|
|
||||||
podAnnotations: {}
|
|
|
@ -2,6 +2,7 @@ apiVersion: v2
|
||||||
name: dispatch
|
name: dispatch
|
||||||
description: Netflix Dispatch incident management system
|
description: Netflix Dispatch incident management system
|
||||||
version: 0.5.5
|
version: 0.5.5
|
||||||
|
# renovate: image=code.252.no/elk-works/dispatch
|
||||||
appVersion: v20240731
|
appVersion: v20240731
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Tommy Skaug
|
- name: Tommy Skaug
|
||||||
|
|
|
@ -31,7 +31,7 @@ spec:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
dispatch database init || true
|
dispatch database init || true
|
||||||
env: &dispatchEnv
|
env:
|
||||||
- name: MJML_PATH
|
- name: MJML_PATH
|
||||||
value: /node_modules/.bin
|
value: /node_modules/.bin
|
||||||
- name: DISPATCH_UI_URL
|
- name: DISPATCH_UI_URL
|
||||||
|
@ -57,7 +57,7 @@ spec:
|
||||||
imagePullPolicy: {{ coalesce $.Values.image.pullPolicy .pullPolicy }}
|
imagePullPolicy: {{ coalesce $.Values.image.pullPolicy .pullPolicy }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
command: ["dispatch", "database", "upgrade"]
|
command: ["dispatch", "database", "upgrade"]
|
||||||
env: &dispatchEnv
|
env:
|
||||||
- name: MJML_PATH
|
- name: MJML_PATH
|
||||||
value: /node_modules/.bin
|
value: /node_modules/.bin
|
||||||
- name: DISPATCH_UI_URL
|
- name: DISPATCH_UI_URL
|
||||||
|
|
Loading…
Reference in a new issue