diff --git a/frontend/openshift.deploy.yml b/frontend/openshift.deploy.yml deleted file mode 100644 index 87d5f4d0..00000000 --- a/frontend/openshift.deploy.yml +++ /dev/null @@ -1,169 +0,0 @@ -apiVersion: template.openshift.io/v1 -kind: Template -parameters: - - name: NAME - description: Module name - value: nr-results-exam - - name: COMPONENT - description: Component name - value: frontend - - name: ZONE - description: Deployment zone, e.g. pr-### or prod - required: true - - name: TAG - description: Image tag; e.g. PR number, latest or prod - required: true - - name: DOMAIN - value: apps.silver.devops.gov.bc.ca - - name: CPU_REQUEST - value: "25m" - - name: MEMORY_REQUEST - value: "50Mi" - - name: CPU_LIMIT - value: "75m" - - name: MEMORY_LIMIT - value: "150Mi" - - name: MIN_REPLICAS - description: The minimum amount of replicas for the horizontal pod autoscaler. - value: "3" - - name: MAX_REPLICAS - description: The maximum amount of replicas for the horizontal pod autoscaler. - value: "5" - - name: REGISTRY - description: Container registry to import from (internal is image-registry.openshift-image-registry.svc:5000) - value: ghcr.io - - name: ORG - description: Organization name, e.g. bcgov - value: bcgov - - name: LOG_LEVEL - description: Caddy logging level DEBUG, INFO, WARN, ERROR, PANIC, and FATAL (https://github.com/caddyserver/caddy/blob/master/logging.go) - value: "info" - - name: VITE_USER_POOLS_WEB_CLIENT_ID - - name: VITE_QUESTIONS_API_KEY - - name: VITE_ZONE - value: DEV - - name: S3_SECRETKEY - description: Dummy param to satisfy workflow - - name: RANDOM_EXPRESSION - description: Random expression to make sure deployments update - from: "[a-zA-Z0-9]{32}" - generate: expression -objects: - - kind: Deployment - apiVersion: apps/v1 - metadata: - labels: - app: "${NAME}-${ZONE}" - name: "${NAME}-${ZONE}-${COMPONENT}" - spec: - replicas: 1 - selector: - matchLabels: - deployment: "${NAME}-${ZONE}-${COMPONENT}" - strategy: - type: RollingUpdate - template: - metadata: - labels: - app: "${NAME}-${ZONE}" - deployment: "${NAME}-${ZONE}-${COMPONENT}" - spec: - containers: - - image: ${REGISTRY}/${ORG}/${NAME}/${COMPONENT}:${TAG} - securityContext: - capabilities: - add: ["NET_BIND_SERVICE"] - imagePullPolicy: Always - name: ${NAME} - env: - - name: LOG_LEVEL - value: "${LOG_LEVEL}" - - name: VITE_BACKEND_URL - value: "https://${NAME}-${ZONE}-backend.${DOMAIN}:443" - - name: VITE_USER_POOLS_WEB_CLIENT_ID - value: "${VITE_USER_POOLS_WEB_CLIENT_ID}" - - name: VITE_QUESTIONS_API_KEY - value: "${VITE_QUESTIONS_API_KEY}" - - name: VITE_ZONE - value: "${ZONE}" - - name: RANDOM_EXPRESSION - value: ${RANDOM_EXPRESSION} - ports: - - containerPort: 3000 - protocol: TCP - resources: - requests: - cpu: "${CPU_REQUEST}" - memory: "${MEMORY_REQUEST}" - limits: - cpu: "${CPU_LIMIT}" - memory: "${MEMORY_LIMIT}" - readinessProbe: - httpGet: - path: / - port: 3000 - scheme: HTTP - initialDelaySeconds: 5 - periodSeconds: 2 - timeoutSeconds: 2 - successThreshold: 1 - failureThreshold: 30 - livenessProbe: - successThreshold: 1 - failureThreshold: 3 - httpGet: - path: / - port: 3000 - scheme: HTTP - initialDelaySeconds: 15 - periodSeconds: 30 - timeoutSeconds: 5 - - apiVersion: v1 - kind: Service - metadata: - labels: - app: "${NAME}-${ZONE}" - name: "${NAME}-${ZONE}-${COMPONENT}" - spec: - ports: - - name: 3000-tcp - protocol: TCP - port: 80 - targetPort: 3000 - selector: - deployment: "${NAME}-${ZONE}-${COMPONENT}" - - apiVersion: route.openshift.io/v1 - kind: Route - metadata: - labels: - app: "${NAME}-${ZONE}" - name: "${NAME}-${ZONE}-${COMPONENT}" - spec: - host: "${NAME}-${ZONE}-${COMPONENT}.${DOMAIN}" - port: - targetPort: 3000-tcp - to: - kind: Service - name: "${NAME}-${ZONE}-${COMPONENT}" - weight: 100 - tls: - termination: edge - insecureEdgeTerminationPolicy: Redirect - - apiVersion: autoscaling/v2 - kind: HorizontalPodAutoscaler - metadata: - name: "${NAME}-${ZONE}-${COMPONENT}" - spec: - scaleTargetRef: - apiVersion: apps.openshift.io/v1 - kind: Deployment - name: "${NAME}-${ZONE}-${COMPONENT}" - minReplicas: "${{MIN_REPLICAS}}" - maxReplicas: "${{MAX_REPLICAS}}" - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 100 diff --git a/frontend/package-lock.json b/frontend/package-lock.json index a54d2607..3dcd1b9c 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -21805,9 +21805,9 @@ } }, "node_modules/vite": { - "version": "5.4.8", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz", - "integrity": "sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ==", + "version": "5.4.12", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.12.tgz", + "integrity": "sha512-KwUaKB27TvWwDJr1GjjWthLMATbGEbeWYZIbGZ5qFIsgPP3vWzLu4cVooqhm5/Z2SPDUMjyPVjTztm5tYKwQxA==", "license": "MIT", "dependencies": { "esbuild": "^0.21.3",