This commit is contained in:
parent
4b4f35b546
commit
8a419a026e
3 changed files with 29 additions and 1 deletions
|
@ -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
16
ingress.yaml
Normal 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
12
service.yaml
Normal 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
|
Loading…
Reference in a new issue