add hoylogo deployment to this repo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2024-05-29 22:38:08 +02:00
parent 6ae43134b9
commit 651cfe10ba
Signed by: aaron
GPG key ID: 643004654D40D577
10 changed files with 392 additions and 0 deletions

0
hoylogo/prod/.gitkeep Normal file
View file

71
hoylogo/prod/hoylogo.yaml Normal file
View file

@ -0,0 +1,71 @@
apiVersion: v1
kind: Namespace
metadata:
name: hoylogo
---
apiVersion: v1
kind: Service
metadata:
name: hoylogo-service
namespace: hoylogo
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: hoylogo
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: hoylogo
name: hoylogo-deployment
namespace: hoylogo
spec:
replicas: 3
selector:
matchLabels:
app: hoylogo
template:
metadata:
labels:
app: hoylogo
spec:
containers:
- image: git.ar21.de/aaron/hoylogo:21
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 4
periodSeconds: 3
name: hoylogo
ports:
- containerPort: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
name: hoylogo-ingress
namespace: hoylogo
spec:
rules:
- host: hoylogo-prod.apps.yolokube.de
http:
paths:
- backend:
service:
name: hoylogo-service
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- hoylogo-prod.apps.yolokube.de
secretName: hoylogo-tls-key