diff --git a/apps/base/sirius-growth/deployment-portal.yaml b/apps/base/sirius-growth/deployment-portal.yaml deleted file mode 100644 index 5d7822b..0000000 --- a/apps/base/sirius-growth/deployment-portal.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: sirius-growth-portal - namespace: sirius-growth -spec: - replicas: 1 - selector: - matchLabels: - app: sirius-growth-portal - template: - metadata: - labels: - app: sirius-growth-portal - spec: - tolerations: - - key: dedicated - operator: Exists - effect: PreferNoSchedule - nodeSelector: - kubernetes.io/hostname: linode - containers: - - name: portal-api - image: forgejo.siriusdevops.com/sirius/sirius-growth-portal:406f25cc989e729362dea114eab81a69f04bdbaa@sha256:ecc7abee9bc956dfbb794a14085b3b83ac9f90cb4ca61cdd8145a66386d077f1 - imagePullPolicy: Always - ports: - - containerPort: 8091 - name: http - env: - - name: DATABASE_URL - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: database-url - - name: SESSION_SECRET - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: session-secret - - name: ADMIN_USERNAME - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: admin-username - - name: ADMIN_PASSWORD - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: admin-password - - name: S3_ENDPOINT - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: s3-endpoint - - name: S3_BUCKET - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: s3-bucket - - name: S3_ACCESS_KEY - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: s3-access-key - - name: S3_SECRET_KEY - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: s3-secret-key - - name: S3_REGION - valueFrom: - secretKeyRef: - name: sirius-growth-portal-app - key: s3-region - readinessProbe: - httpGet: - path: /api/portal/health - port: 8091 - initialDelaySeconds: 5 - periodSeconds: 10 - livenessProbe: - httpGet: - path: /api/portal/health - port: 8091 - initialDelaySeconds: 20 - periodSeconds: 20 - resources: - requests: - cpu: 50m - memory: 128Mi - limits: - memory: 384Mi diff --git a/apps/base/sirius-growth/httproute.yaml b/apps/base/sirius-growth/httproute.yaml index 07edc7b..69fa371 100644 --- a/apps/base/sirius-growth/httproute.yaml +++ b/apps/base/sirius-growth/httproute.yaml @@ -18,13 +18,6 @@ spec: backendRefs: - name: sirius-growth-contact port: 8090 - - matches: - - path: - type: PathPrefix - value: /api/portal - backendRefs: - - name: sirius-growth-portal - port: 8091 - matches: - path: type: PathPrefix diff --git a/apps/base/sirius-growth/kustomization.yaml b/apps/base/sirius-growth/kustomization.yaml index a074a30..694895c 100644 --- a/apps/base/sirius-growth/kustomization.yaml +++ b/apps/base/sirius-growth/kustomization.yaml @@ -4,10 +4,8 @@ resources: - namespace.yaml - deployment.yaml - deployment-api.yaml - - deployment-portal.yaml - service.yaml - service-api.yaml - - service-portal.yaml - httproute.yaml - deployer.yaml - cluster.yaml diff --git a/apps/base/sirius-growth/service-portal.yaml b/apps/base/sirius-growth/service-portal.yaml deleted file mode 100644 index 559537c..0000000 --- a/apps/base/sirius-growth/service-portal.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: sirius-growth-portal - namespace: sirius-growth -spec: - type: ClusterIP - selector: - app: sirius-growth-portal - ports: - - name: http - port: 8091 - targetPort: 8091 - protocol: TCP