Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9447f9b0be | ||
|
|
1e9e111745 | ||
|
|
4fbd3ceabd | ||
|
|
85250d62e7 | ||
|
|
3d1328301a | ||
|
|
7cd062ee1f | ||
|
|
305a568899 |
@@ -125,6 +125,7 @@ jobs:
|
||||
helm package deploy/helm/ai-spel-frontend --destination "$publish_dir" \
|
||||
--version "$version" --app-version "$version"
|
||||
registry_config="$RUNNER_TEMP/helm/registry.json"
|
||||
mkdir -p "$(dirname "$registry_config")"
|
||||
printf '{}' > "$registry_config"
|
||||
printf '%s' "$HARBOR_PASSWORD" | helm registry login harbor.k3s.k0.nu \
|
||||
--username "$HARBOR_USERNAME" --password-stdin \
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
FROM nginxinc/nginx-unprivileged:1.27-alpine
|
||||
|
||||
ARG FRONTEND_VERSION
|
||||
USER root
|
||||
RUN test -n "$FRONTEND_VERSION" \
|
||||
&& sed -i "s/__FRONTEND_VERSION__/${FRONTEND_VERSION}/g" /usr/share/nginx/html/index.html
|
||||
|
||||
RUN test -n "$FRONTEND_VERSION"
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
USER root
|
||||
RUN sed -i "s/__FRONTEND_VERSION__/${FRONTEND_VERSION}/g" /usr/share/nginx/html/index.html
|
||||
|
||||
USER 101
|
||||
EXPOSE 8080
|
||||
|
||||
@@ -2,5 +2,5 @@ apiVersion: v2
|
||||
name: ai-spel-frontend
|
||||
description: Static web frontend for the Swedish life simulator
|
||||
type: application
|
||||
version: 0.1.15
|
||||
appVersion: "0.1.15"
|
||||
version: 0.1.18
|
||||
appVersion: "0.1.18"
|
||||
@@ -7,6 +7,13 @@ metadata:
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
minReadySeconds: {{ .Values.deployment.minReadySeconds }}
|
||||
progressDeadlineSeconds: {{ .Values.deployment.progressDeadlineSeconds }}
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: {{ .Values.deployment.maxUnavailable }}
|
||||
maxSurge: {{ .Values.deployment.maxSurge }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
@@ -40,11 +47,15 @@ spec:
|
||||
port: http
|
||||
initialDelaySeconds: 2
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 3
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
replicaCount: 1
|
||||
deployment:
|
||||
# Keep the old single replica available until its replacement passes readiness.
|
||||
maxUnavailable: 0
|
||||
maxSurge: 1
|
||||
minReadySeconds: 5
|
||||
progressDeadlineSeconds: 600
|
||||
image:
|
||||
repository: harbor.k3s.k0.nu/ai-spel/frontend
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
Reference in New Issue
Block a user