feat(blog): initial deployment
All checks were successful
Renovate / renovate (push) Successful in 1m38s

This commit is contained in:
Peter 2024-11-07 22:16:11 +01:00
parent 813ecd3bf5
commit 025bfe841d
Signed by: prskr
GPG key ID: F56BED6903BC5E37
8 changed files with 74 additions and 11 deletions

1
blog/.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
config/* filter=age diff=age merge=age -text

16
blog/kustomization.yaml Normal file
View file

@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: blog
images:
- name: caddy
newName: code.icb4dc0.de/infrastructure/images/caddy
newTag: latest
digest: sha256:6942ec75b708e2b37d6903346ace5511ef6c6df043d1c670ee3515698adcd116
resources:
- resources/namespace.yaml
- https://github.com/spinkube/spin-operator/releases/download/v0.3.0/spin-operator.shim-executor.yaml
- resources/spinapp.yaml
- resources/routes.yaml

View file

@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: blog

View file

@ -0,0 +1,31 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: blog-https
spec:
parentRefs:
- name: contour
sectionName: https
namespace: projectcontour
hostnames:
- "www.icb4dc0.de"
rules:
- backendRefs:
- name: spin-proxy
port: 80
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: git-age-docs-https
spec:
parentRefs:
- name: contour
sectionName: git-age-docs
namespace: projectcontour
hostnames:
- "docs.git-age.icb4dc0.de"
rules:
- backendRefs:
- name: spin-proxy
port: 80

View file

@ -0,0 +1,11 @@
apiVersion: core.spinoperator.dev/v1alpha1
kind: SpinApp
metadata:
name: spin-proxy
spec:
image: "code.icb4dc0.de/prskr/spin-proxy:latest"
executor: containerd-shim-spin
replicas: 2
variables:
- name: domain_mapping
value: '{"docs.git-age.icb4dc0.de":"1661580-git-age.fsn1.your-objectstorage.com","www.icb4dc0.de":"1661580-blog.fsn1.your-objectstorage.com"}'

View file

@ -9,13 +9,12 @@ metadata:
spec: spec:
gatewayClassName: contour gatewayClassName: contour
listeners: listeners:
- name: snips-ssh - name: snips-ssh
protocol: TCP protocol: TCP
port: 2222 port: 2222
allowedRoutes: allowedRoutes:
kinds: kinds:
- kind: TCPRoute - kind: TCPRoute
namespaces: namespaces:
from: All from: All
@ -57,7 +56,7 @@ spec:
port: 22 port: 22
allowedRoutes: allowedRoutes:
kinds: kinds:
- kind: TCPRoute - kind: TCPRoute
namespaces: namespaces:
from: Selector from: Selector
selector: selector:
@ -178,8 +177,8 @@ spec:
from: Selector from: Selector
selector: selector:
matchLabels: matchLabels:
kubernetes.io/metadata.name: garage kubernetes.io/metadata.name: blog
tls: tls:
mode: Terminate mode: Terminate
certificateRefs: certificateRefs:
- name: git-age-docs-tls - name: git-age-docs-tls

View file

@ -81,10 +81,10 @@ gitea:
MAX_SIZE: 30 MAX_SIZE: 30
MAX_FILES: 15 MAX_FILES: 15
STORAGE_TYPE: minio STORAGE_TYPE: minio
MINIO_ENDPOINT: garage.garage.svc:3900 MINIO_ENDPOINT: fsn1.your-objectstorage.com:443
MINIO_BUCKET: forgejo MINIO_BUCKET: forgejo
MINIO_LOCATION: hel1 MINIO_LOCATION: auto
MINIO_USE_SSL: "false" MINIO_USE_SSL: "true"
actions: actions:
ENABLED: "true" ENABLED: "true"
DEFAULT_ACTIONS_URL: github DEFAULT_ACTIONS_URL: github

View file

@ -2,7 +2,7 @@
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: sync-garage-forgejo name: sync-garage-csi
namespace: garage namespace: garage
spec: spec:
ttlSecondsAfterFinished: 100 ttlSecondsAfterFinished: 100
@ -20,8 +20,8 @@ spec:
- --ignore-errors - --ignore-errors
- -s3-upload-concurrency 64 - -s3-upload-concurrency 64
- -v - -v
- garage:forgejo - garage:csi
- hcloud:1661580-forgejo - hcloud:1661580-csi
volumeMounts: volumeMounts:
- name: rclone-config - name: rclone-config
mountPath: /config/rclone mountPath: /config/rclone