fix/cicd #3

Merged
marcio.fernandes merged 62 commits from fix/cicd into master 2025-11-22 17:43:58 +00:00
2 changed files with 30 additions and 29 deletions
Showing only changes of commit fd94e57068 - Show all commits

View File

@@ -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 -

View File

@@ -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}