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

View file

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

View file

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