diff --git a/services/ni/nijobs/00-namespace.yaml b/services/ni/nijobs/00-namespace.yaml deleted file mode 100644 index 23e1801..0000000 --- a/services/ni/nijobs/00-namespace.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -apiVersion: v1 -kind: Namespace -metadata: - name: nijobs diff --git a/services/ni/nijobs/01-secrets.yaml b/services/ni/nijobs/01-secrets.yaml deleted file mode 100644 index ffeace7..0000000 --- a/services/ni/nijobs/01-secrets.yaml +++ /dev/null @@ -1,68 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: nijobs-be-secrets - namespace: nijobs -type: Opaque -stringData: - DB_URI: - - GOD_TOKEN: - ACCESS_CONTROL_ALLOW_ORIGINS: - MAIL_FROM: - MAIL_FROM_PASSWORD: - WEBSERVER_HOST: - - CLOUDINARY_URL: - - SESSION_SECRET: - PORT: - JWT_SECRET: - - PASSWORD_RECOVERY_LINK: - - ADMIN_EMAIL: - ADMIN_PASSWORD: ---- -apiVersion: v1 -kind: Secret -metadata: - name: nijobs-fe-secrets - namespace: nijobs -type: Opaque -stringData: - HOST_PORT: - PUBLIC_URL: - REACT_APP_API_HOSTNAME: - REACT_APP_BASE_ROUTE: - -# Google Analytics' Universal ID - ANALYTICS_ID: - -# Geolocation Rapid Api key - GEO_API_KEY: ---- -apiVersion: v1 -kind: Secret -metadata: - name: nijobs-locations-secrets - namespace: nijobs -type: Opaque -stringData: - DB_HOST: - # Specifies the port for the mongodb database - DB_PORT: - # For use with external databases mostly, which might require mongodb+srv://something syntax - DB_URI: - # Specifies the name of the database to connect to - DB_NAME: - - # Specifies the port in which the app will be exposed - PORT: - - # GOD Token - OVERRIDE IN PRODUCTION - GOD_TOKEN: - - #CORS allowed origin - OVERRIDE IN PRODUCTION - ACCESS_CONTROL_ALLOW_ORIGIN: diff --git a/services/ni/nijobs/02-deployments.yaml b/services/ni/nijobs/02-deployments.yaml deleted file mode 100644 index 97c191c..0000000 --- a/services/ni/nijobs/02-deployments.yaml +++ /dev/null @@ -1,90 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nijobs-be - namespace: nijobs -spec: - selector: - matchLabels: - app: nijobs-be - template: - metadata: - labels: - app: nijobs-be - spec: - containers: - - name: nijobs-be - image: registry.niaefeup.pt/niaefeup/nijobs-be:master - imagePullPolicy: Always - resources: - limits: - memory: "128Mi" - cpu: "500m" - ports: - - containerPort: 8087 - envFrom: - - secretRef: - name: nijobs-be-secrets - imagePullSecrets: - - name: harbor-pull-secret ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nijobs-locations - namespace: nijobs -spec: - selector: - matchLabels: - app: nijobs-locations - template: - metadata: - labels: - app: nijobs-locations - spec: - containers: - - name: nijobs-locations - image: registry.niaefeup.pt/niaefeup/nijobs-fe:master - imagePullPolicy: Always - resources: - limits: - memory: "128Mi" - cpu: "500m" - ports: - - containerPort: 8088 - envFrom: - - secretRef: - name: nijobs-locations-secrets - imagePullSecrets: - - name: harbor-pull-secret ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nijobs-fe - namespace: nijobs -spec: - selector: - matchLabels: - app: nijobs-fe - template: - metadata: - labels: - app: nijobs-fe - spec: - containers: - - name: nijobs-fe - image: registry.niaefeup.pt/niaefeup/nijobs-fe:master - imagePullPolicy: Always - resources: - limits: - memory: "128Mi" - cpu: "500m" - ports: - - containerPort: 80 - envFrom: - - secretRef: - name: nijobs-fe-secrets - imagePullSecrets: - - name: harbor-pull-secret \ No newline at end of file diff --git a/services/ni/nijobs/03-services.yaml b/services/ni/nijobs/03-services.yaml deleted file mode 100644 index f8fd6d6..0000000 --- a/services/ni/nijobs/03-services.yaml +++ /dev/null @@ -1,36 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: nijobs-fe - namespace: nijobs -spec: - selector: - app: nijobs-fe - ports: - - port: 80 - targetPort: 80 ---- -apiVersion: v1 -kind: Service -metadata: - name: nijobs-be - namespace: nijobs -spec: - selector: - app: nijobs-be - ports: - - port: 80 - targetPort: 8087 ---- -apiVersion: v1 -kind: Service -metadata: - name: nijobs-locations - namespace: nijobs -spec: - selector: - app: nijobs-locations - ports: - - port: 80 - targetPort: 8088 \ No newline at end of file diff --git a/services/ni/nijobs/04-ingress-routes.yaml b/services/ni/nijobs/04-ingress-routes.yaml deleted file mode 100644 index b7922df..0000000 --- a/services/ni/nijobs/04-ingress-routes.yaml +++ /dev/null @@ -1,55 +0,0 @@ ---- -apiVersion: traefik.io/v1alpha1 -kind: Middleware -metadata: - name: stripprefix-nijobs - namespace: nijobs -spec: - stripPrefix: - prefixes: - - "/nijobs" - forceSlash: false ---- -apiVersion: traefik.io/v1alpha1 -kind: Middleware -metadata: - name: stripprefix-nijobs-api - namespace: nijobs -spec: - stripPrefix: - prefixes: - - "/nijobs/api" - forceSlash: false ---- -apiVersion: traefik.io/v1alpha1 -kind: IngressRoute -metadata: - name: website-https - namespace: nijobs -spec: - entryPoints: - - websecure - routes: - - match: Host(`ni.fe.up.pt`) && PathPrefix(`/nijobs/api`) - kind: Rule - services: - - name: nijobs-be - port: 80 - middlewares: - - name: stripprefix-nijobs-api - - match: Host(`ni.fe.up.pt`) && PathPrefix(`/nijobs/locations`) - kind: Rule - services: - - name: nijobs-locations - port: 80 - middlewares: - - name: stripprefix-nijobs - - match: Host(`ni.fe.up.pt`) && PathPrefix(`/nijobs`) - kind: Rule - services: - - name: nijobs-fe - port: 80 - middlewares: - - name: stripprefix-nijobs - tls: - secretName: website-cert \ No newline at end of file