development -> main #1

Open
Christopher.Hase wants to merge 93 commits from development into main
4 changed files with 47 additions and 1 deletions
Showing only changes of commit f02bb6b457 - Show all commits

22
backend-ingress.yaml Normal file
View file

@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: iching-backend-ingress
namespace: argocd
spec:
ingressClassName: nginx
rules:
- host: 192-168-197-2.c-one-infra.de
http:
paths:
- path: /iching/api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: iching-service
port:
number: 81
tls:
- hosts:
- 192-168-197-2.c-one-infra.de
secretName: argocd-net-tls

24
frontend-ingress.yaml Normal file
View file

@ -0,0 +1,24 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: iching-frontend-ingress
namespace: argocd
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: 192-168-197-2.c-one-infra.de
http:
paths:
- path: /iching(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: iching-service
port:
number: 80
tls:
- hosts:
- 192-168-197-2.c-one-infra.de
secretName: argocd-net-tls

View file

@ -2,7 +2,7 @@ function handleClick(): void {
console.log("Der Button wurde geklickt!");
//alert("Hallo von TypeScript!");
fetch("/iching/api/command", { method: "POST" })
fetch("/api/command", { method: "POST" })
.then(res => res.text())
.then(text => console.log("Server sagt:", text))
.catch(error => console.error("Fehler:", error));