continuos deploy
This commit is contained in:
42
deploy/service.template.yaml
Normal file
42
deploy/service.template.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: home-assistant
|
||||
namespace: home-assistant
|
||||
spec:
|
||||
clusterIP: None
|
||||
ports:
|
||||
- port: ${SERVICE_PORT}
|
||||
protocol: TCP
|
||||
|
||||
---
|
||||
|
||||
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}
|
||||
Reference in New Issue
Block a user