s
All checks were successful
Casa Home Assistant CI/CD Pipeline (testing) / build (push) Successful in 15s
All checks were successful
Casa Home Assistant CI/CD Pipeline (testing) / build (push) Successful in 15s
s
This commit is contained in:
@@ -34,9 +34,10 @@ jobs:
|
||||
#set -x for debugging
|
||||
set -e
|
||||
cd ${{ gitea.workspace }}
|
||||
kubectl apply -f ./deploy/deployment.yaml
|
||||
echo "Length ENDPOINT_IP: ${#ENDPOINT_IP}"
|
||||
echo "Length SERVICE_PORT: ${#SERVICE_PORT}"
|
||||
echo "Length INGRESS_ROUTES_MATCH: ${#INGRESS_ROUTES_MATCH}"
|
||||
echo "Length INGRESS_TLS_SECRET_NAME: ${#INGRESS_TLS_SECRET_NAME}"
|
||||
kubectl apply -f ./deploy/deployment.yaml
|
||||
envsubst < ./deploy/service.template.yaml > /root/tmp.yaml
|
||||
envsubst < ./deploy/service.template.yaml | kubectl apply -f -
|
||||
|
||||
@@ -12,31 +12,31 @@ spec:
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Endpoints
|
||||
metadata:
|
||||
name: home-assistant
|
||||
namespace: home-assistant
|
||||
subsets:
|
||||
- addresses:
|
||||
- ip: ${ENDPOINT_IP}
|
||||
ports:
|
||||
- port: ${SERVICE_PORT}
|
||||
---
|
||||
# apiVersion: v1
|
||||
# kind: Endpoints
|
||||
# metadata:
|
||||
# name: home-assistant
|
||||
# namespace: home-assistant
|
||||
# subsets:
|
||||
# - addresses:
|
||||
# - ip: ${ENDPOINT_IP}
|
||||
# ports:
|
||||
# - port: ${SERVICE_PORT}
|
||||
# ---
|
||||
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: home-assistant
|
||||
namespace: home-assistant
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: ${INGRESS_ROUTES_MATCH}
|
||||
kind: Rule
|
||||
services:
|
||||
- name: home-assistant
|
||||
port: ${SERVICE_PORT}
|
||||
tls:
|
||||
secretName: ${INGRESS_TLS_SECRET_NAME}
|
||||
# apiVersion: traefik.io/v1alpha1
|
||||
# kind: IngressRoute
|
||||
# metadata:
|
||||
# name: home-assistant
|
||||
# namespace: home-assistant
|
||||
# spec:
|
||||
# entryPoints:
|
||||
# - websecure
|
||||
# routes:
|
||||
# - match: ${INGRESS_ROUTES_MATCH}
|
||||
# kind: Rule
|
||||
# services:
|
||||
# - name: home-assistant
|
||||
# port: ${SERVICE_PORT}
|
||||
# tls:
|
||||
# secretName: ${INGRESS_TLS_SECRET_NAME}
|
||||
Reference in New Issue
Block a user