Compare commits
42 Commits
cdbcdba25d
...
feature/af
| Author | SHA1 | Date | |
|---|---|---|---|
| ab96719964 | |||
| 0215ecaf87 | |||
| 0eaa9fe774 | |||
| 192e2e869f | |||
| 0fd9936db5 | |||
| 1a9d0fc00c | |||
| a8dfca3c43 | |||
| 42e2bc35a5 | |||
| 7e2e5a56db | |||
| 01279dd023 | |||
| d6ce07a8a0 | |||
| 6eb617086a | |||
| 8137bf8f1b | |||
| 5f1dcaabba | |||
| 37bdb32f43 | |||
| ca15a6497c | |||
| 095d2d6392 | |||
| b2993c9395 | |||
| d7b0f658de | |||
| 391c71729b | |||
| bee5dd0c0b | |||
| 25ab46e69a | |||
| 123412e073 | |||
| 39818887fa | |||
| 0700609568 | |||
| 198b24132e | |||
| f6e45d089b | |||
| 23eab57208 | |||
| a94521f197 | |||
| 38f58d86c9 | |||
| 76d1c51157 | |||
| 7aaeeded89 | |||
| 9b93016f93 | |||
| aaf624bb42 | |||
| 8536d91288 | |||
| 3f62bee199 | |||
| f9f39818a1 | |||
| a73e6dc4db | |||
| 1df7abf987 | |||
| 0e1bb58c24 | |||
| fcd2d2eaa2 | |||
| 455790d3c6 |
58
apps/affine/deployment.yaml
Normal file
58
apps/affine/deployment.yaml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: affine
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: affine
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: affine
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: affine
|
||||||
|
image: affine
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "1"
|
||||||
|
env:
|
||||||
|
- name: AFFINE_SERVER_HOST
|
||||||
|
value: "affine.kluster.moll.re"
|
||||||
|
- name: AFFINE_SERVER_PORT
|
||||||
|
value: "443"
|
||||||
|
- name: AFFINE_SERVER_HTTPS
|
||||||
|
value: "true"
|
||||||
|
- name: AFFINE_CONFIG_PATH
|
||||||
|
value: "/root/.affine/config"
|
||||||
|
- name: AFFINE_ADMIN_EMAIL
|
||||||
|
value: "me@moll.re"
|
||||||
|
- name: AFFINE_ADMIN_PASSWORD
|
||||||
|
value: "password"
|
||||||
|
- name: TELEMETRY_ENABLE
|
||||||
|
value: "false"
|
||||||
|
- name: DATABASE_URL
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: postgres-credentials
|
||||||
|
key: url
|
||||||
|
- name: NODE_OPTIONS
|
||||||
|
value: "--import=./scripts/register.js"
|
||||||
|
- name: NODE_ENV
|
||||||
|
value: "production"
|
||||||
|
ports:
|
||||||
|
- containerPort: 3010
|
||||||
|
volumeMounts:
|
||||||
|
- name: affine-data
|
||||||
|
mountPath: /root/.affine/storage
|
||||||
|
- name: affine-config
|
||||||
|
mountPath: /root/.affine/config
|
||||||
|
volumes:
|
||||||
|
- name: affine-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: affine-data
|
||||||
|
- name: affine-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: affine-config
|
||||||
15
apps/affine/ingress.yaml
Normal file
15
apps/affine/ingress.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: affine-ingress
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`affine.kluster.moll.re`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: affine-web
|
||||||
|
port: 3010
|
||||||
|
tls:
|
||||||
|
certResolver: default-tls
|
||||||
20
apps/affine/kustomization.yaml
Normal file
20
apps/affine/kustomization.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
|
||||||
|
namespace: affine
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- postgres.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- postgres-credentials.secret.yaml
|
||||||
|
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: affine
|
||||||
|
newName: ghcr.io/toeverything/affine-graphql
|
||||||
|
newTag: stable
|
||||||
4
apps/affine/namespace.yaml
Normal file
4
apps/affine/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: placeholder
|
||||||
20
apps/affine/postgres.yaml
Normal file
20
apps/affine/postgres.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
|
kind: Cluster
|
||||||
|
metadata:
|
||||||
|
name: affine-postgres
|
||||||
|
spec:
|
||||||
|
instances: 1
|
||||||
|
bootstrap:
|
||||||
|
initdb:
|
||||||
|
owner: affine
|
||||||
|
database: affine
|
||||||
|
secret:
|
||||||
|
name: postgres-credentials
|
||||||
|
|
||||||
|
storage:
|
||||||
|
size: 1Gi
|
||||||
|
pvcTemplate:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "1Gi"
|
||||||
23
apps/affine/pvc.yaml
Normal file
23
apps/affine/pvc.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: affine-data
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 15Gi
|
||||||
|
---
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: affine-config
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
10
apps/affine/service.yaml
Normal file
10
apps/affine/service.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: affine-web
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: affine
|
||||||
|
ports:
|
||||||
|
- port: 3010
|
||||||
|
targetPort: 3010
|
||||||
@@ -13,4 +13,4 @@ namespace: files
|
|||||||
images:
|
images:
|
||||||
- name: ocis
|
- name: ocis
|
||||||
newName: owncloud/ocis
|
newName: owncloud/ocis
|
||||||
newTag: "5.0"
|
newTag: "5.0.3"
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: actualbudget
|
- name: actualbudget
|
||||||
newName: actualbudget/actual-server
|
newName: actualbudget/actual-server
|
||||||
newTag: 24.4.0
|
newTag: 24.5.0
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: homeassistant/home-assistant
|
- name: homeassistant/home-assistant
|
||||||
newName: homeassistant/home-assistant
|
newName: homeassistant/home-assistant
|
||||||
newTag: "2024.4"
|
newTag: "2024.5"
|
||||||
|
|||||||
@@ -14,4 +14,4 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: homepage
|
- name: homepage
|
||||||
newName: ghcr.io/gethomepage/homepage
|
newName: ghcr.io/gethomepage/homepage
|
||||||
newTag: v0.8.11
|
newTag: v0.8.13
|
||||||
|
|||||||
@@ -12,14 +12,13 @@ namespace: immich
|
|||||||
helmCharts:
|
helmCharts:
|
||||||
- name: immich
|
- name: immich
|
||||||
releaseName: immich
|
releaseName: immich
|
||||||
version: 0.4.0
|
version: 0.6.0
|
||||||
valuesFile: values.yaml
|
valuesFile: values.yaml
|
||||||
repo: https://immich-app.github.io/immich-charts
|
repo: https://immich-app.github.io/immich-charts
|
||||||
|
|
||||||
|
|
||||||
images:
|
images:
|
||||||
- name: ghcr.io/immich-app/immich-machine-learning
|
- name: ghcr.io/immich-app/immich-machine-learning
|
||||||
newTag: v1.100.0
|
newTag: v1.103.1
|
||||||
- name: ghcr.io/immich-app/immich-server
|
- name: ghcr.io/immich-app/immich-server
|
||||||
newTag: v1.100.0
|
newTag: v1.103.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
63
apps/media/ingress.yaml
Normal file
63
apps/media/ingress.yaml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: jellyfin-vue-ingress
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`media.kluster.moll.re`)
|
||||||
|
middlewares:
|
||||||
|
- name: jellyfin-websocket
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: jellyfin-web
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
certResolver: default-tls
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: jellyfin-backend-ingress
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`media-backend.kluster.moll.re`) && !Path(`/metrics`)
|
||||||
|
middlewares:
|
||||||
|
- name: jellyfin-websocket
|
||||||
|
- name: jellyfin-server-headers
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: jellyfin-server
|
||||||
|
port: 8096
|
||||||
|
tls:
|
||||||
|
certResolver: default-tls
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: jellyfin-websocket
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
headers:
|
||||||
|
customRequestHeaders:
|
||||||
|
Connection: keep-alive, Upgrade
|
||||||
|
Upgrade: WebSocket
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: jellyfin-server-headers
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
headers:
|
||||||
|
accessControlAllowCredentials: true
|
||||||
|
accessControlAllowHeaders: [ "Authorization","Content-Type" ] # "Accept","Origin"
|
||||||
|
accessControlAllowMethods: [ "GET","HEAD","OPTIONS" ] # "POST","PUT"
|
||||||
|
accessControlAllowOriginList:
|
||||||
|
- "*"
|
||||||
|
accessControlMaxAge: 100
|
||||||
@@ -14,7 +14,7 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: jellyfin/jellyfin
|
- name: jellyfin/jellyfin
|
||||||
newName: jellyfin/jellyfin
|
newName: jellyfin/jellyfin
|
||||||
newTag: 10.8.13
|
newTag: 10.9.0
|
||||||
- name: ghcr.io/jellyfin/jellyfin-vue
|
- name: ghcr.io/jellyfin/jellyfin-vue
|
||||||
newName: ghcr.io/jellyfin/jellyfin-vue
|
newName: ghcr.io/jellyfin/jellyfin-vue
|
||||||
newTag: stable-rc.0.3.1
|
newTag: stable-rc.0.3.1
|
||||||
|
|||||||
7
apps/minecraft/README.md
Normal file
7
apps/minecraft/README.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## Sending a command
|
||||||
|
```
|
||||||
|
kubectl exec -it -n minecraft deploy/minecraft-server -- /bin/bash
|
||||||
|
mc-send-to-console /help
|
||||||
|
# or directly
|
||||||
|
kubectl exec -it -n minecraft deploy/minecraft-server -- mc-send-to-console /help
|
||||||
|
```
|
||||||
56
apps/minecraft/deployment.yaml
Normal file
56
apps/minecraft/deployment.yaml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: minecraft-server
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: minecraft-server
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: minecraft-server
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: minecraft-server
|
||||||
|
image: minecraft
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "4000Mi"
|
||||||
|
cpu: "2500m"
|
||||||
|
requests:
|
||||||
|
memory: "1000Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
ports:
|
||||||
|
- containerPort: 25565
|
||||||
|
env:
|
||||||
|
- name: EULA
|
||||||
|
value: "TRUE"
|
||||||
|
- name: MODPACK
|
||||||
|
value: "https://www.curseforge.com/api/v1/mods/711537/files/5076228/download"
|
||||||
|
- name: VERSION
|
||||||
|
value: "1.18.2"
|
||||||
|
# - name: VERSION
|
||||||
|
# value: "1.16.5"
|
||||||
|
# - name: MODPACK
|
||||||
|
# value: "https://mediafilez.forgecdn.net/files/3602/5/VaultHunters-OfficialModpack-1.12.1-Server.zip"
|
||||||
|
- name: INIT_MEMORY
|
||||||
|
value: "1G"
|
||||||
|
- name: MAX_MEMORY
|
||||||
|
value: "3G"
|
||||||
|
- name: MOTD
|
||||||
|
value: "VaultHunters baby!"
|
||||||
|
- name: ENABLE_RCON
|
||||||
|
value: "false"
|
||||||
|
- name: CREATE_CONSOLE_IN_PIPE
|
||||||
|
value: "true"
|
||||||
|
- name: ONLINE_MODE
|
||||||
|
value: "true"
|
||||||
|
volumeMounts:
|
||||||
|
- name: minecraft-data
|
||||||
|
mountPath: /data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: minecraft-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: minecraft-data
|
||||||
15
apps/minecraft/kustomization.yaml
Normal file
15
apps/minecraft/kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
namespace: minecraft
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: minecraft
|
||||||
|
newName: itzg/minecraft-server
|
||||||
|
newTag: java21
|
||||||
4
apps/minecraft/namespace.yaml
Normal file
4
apps/minecraft/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: placeholder
|
||||||
11
apps/minecraft/pvc.yaml
Normal file
11
apps/minecraft/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: minecraft-data
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-client"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
12
apps/minecraft/service.yaml
Normal file
12
apps/minecraft/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: minecraft-server
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: minecraft-server
|
||||||
|
ports:
|
||||||
|
- port: 25565
|
||||||
|
targetPort: 25565
|
||||||
|
type: LoadBalancer
|
||||||
|
loadBalancerIP: 192.168.3.4
|
||||||
@@ -33,6 +33,10 @@ datasources:
|
|||||||
type: prometheus
|
type: prometheus
|
||||||
url: http://thanos-querier.prometheus.svc:9090
|
url: http://thanos-querier.prometheus.svc:9090
|
||||||
isDefault: true
|
isDefault: true
|
||||||
|
- name: Prometheus
|
||||||
|
type: prometheus
|
||||||
|
url: http://prometheus.prometheus.svc:9090
|
||||||
|
isDefault: false
|
||||||
|
|
||||||
dashboardProviders:
|
dashboardProviders:
|
||||||
dashboardproviders.yaml:
|
dashboardproviders.yaml:
|
||||||
|
|||||||
@@ -16,17 +16,5 @@ helmCharts:
|
|||||||
- releaseName: grafana
|
- releaseName: grafana
|
||||||
name: grafana
|
name: grafana
|
||||||
repo: https://grafana.github.io/helm-charts
|
repo: https://grafana.github.io/helm-charts
|
||||||
version: 7.3.7
|
version: 7.3.9
|
||||||
valuesFile: grafana.values.yaml
|
valuesFile: grafana.values.yaml
|
||||||
|
|
||||||
# - releaseName: influxdb
|
|
||||||
# name: influxdb2
|
|
||||||
# repo: https://helm.influxdata.com/
|
|
||||||
# version: 2.1.2
|
|
||||||
# valuesFile: influxdb.values.yaml
|
|
||||||
|
|
||||||
# - releaseName: telegraf-speedtest
|
|
||||||
# name: telegraf
|
|
||||||
# repo: https://helm.influxdata.com/
|
|
||||||
# version: 1.8.39
|
|
||||||
# valuesFile: telegraf-speedtest.values.yaml
|
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ resources:
|
|||||||
|
|
||||||
images:
|
images:
|
||||||
- name: mealie
|
- name: mealie
|
||||||
newTag: v1.4.0
|
newTag: v1.6.0
|
||||||
newName: ghcr.io/mealie-recipes/mealie
|
newName: ghcr.io/mealie-recipes/mealie
|
||||||
@@ -11,7 +11,7 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: octodns
|
- name: octodns
|
||||||
newName: octodns/octodns # has all plugins
|
newName: octodns/octodns # has all plugins
|
||||||
newTag: "2024.04"
|
newTag: "2024.05"
|
||||||
|
|
||||||
- name: git
|
- name: git
|
||||||
newName: alpine/git
|
newName: alpine/git
|
||||||
|
|||||||
39
infrastructure/gitea/actions.deployment.yaml
Normal file
39
infrastructure/gitea/actions.deployment.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: actions-runner
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: actions-runner
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: actions-runner
|
||||||
|
spec:
|
||||||
|
hostname: kube-runner
|
||||||
|
serviceAccountName: actions-runner
|
||||||
|
containers:
|
||||||
|
- name: actions-runner
|
||||||
|
image: actions-runner
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
env:
|
||||||
|
- name: GITEA_INSTANCE_URL
|
||||||
|
value: "https://git.kluster.moll.re"
|
||||||
|
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: actions-runner-secret
|
||||||
|
key: runner-token
|
||||||
|
- name: GITEA_RUNNER_LABELS
|
||||||
|
value: k8s
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-data
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: runner-data
|
||||||
|
emptyDir: {}
|
||||||
|
|
||||||
38
infrastructure/gitea/actions.rbac.yaml
Normal file
38
infrastructure/gitea/actions.rbac.yaml
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: actions-runner
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: Role
|
||||||
|
metadata:
|
||||||
|
name: actions-role
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods"]
|
||||||
|
verbs: ["get", "list", "create", "delete"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods/exec"]
|
||||||
|
verbs: ["get", "create"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["pods/log"]
|
||||||
|
verbs: ["get", "list", "watch",]
|
||||||
|
- apiGroups: ["batch"]
|
||||||
|
resources: ["jobs"]
|
||||||
|
verbs: ["get", "list", "create", "delete"]
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["secrets"]
|
||||||
|
verbs: ["get", "list", "create", "delete"]
|
||||||
|
---
|
||||||
|
kind: RoleBinding
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
metadata:
|
||||||
|
name: actions-role-binding
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: actions-runner
|
||||||
|
apiGroup: ""
|
||||||
|
roleRef:
|
||||||
|
kind: Role
|
||||||
|
name: actions-role
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
16
infrastructure/gitea/actions.sealedsecret.yaml
Normal file
16
infrastructure/gitea/actions.sealedsecret.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: actions-runner-secret
|
||||||
|
namespace: gitea
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
runner-token: AgBHwek/Aj/0oOnI/bnZ4FgtRoeJw4tIKvcDzBhaPdQ7bMVHyHUKYUNP7lkPgZrIN+7rhMY7C/j13iGWx4iTdhTgipLiJvyZ70pXKLSix4IpcypJTElggWkW0JW79x1HyJfBtn9iJiHnEZXPi7sEnyKhA0asAOR0ae8NS6mxxei0TIImaPaC2RHL6MOi40xsXpHz2ZaVhDQaTSRWjv0U6+WkCGcueqM2HLYfF1gqqkzGCjjhdOTK1CKvIvApZ5n8x6x94IiywCXJraDCwLz+acF2c2vA/Jb/3p7TwyyRZ5uIF5LZufhTJ6+5sFJSReHYxO4CpPA8KvM880vtiEjN7LxVo/Jruj2459OvjviKZS03ZwLHHrjanom1+HA9Sx2ffRLiR5ayGkfj/6kvpIRt5x1F7BbPp+a0LXuxJX+1nGDyEa1D1WzVKvZASav6/v7cXcom/nKGO91Zb8qHlOv7ZTs5guGQ9G9VCOHOG8szwpW3ZmQwWfFoWsShzqbDqszBYOGeIjIiDllLzTZ8A9dv9J2ELngZ1IPGIkfpQNEW8hsbNXTYhdVIrkh7BIFkRWfYDNWxqZd4iE6XllQcT1rqndusgiNEJX2r+P4nT8dPewATXQ79wzvZU3kB+VHzM8cLymlVGADi7v/qTY9RcrhuE0oMLzHRShr6JU05VfLGbMsttrYKmW7smvBp3lRJitO5A8+r8cRniS1+Xr8mIx87vCvnoWSH6BKkl9pCdDeCGylAWfkJN9UpkaKg
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: actions-runner-secret
|
||||||
|
namespace: gitea
|
||||||
|
type: Opaque
|
||||||
@@ -111,6 +111,15 @@ gitea:
|
|||||||
SSH_PORT: 2222
|
SSH_PORT: 2222
|
||||||
actions:
|
actions:
|
||||||
ENABLED: true
|
ENABLED: true
|
||||||
|
session:
|
||||||
|
PROVIDER: db
|
||||||
|
cache:
|
||||||
|
ADAPTER: memory
|
||||||
|
queue:
|
||||||
|
TYPE: level
|
||||||
|
indexer:
|
||||||
|
ISSUE_INDEXER_TYPE: bleve
|
||||||
|
REPO_INDEXER_ENABLED: true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -154,12 +163,7 @@ postgresql:
|
|||||||
|
|
||||||
|
|
||||||
redis-cluster:
|
redis-cluster:
|
||||||
enabled: true
|
enabled: false
|
||||||
usePassword: false
|
|
||||||
cluster:
|
|
||||||
nodes: 3 # default: 6
|
|
||||||
replicas: 0 # default: 1
|
|
||||||
|
|
||||||
|
|
||||||
postgresql-ha:
|
postgresql-ha:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
@@ -8,9 +8,18 @@ resources:
|
|||||||
- drone-kube-runner.deployment.yaml
|
- drone-kube-runner.deployment.yaml
|
||||||
- drone-server.deployment.yaml
|
- drone-server.deployment.yaml
|
||||||
- drone-server.sealedsecret.yaml
|
- drone-server.sealedsecret.yaml
|
||||||
|
- actions.deployment.yaml
|
||||||
|
- actions.sealedsecret.yaml
|
||||||
|
- actions.rbac.yaml
|
||||||
|
|
||||||
|
|
||||||
namespace: gitea
|
namespace: gitea
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: actions-runner
|
||||||
|
newName: ghcr.io/christopherhx/gitea-actions-runner
|
||||||
|
newTag: v0.0.11
|
||||||
|
|
||||||
|
|
||||||
helmCharts:
|
helmCharts:
|
||||||
- name: gitea
|
- name: gitea
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ namespace: metallb-system
|
|||||||
helmCharts:
|
helmCharts:
|
||||||
- name: metallb
|
- name: metallb
|
||||||
repo: https://metallb.github.io/metallb
|
repo: https://metallb.github.io/metallb
|
||||||
version: 0.14.4
|
version: 0.14.5
|
||||||
releaseName: metallb
|
releaseName: metallb
|
||||||
valuesFile: values.yaml
|
valuesFile: values.yaml
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ namespace: pg-ha
|
|||||||
helmCharts:
|
helmCharts:
|
||||||
- name: cloudnative-pg
|
- name: cloudnative-pg
|
||||||
releaseName: pg-controller
|
releaseName: pg-controller
|
||||||
version: 0.20.2
|
version: 0.21.0
|
||||||
valuesFile: values.yaml
|
valuesFile: values.yaml
|
||||||
repo: https://cloudnative-pg.io/charts/
|
repo: https://cloudnative-pg.io/charts/
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ metadata:
|
|||||||
name: prometheus
|
name: prometheus
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
knd: ClusterRole
|
||||||
metadata:
|
metadata:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
rules:
|
rules:
|
||||||
@@ -51,6 +51,8 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 400Mi
|
memory: 400Mi
|
||||||
|
retention: 730d
|
||||||
|
retentionSize: 50Gi
|
||||||
serviceAccountName: prometheus
|
serviceAccountName: prometheus
|
||||||
enableAdminAPI: false
|
enableAdminAPI: false
|
||||||
serviceMonitorNamespaceSelector: {}
|
serviceMonitorNamespaceSelector: {}
|
||||||
@@ -61,7 +63,15 @@ spec:
|
|||||||
# loads the config from a secret named thanos-objstore-config in the same namespace
|
# loads the config from a secret named thanos-objstore-config in the same namespace
|
||||||
key: thanos.yaml
|
key: thanos.yaml
|
||||||
name: thanos-objstore-config
|
name: thanos-objstore-config
|
||||||
|
volumeClaimTemplate:
|
||||||
|
metadata:
|
||||||
|
name: prometheus-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 50Gi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ spec:
|
|||||||
- --log.level=debug
|
- --log.level=debug
|
||||||
- --query.replica-label=replica
|
- --query.replica-label=replica
|
||||||
- --endpoint=dnssrv+_grpc._tcp.thanos-store:10901
|
- --endpoint=dnssrv+_grpc._tcp.thanos-store:10901
|
||||||
|
- --endpoint=dnssrv+_grpc._tcp.prometheus:9090
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 10902
|
containerPort: 10902
|
||||||
@@ -38,6 +39,20 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: thanos-querier
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: thanos-querier
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 10902
|
||||||
|
targetPort: http
|
||||||
|
- name: grpc
|
||||||
|
protocol: TCP
|
||||||
|
port: 10901
|
||||||
|
targetPort: grpc
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: thanos-querier
|
app: thanos-querier
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ resources:
|
|||||||
images:
|
images:
|
||||||
- name: controller
|
- name: controller
|
||||||
newName: docker.io/bitnami/sealed-secrets-controller
|
newName: docker.io/bitnami/sealed-secrets-controller
|
||||||
newTag: 0.26.1
|
newTag: 0.26.2
|
||||||
|
|||||||
Reference in New Issue
Block a user