This commit is contained in:
parent
23980609ed
commit
13c9d12db0
33
.argo/application.yaml
Normal file
33
.argo/application.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd-image-updater.argoproj.io/image-list: docs=registry.odit.services/lfk/docs:latest
|
||||||
|
argocd-image-updater.argoproj.io/write-back-method: argocd
|
||||||
|
argocd-image-updater.argoproj.io/update-strategy: digest
|
||||||
|
argocd-image-updater.argoproj.io/docs.pull-secret: pullsecret:argocd/registry-odit-services
|
||||||
|
name: docs-lfk-de
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: "git@git.odit.services:lfk/docs.git"
|
||||||
|
path: .argo
|
||||||
|
targetRevision: main
|
||||||
|
destination:
|
||||||
|
name: odit
|
||||||
|
namespace: lfk
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
allowEmpty: false
|
||||||
|
syncOptions:
|
||||||
|
- PruneLast=true
|
||||||
|
- CreateNamespace=true
|
||||||
|
retry:
|
||||||
|
limit: 5
|
||||||
|
backoff:
|
||||||
|
duration: 20s
|
||||||
|
factor: 2
|
||||||
|
maxDuration: 7m
|
14
.argo/cert.yaml
Normal file
14
.argo/cert.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: docs-lfk-de-cert
|
||||||
|
namespace: lfk
|
||||||
|
spec:
|
||||||
|
commonName: docs.lauf-fuer-kaya.de
|
||||||
|
secretName: docs-lfk-de-cert
|
||||||
|
dnsNames:
|
||||||
|
- docs.lauf-fuer-kaya.de
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
kind: ClusterIssuer
|
58
.argo/deployment.yaml
Normal file
58
.argo/deployment.yaml
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: docs-lfk-de
|
||||||
|
namespace: lfk
|
||||||
|
labels:
|
||||||
|
app: docs-lfk-de
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 0
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: docs-lfk-de
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: docs-lfk-de
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: docs-lfk-de
|
||||||
|
image: registry.odit.services/lfk/docs:latest
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: web
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 10Mi
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health/
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 3
|
||||||
|
successThreshold: 4
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health/
|
||||||
|
port: 80
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 3
|
||||||
|
lifecycle:
|
||||||
|
preStop:
|
||||||
|
exec:
|
||||||
|
command: ["/bin/sh", "-c", "sleep 10"]
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: registry-odit-services
|
||||||
|
restartPolicy: Always
|
12
.argo/dns.yaml
Normal file
12
.argo/dns.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: externaldns.k8s.io/v1alpha1
|
||||||
|
kind: DNSEndpoint
|
||||||
|
metadata:
|
||||||
|
name: docs-lfk-de-dns
|
||||||
|
namespace: lfk
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- dnsName: docs.lauf-fuer-kaya.de
|
||||||
|
recordTTL: 180
|
||||||
|
recordType: CNAME
|
||||||
|
targets:
|
||||||
|
- k.odit.services
|
17
.argo/ingress.yaml
Normal file
17
.argo/ingress.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: docs-lfk-de
|
||||||
|
namespace: lfk
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- match: Host(`docs.lauf-fuer-kaya.de`)
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: docs-lfk-de
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
secretName: docs-lfk-de-cert
|
8
.argo/kustomization.yaml
Normal file
8
.argo/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace: lfk
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- secret.yaml
|
||||||
|
- cert.yaml
|
||||||
|
- dns.yaml
|
9
.argo/secret.yaml
Normal file
9
.argo/secret.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: registry-odit-services
|
||||||
|
namespace: lfk
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: >-
|
||||||
|
eyJhdXRocyI6eyJyZWdpc3RyeS5vZGl0LnNlcnZpY2VzIjp7InVzZXJuYW1lIjoicm9ib3Qkb2RpdF9wdWxsZXIiLCJwYXNzd29yZCI6ImdVYmowaElTRklKUnZuTFlLNzNxQkFBS3VvYUZpM3pzIiwiZW1haWwiOiJib3RAb2RpdC5zZXJ2aWNlcyIsImF1dGgiOiJjbTlpYjNRa2IyUnBkRjl3ZFd4c1pYSTZaMVZpYWpCb1NWTkdTVXBTZG01TVdVczNNM0ZDUVVGTGRXOWhSbWt6ZW5NPSJ9fX0=
|
15
.argo/service.yaml
Normal file
15
.argo/service.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: docs-lfk-de
|
||||||
|
namespace: lfk
|
||||||
|
labels:
|
||||||
|
app: docs-lfk-de
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
name: web
|
||||||
|
selector:
|
||||||
|
app: docs-lfk-de
|
||||||
|
type: ClusterIP
|
Loading…
x
Reference in New Issue
Block a user