This commit is contained in:
parent
174ab60173
commit
f02bb6b457
4 changed files with 47 additions and 1 deletions
22
backend-ingress.yaml
Normal file
22
backend-ingress.yaml
Normal 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
24
frontend-ingress.yaml
Normal 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
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue