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