chore: add external access for home assistant
This commit is contained in:
parent
729a9fdd48
commit
db44f349c9
5 changed files with 56 additions and 0 deletions
37
apps/external-services/base/homeassistant.yaml
Normal file
37
apps/external-services/base/homeassistant.yaml
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: homeassistant
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-issuer-dns01
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- "homeassistant.nc.landry.land"
|
||||||
|
secretName: homeassistant-tls
|
||||||
|
rules:
|
||||||
|
- host: "homeassistant.nc.landry.land"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: "/"
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: homeassistant
|
||||||
|
port:
|
||||||
|
name: http
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: homeassistant
|
||||||
|
spec:
|
||||||
|
type: ExternalName
|
||||||
|
externalName:
|
||||||
|
- host: "homeassistant.int.nc.landry.land"
|
||||||
|
ports:
|
||||||
|
- port: 8123
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
4
apps/external-services/base/kustomization.yaml
Normal file
4
apps/external-services/base/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- homeassistant.yaml
|
||||||
0
apps/external-services/base/service.yaml
Normal file
0
apps/external-services/base/service.yaml
Normal file
11
apps/external-services/overlays/system/config.json
Normal file
11
apps/external-services/overlays/system/config.json
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"appName": "external-services",
|
||||||
|
"userGivenName": "external-services",
|
||||||
|
"destNamespace": "external-services",
|
||||||
|
"destServer": "https://kubernetes.default.svc",
|
||||||
|
"srcPath": "apps/external-services/overlays/system",
|
||||||
|
"srcRepoURL": "https://git.nc.landry.land/davad/argo.git",
|
||||||
|
"srcTargetRevision": "",
|
||||||
|
"labels": null,
|
||||||
|
"annotations": null
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ../../base
|
||||||
Loading…
Add table
Add a link
Reference in a new issue