71 lines
1.3 KiB
YAML
71 lines
1.3 KiB
YAML
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:25
|
|
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
|