fix/cicd #3
@@ -34,9 +34,10 @@ jobs:
|
|||||||
#set -x for debugging
|
#set -x for debugging
|
||||||
set -e
|
set -e
|
||||||
cd ${{ gitea.workspace }}
|
cd ${{ gitea.workspace }}
|
||||||
|
kubectl apply -f ./deploy/deployment.yaml
|
||||||
echo "Length ENDPOINT_IP: ${#ENDPOINT_IP}"
|
echo "Length ENDPOINT_IP: ${#ENDPOINT_IP}"
|
||||||
echo "Length SERVICE_PORT: ${#SERVICE_PORT}"
|
echo "Length SERVICE_PORT: ${#SERVICE_PORT}"
|
||||||
echo "Length INGRESS_ROUTES_MATCH: ${#INGRESS_ROUTES_MATCH}"
|
echo "Length INGRESS_ROUTES_MATCH: ${#INGRESS_ROUTES_MATCH}"
|
||||||
echo "Length INGRESS_TLS_SECRET_NAME: ${#INGRESS_TLS_SECRET_NAME}"
|
echo "Length INGRESS_TLS_SECRET_NAME: ${#INGRESS_TLS_SECRET_NAME}"
|
||||||
kubectl apply -f ./deploy/deployment.yaml
|
envsubst < ./deploy/service.template.yaml | kubectl apply -f -
|
||||||
envsubst < ./deploy/service.template.yaml > /root/tmp.yaml
|
|
||||||
@@ -12,31 +12,31 @@ spec:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
# apiVersion: v1
|
||||||
kind: Endpoints
|
# kind: Endpoints
|
||||||
metadata:
|
# metadata:
|
||||||
name: home-assistant
|
# name: home-assistant
|
||||||
namespace: home-assistant
|
# namespace: home-assistant
|
||||||
subsets:
|
# subsets:
|
||||||
- addresses:
|
# - addresses:
|
||||||
- ip: ${ENDPOINT_IP}
|
# - ip: ${ENDPOINT_IP}
|
||||||
ports:
|
# ports:
|
||||||
- port: ${SERVICE_PORT}
|
# - port: ${SERVICE_PORT}
|
||||||
---
|
# ---
|
||||||
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
# apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
# kind: IngressRoute
|
||||||
metadata:
|
# metadata:
|
||||||
name: home-assistant
|
# name: home-assistant
|
||||||
namespace: home-assistant
|
# namespace: home-assistant
|
||||||
spec:
|
# spec:
|
||||||
entryPoints:
|
# entryPoints:
|
||||||
- websecure
|
# - websecure
|
||||||
routes:
|
# routes:
|
||||||
- match: ${INGRESS_ROUTES_MATCH}
|
# - match: ${INGRESS_ROUTES_MATCH}
|
||||||
kind: Rule
|
# kind: Rule
|
||||||
services:
|
# services:
|
||||||
- name: home-assistant
|
# - name: home-assistant
|
||||||
port: ${SERVICE_PORT}
|
# port: ${SERVICE_PORT}
|
||||||
tls:
|
# tls:
|
||||||
secretName: ${INGRESS_TLS_SECRET_NAME}
|
# secretName: ${INGRESS_TLS_SECRET_NAME}
|
||||||
Reference in New Issue
Block a user