diff --git a/.gitignore b/.gitignore index 6dd21cbe2181780546c4c6d8dc5a59bc1fee3e38..24cdedf82f1b1bd6edaca14b7ca5b4d98868246e 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,4 @@ npm-debug.log* yarn-debug.log* -yarn-error.log* - -# Ignore kube directory -kube \ No newline at end of file +yarn-error.log* \ No newline at end of file diff --git a/kube/deployment.yaml b/kube/deployment.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3d6de3753bda82c1b51977e48b161c802c42becd --- /dev/null +++ b/kube/deployment.yaml @@ -0,0 +1,60 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: react-app-ingress + namespace: pwa-handke +spec: + tls: + - hosts: + - react-app.lehre.ris.bht-berlin.de + secretName: 'ssl-cert' + rules: + - host: react-app.lehre.ris.bht-berlin.de + http: + paths: + - pathType: Prefix + path: / + backend: + service: + name: react-app + port: + number: 3000 +--- +apiVersion: v1 +kind: Service +metadata: + name: react-app + namespace: pwa-handke +spec: + type: ClusterIP + selector: + app: react-app + ports: + - protocol: TCP + name: 'http' + port: 3000 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: react-app + namespace: pwa-handke +spec: + replicas: 1 + selector: + matchLabels: + app: react-app + template: + metadata: + labels: + app: react-app + spec: + containers: + - name: profwebfrontend + image: registry.bht-berlin.de:443/s87777/profwebfrontend:latest + ports: + - containerPort: 3000 + env: + - name: REACT_APP_API_SERVER_URL + value: https://rest-server.lehre.ris.bht-berlin.de + imagePullPolicy: Always \ No newline at end of file