diff --git a/gitops/home-assistant-ingress/application.yaml b/gitops/home-assistant-ingress/application.yaml new file mode 100644 index 0000000..c5e7870 --- /dev/null +++ b/gitops/home-assistant-ingress/application.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: home-assistant-ingress + namespace: argocd +spec: + project: default + + destination: + server: https://kubernetes.default.svc + namespace: ha + + source: + repoURL: http://192.168.50.100:8080/git/root/Argocd.git + targetRevision: master + path: gitops/home-assistant + directory: + recurse: true + + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/gitops/home-assistant-ingress/application.yaml b/gitops/home-assistant-ingress/application.yaml new file mode 100644 index 0000000..c5e7870 --- /dev/null +++ b/gitops/home-assistant-ingress/application.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: home-assistant-ingress + namespace: argocd +spec: + project: default + + destination: + server: https://kubernetes.default.svc + namespace: ha + + source: + repoURL: http://192.168.50.100:8080/git/root/Argocd.git + targetRevision: master + path: gitops/home-assistant + directory: + recurse: true + + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/gitops/home-assistant/ingress.yaml b/gitops/home-assistant/ingress.yaml new file mode 100644 index 0000000..e51671a --- /dev/null +++ b/gitops/home-assistant/ingress.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: home-assistant + namespace: ha +spec: + ingressClassName: traefik + rules: + - host: ha.local + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: home-assistant + port: + number: 8123