Some checks failed
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/4 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline failed
ci/woodpecker/tag/predeploy Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/predeploy Pipeline was successful
ci/woodpecker/push/deploy/1 unknown status
ci/woodpecker/push/deploy/2 unknown status
ci/woodpecker/push/deploy/3 unknown status
ci/woodpecker/push/deploy/4 unknown status
ci/woodpecker/tag/build/4 Pipeline was successful
ci/woodpecker/tag/build/1 Pipeline was successful
ci/woodpecker/tag/build/3 Pipeline was successful
ci/woodpecker/tag/build/2 Pipeline was successful
ci/woodpecker/tag/deploy/2 Pipeline was successful
ci/woodpecker/tag/deploy/3 Pipeline was successful
ci/woodpecker/tag/deploy/1 Pipeline was successful
ci/woodpecker/tag/deploy/4 Pipeline was successful
108 lines
2.5 KiB
YAML
108 lines
2.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: ui
|
|
namespace: homea2
|
|
labels:
|
|
app: ui
|
|
component: home-automation
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: ui
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
reloader.stakater.com/auto: "true"
|
|
configmap.reloader.stakater.com/reload: "home-automation-environment"
|
|
labels:
|
|
app: ui
|
|
component: home-automation
|
|
spec:
|
|
containers:
|
|
- name: ui
|
|
image: %IMAGE%
|
|
ports:
|
|
- containerPort: 8002
|
|
name: http
|
|
env:
|
|
- name: UI_PORT
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: home-automation-environment
|
|
key: UI_UI_PORT
|
|
- name: API_BASE
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: home-automation-environment
|
|
key: UI_API_BASE
|
|
- name: BASE_PATH
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: home-automation-environment
|
|
key: UI_BASE_PATH
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8002
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8002
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 5
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ui
|
|
labels:
|
|
app: ui
|
|
component: home-automation
|
|
spec:
|
|
selector:
|
|
app: ui
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8002
|
|
name: http
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ui-ingress
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-production-http
|
|
traefik.ingress.kubernetes.io/router.middlewares: homea2-mtls-auth@kubernetescrd,homea2-security-headers@kubernetescrd
|
|
traefik.ingress.kubernetes.io/router.tls.options: homea2-homea2-mtls@kubernetescrd
|
|
# Traefik 2 mTLS Configuration
|
|
traefik.ingress.kubernetes.io/router.tls.options: homea2-mtls@kubernetescrd
|
|
traefik.ingress.kubernetes.io/router.middlewares: homea2-mtls-auth@kubernetescrd
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- homea2.hottis.de
|
|
secretName: homea2-ui-cert
|
|
rules:
|
|
- host: homea2.hottis.de
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ui
|
|
port:
|
|
number: 80
|