diff --git a/k8s/deployment.yml b/k8s/deployment.yml index 4b627b4..ddab880 100644 --- a/k8s/deployment.yml +++ b/k8s/deployment.yml @@ -5,10 +5,12 @@ metadata: namespace: opentraum labels: app: web + app.kubernetes.io/name: web app.kubernetes.io/part-of: opentraum app.kubernetes.io/component: web spec: replicas: 2 + revisionHistoryLimit: 2 selector: matchLabels: app: web @@ -16,16 +18,27 @@ spec: metadata: labels: app: web + app.kubernetes.io/name: web app.kubernetes.io/part-of: opentraum app.kubernetes.io/component: web spec: + terminationGracePeriodSeconds: 30 + priorityClassName: opentraum-low + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app: web imagePullSecrets: - name: harbor-secret containers: - name: web - image: amdp-registry.skala-ai.com/skala26a-cloud/opentraum-web:991c0d236b393870eb7d965378dd259733210967 + image: amdp-registry.skala-ai.com/skala26a-cloud/opentraum-web:latest + imagePullPolicy: Always ports: - - containerPort: 3000 + - containerPort: 80 protocol: TCP resources: requests: @@ -37,7 +50,7 @@ spec: livenessProbe: httpGet: path: / - port: 3000 + port: 80 initialDelaySeconds: 30 periodSeconds: 15 timeoutSeconds: 5 @@ -45,7 +58,7 @@ spec: readinessProbe: httpGet: path: / - port: 3000 + port: 80 initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 5