k8s-deployments/hoylogo/staging/hoylogo.yaml

71 lines
1.3 KiB
YAML

apiVersion: v1
kind: Namespace
metadata:
name: hoylogo-staging
---
apiVersion: v1
kind: Service
metadata:
name: hoylogo-service
namespace: hoylogo-staging
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-staging
spec:
replicas: 1
selector:
matchLabels:
app: hoylogo
template:
metadata:
labels:
app: hoylogo
spec:
containers:
- image: git.ar21.de/aaron/hoylogo:staging-24
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-staging
spec:
rules:
- host: staging.hoylogo.de
http:
paths:
- backend:
service:
name: hoylogo-service
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- staging.hoylogo.de
secretName: hoylogo-tls-key