Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d008c9fd5a
|
|||
|
1eb0f84659
|
|||
|
51df63d9f2
|
@@ -25,11 +25,11 @@ steps:
|
||||
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||
- export KUBECONFIG=/tmp/kubeconfig
|
||||
- kubectl create configmap home-automation-config
|
||||
--from-file=devices=config/devices.yaml
|
||||
--from-file=groups=config/groups.yaml
|
||||
--from-file=layout=config/layout.yaml
|
||||
--from-file=rules=config/rules.yaml
|
||||
--from-file=scenes=config/scenes.yaml
|
||||
--from-file=devices.yaml=config/devices.yaml
|
||||
--from-file=groups.yaml=config/groups.yaml
|
||||
--from-file=layout.yaml=config/layout.yaml
|
||||
--from-file=rules.yaml=config/rules.yaml
|
||||
--from-file=scenes.yaml=config/scenes.yaml
|
||||
--namespace=$NAMESPACE
|
||||
--dry-run=client -o yaml | kubectl apply -f -
|
||||
- kubectl apply -f deployment/configmap.yaml -n $NAMESPACE
|
||||
|
||||
@@ -99,4 +99,27 @@ spec:
|
||||
- port: 80
|
||||
targetPort: 8001
|
||||
name: http
|
||||
type: ClusterIP
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: api-ingress
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production-http
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- homea2-api.hottis.de
|
||||
secretName: homea2-api-cert
|
||||
rules:
|
||||
- host: homea2-api.hottis.de
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: api
|
||||
port:
|
||||
number: 80
|
||||
@@ -13,7 +13,7 @@ data:
|
||||
|
||||
# UI specific environment variables
|
||||
UI_UI_PORT: "8002"
|
||||
UI_API_BASE: "http://api:8001"
|
||||
UI_API_BASE: "https://homea2-api.hottis.de"
|
||||
UI_BASE_PATH: "/"
|
||||
|
||||
# API specific environment variables
|
||||
|
||||
@@ -76,4 +76,27 @@ spec:
|
||||
- port: 80
|
||||
targetPort: 8002
|
||||
name: http
|
||||
type: ClusterIP
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: ui-ingress
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production-http
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user