chore: add external access for home assistant
This commit is contained in:
parent
729a9fdd48
commit
20caa0588c
5 changed files with 60 additions and 0 deletions
36
apps/external-services/base/homeassistant.yaml
Normal file
36
apps/external-services/base/homeassistant.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
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: "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
|
||||
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,5 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../base
|
||||
- ns.yaml
|
||||
4
apps/external-services/overlays/system/ns.yaml
Normal file
4
apps/external-services/overlays/system/ns.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: external-services
|
||||
Loading…
Add table
Add a link
Reference in a new issue