add http-server part 2
All checks were successful
ci / build (push) Successful in 1m16s

This commit is contained in:
Christopher Hase 2025-04-04 13:43:21 +02:00
parent 4b4f35b546
commit 8a419a026e
3 changed files with 29 additions and 1 deletions

View file

@ -37,4 +37,4 @@ COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching
#CMD ["http-server", "."]
CMD ["npx", "http-server", "-p", "1234"]
CMD ["npx", "http-server", "-p", "8080"]

16
ingress.yaml Normal file
View file

@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: iching-ingress
spec:
rules:
- host: 192-168-197-2.c-one-infra.de # z.B. iching.local
http:
paths:
- path: /iching
pathType: Prefix
backend:
service:
name: iching-service
port:
number: 80

12
service.yaml Normal file
View file

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: iching-service
spec:
selector:
app: iching
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: ClusterIP