diff --git a/Dockerfile b/Dockerfile index 85298db..5acf5df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/ingress.yaml b/ingress.yaml new file mode 100644 index 0000000..d657862 --- /dev/null +++ b/ingress.yaml @@ -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 \ No newline at end of file diff --git a/service.yaml b/service.yaml new file mode 100644 index 0000000..03cd391 --- /dev/null +++ b/service.yaml @@ -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 \ No newline at end of file