feat(blog): initial deployment
All checks were successful
Renovate / renovate (push) Successful in 1m38s
All checks were successful
Renovate / renovate (push) Successful in 1m38s
This commit is contained in:
parent
813ecd3bf5
commit
025bfe841d
8 changed files with 74 additions and 11 deletions
1
blog/.gitattributes
vendored
Normal file
1
blog/.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
config/* filter=age diff=age merge=age -text
|
16
blog/kustomization.yaml
Normal file
16
blog/kustomization.yaml
Normal 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
|
5
blog/resources/namespace.yaml
Normal file
5
blog/resources/namespace.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: blog
|
31
blog/resources/routes.yaml
Normal file
31
blog/resources/routes.yaml
Normal 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
|
11
blog/resources/spinapp.yaml
Normal file
11
blog/resources/spinapp.yaml
Normal 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"}'
|
|
@ -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,7 +177,7 @@ spec:
|
|||
from: Selector
|
||||
selector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: garage
|
||||
kubernetes.io/metadata.name: blog
|
||||
tls:
|
||||
mode: Terminate
|
||||
certificateRefs:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue