diff --git a/apps/comparisons/base/frontend-deployment.yaml b/apps/comparisons/base/frontend-deployment.yaml deleted file mode 100644 index 30c7593..0000000 --- a/apps/comparisons/base/frontend-deployment.yaml +++ /dev/null @@ -1,57 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: comparisons - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - volumes: - - name: nginx-configmap - configMap: - name: nginx-configmap - items: - - key: nginx.conf - path: nginx.conf - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/comparisons-frontend:prod_6dc6e0c2 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - volumeMounts: - - name: nginx-configmap - mountPath: /etc/nginx/nginx.conf - subPath: nginx.conf - livenessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 10 - readinessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 20 - imagePullSecrets: - - name: regcred diff --git a/apps/comparisons/base/frontend-helmrelease.yaml b/apps/comparisons/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..b908c70 --- /dev/null +++ b/apps/comparisons/base/frontend-helmrelease.yaml @@ -0,0 +1,112 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: comparisons-frontend + namespace: comparisons +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + probes: + liveness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 10 + readiness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 20 + volumes: + _default: + - name: nginx-configmap + mountPath: + _default: /etc/nginx/nginx.conf + subPath: + _default: nginx.conf + configMap: + name: + _default: nginx-configmap + items: + - key: nginx.conf + path: + _default: nginx.conf + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/comparisons-frontend:prod_6dc6e0c2 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/comparisons/base/frontend-service.yaml b/apps/comparisons/base/frontend-service.yaml deleted file mode 100644 index 2197ee6..0000000 --- a/apps/comparisons/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: comparisons -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/comparisons/base/kustomization.yaml b/apps/comparisons/base/kustomization.yaml index 0ab9d12..97dd488 100644 --- a/apps/comparisons/base/kustomization.yaml +++ b/apps/comparisons/base/kustomization.yaml @@ -7,7 +7,6 @@ resources: - serviceaccount.yaml - backend-deployment.yaml - backend-service.yaml - - frontend-deployment.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml - nginx-configmap.yaml - tasks-execution-config.yaml diff --git a/apps/cross-section/base/deployment.yaml b/apps/cross-section/base/deployment.yaml deleted file mode 100644 index 4b4c6d9..0000000 --- a/apps/cross-section/base/deployment.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: cross-section-static - namespace: cross-section - labels: - app: cross-section-static -spec: - replicas: 2 - selector: - matchLabels: - app: cross-section-static - template: - metadata: - labels: - app: cross-section-static - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/cross-section-app:production_e09e648b - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - livenessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 10 - readinessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 20 - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/cross-section/base/frontend-helmrelease.yaml b/apps/cross-section/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..51b43e9 --- /dev/null +++ b/apps/cross-section/base/frontend-helmrelease.yaml @@ -0,0 +1,98 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: cross-section-frontend + namespace: cross-section +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + static: + enabled: true + deployment: + enabled: true + name: + _default: cross-section-static + replicaCount: + _default: 2 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + probes: + liveness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 10 + readiness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 20 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/cross-section-app:production_e09e648b + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: cross-section-static + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/cross-section/base/kustomization.yaml b/apps/cross-section/base/kustomization.yaml index eabd449..0475cdf 100644 --- a/apps/cross-section/base/kustomization.yaml +++ b/apps/cross-section/base/kustomization.yaml @@ -4,5 +4,4 @@ kind: Kustomization namespace: cross-section resources: - namespace.yaml - - deployment.yaml - - service.yaml + - frontend-helmrelease.yaml diff --git a/apps/cross-section/base/service.yaml b/apps/cross-section/base/service.yaml deleted file mode 100644 index 555507e..0000000 --- a/apps/cross-section/base/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: cross-section-static - namespace: cross-section -spec: - type: ClusterIP - selector: - app: cross-section-static - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/django/base/frontend-deployment.yaml b/apps/django/base/frontend-deployment.yaml deleted file mode 100644 index a201e4b..0000000 --- a/apps/django/base/frontend-deployment.yaml +++ /dev/null @@ -1,44 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: django - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - volumes: - - name: nginx-configmap - configMap: - name: nginx-configmap - items: - - key: nginx.conf - path: nginx.conf - defaultMode: 420 - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/sarex-frontend-dev:contour_0b579274 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - volumeMounts: - - name: nginx-configmap - mountPath: /etc/nginx/nginx.conf - subPath: nginx.conf - imagePullSecrets: - - name: regcred diff --git a/apps/django/base/frontend-helmrelease.yaml b/apps/django/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..28def42 --- /dev/null +++ b/apps/django/base/frontend-helmrelease.yaml @@ -0,0 +1,81 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: django-frontend + namespace: django +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + volumes: + _default: + - name: nginx-configmap + mountPath: + _default: /etc/nginx/nginx.conf + subPath: + _default: nginx.conf + configMap: + name: + _default: nginx-configmap + items: + - key: nginx.conf + path: + _default: nginx.conf + defaultMode: + _default: 420 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/sarex-frontend-dev:contour_0b579274 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-svc + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/django/base/frontend-service.yaml b/apps/django/base/frontend-service.yaml deleted file mode 100644 index f2c3ba6..0000000 --- a/apps/django/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-svc - namespace: django -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/django/base/kustomization.yaml b/apps/django/base/kustomization.yaml index 836acab..22e7a31 100644 --- a/apps/django/base/kustomization.yaml +++ b/apps/django/base/kustomization.yaml @@ -7,9 +7,8 @@ resources: - serviceaccount.yaml - backend-deployment.yaml - celery-deployment.yaml - - frontend-deployment.yaml - backend-service.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml - django-configmap.yaml - srx-admin-deployment.yaml - srx-admin-service.yaml diff --git a/apps/document-link/base/deployment.yaml b/apps/document-link/base/deployment.yaml deleted file mode 100644 index 9768188..0000000 --- a/apps/document-link/base/deployment.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: document-link - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - version: stable - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/document-link-frontend:wb_cb2027ce - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/document-link/base/frontend-helmrelease.yaml b/apps/document-link/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..d476f5c --- /dev/null +++ b/apps/document-link/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: document-link-frontend + namespace: document-link +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/document-link-frontend:wb_cb2027ce + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/document-link/base/kustomization.yaml b/apps/document-link/base/kustomization.yaml index 649812b..12557a0 100644 --- a/apps/document-link/base/kustomization.yaml +++ b/apps/document-link/base/kustomization.yaml @@ -4,5 +4,4 @@ kind: Kustomization namespace: document-link resources: - namespace.yaml - - deployment.yaml - - service.yaml + - frontend-helmrelease.yaml diff --git a/apps/document-link/base/service.yaml b/apps/document-link/base/service.yaml deleted file mode 100644 index 8fca3f7..0000000 --- a/apps/document-link/base/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: document-link -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/documentations/base/frontend-deployment.yaml b/apps/documentations/base/frontend-deployment.yaml deleted file mode 100644 index c190637..0000000 --- a/apps/documentations/base/frontend-deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: documentations - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/documentation-frontend-app:brusnika_ce5555d3 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/documentations/base/frontend-helmrelease.yaml b/apps/documentations/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..9d4a6c3 --- /dev/null +++ b/apps/documentations/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: documentations-frontend + namespace: documentations +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/documentation-frontend-app:brusnika_ce5555d3 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/documentations/base/frontend-service.yaml b/apps/documentations/base/frontend-service.yaml deleted file mode 100644 index f4ad089..0000000 --- a/apps/documentations/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: documentations -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/documentations/base/kustomization.yaml b/apps/documentations/base/kustomization.yaml index 2f212c2..1c37ed4 100644 --- a/apps/documentations/base/kustomization.yaml +++ b/apps/documentations/base/kustomization.yaml @@ -8,8 +8,7 @@ resources: - api-deployment.yaml - pdm-deployment.yaml - filestream-deployment.yaml - - frontend-deployment.yaml - api-service.yaml - pdm-service.yaml - filestream-service.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml diff --git a/apps/flows/base/frontend-deployment.yaml b/apps/flows/base/frontend-deployment.yaml deleted file mode 100644 index d9b357f..0000000 --- a/apps/flows/base/frontend-deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: flows - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/flows-frontend:contour_5b2bd144 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/flows/base/frontend-helmrelease.yaml b/apps/flows/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..13f402f --- /dev/null +++ b/apps/flows/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: flows-frontend + namespace: flows +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/flows-frontend:contour_5b2bd144 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/flows/base/frontend-service.yaml b/apps/flows/base/frontend-service.yaml deleted file mode 100644 index 3157655..0000000 --- a/apps/flows/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: flows -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/flows/base/kustomization.yaml b/apps/flows/base/kustomization.yaml index 2f070b6..c55025f 100644 --- a/apps/flows/base/kustomization.yaml +++ b/apps/flows/base/kustomization.yaml @@ -7,6 +7,5 @@ resources: - serviceaccount.yaml - backend-deployment.yaml - celery-deployment.yaml - - frontend-deployment.yaml - backend-service.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml diff --git a/apps/issues/base/frontend-deployment.yaml b/apps/issues/base/frontend-deployment.yaml deleted file mode 100644 index f58b577..0000000 --- a/apps/issues/base/frontend-deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: issues - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/contour_issues-frontend:716a2b73 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/issues/base/frontend-helmrelease.yaml b/apps/issues/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..eced8f9 --- /dev/null +++ b/apps/issues/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: issues-frontend + namespace: issues +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/contour_issues-frontend:716a2b73 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/issues/base/frontend-service.yaml b/apps/issues/base/frontend-service.yaml deleted file mode 100644 index 14dfd0f..0000000 --- a/apps/issues/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: issues -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/issues/base/kustomization.yaml b/apps/issues/base/kustomization.yaml index 2b1272a..efff3b1 100644 --- a/apps/issues/base/kustomization.yaml +++ b/apps/issues/base/kustomization.yaml @@ -7,7 +7,6 @@ resources: - serviceaccount.yaml - backend-deployment.yaml - celery-deployment.yaml - - frontend-deployment.yaml - backend-service.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml - production-configmap.yaml diff --git a/apps/notes/base/frontend-deployment.yaml b/apps/notes/base/frontend-deployment.yaml deleted file mode 100644 index 2cd1a60..0000000 --- a/apps/notes/base/frontend-deployment.yaml +++ /dev/null @@ -1,58 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: notes - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - service: frontend - spec: - volumes: - - name: nginx-configmap - configMap: - name: nginx-configmap - items: - - key: nginx.conf - path: nginx.conf - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/notes-frontend:production_0cb0909f - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - volumeMounts: - - name: nginx-configmap - mountPath: /etc/nginx/nginx.conf - subPath: nginx.conf - livenessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 10 - readinessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 20 - imagePullSecrets: - - name: regcred diff --git a/apps/notes/base/frontend-helmrelease.yaml b/apps/notes/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..1429aed --- /dev/null +++ b/apps/notes/base/frontend-helmrelease.yaml @@ -0,0 +1,112 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: notes-frontend + namespace: notes +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + probes: + liveness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 10 + readiness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 20 + volumes: + _default: + - name: nginx-configmap + mountPath: + _default: /etc/nginx/nginx.conf + subPath: + _default: nginx.conf + configMap: + name: + _default: nginx-configmap + items: + - key: nginx.conf + path: + _default: nginx.conf + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/notes-frontend:production_0cb0909f + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/notes/base/frontend-service.yaml b/apps/notes/base/frontend-service.yaml deleted file mode 100644 index 4e12102..0000000 --- a/apps/notes/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: notes -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/notes/base/kustomization.yaml b/apps/notes/base/kustomization.yaml index 2ff8124..4cb3bc3 100644 --- a/apps/notes/base/kustomization.yaml +++ b/apps/notes/base/kustomization.yaml @@ -7,6 +7,5 @@ resources: - serviceaccount.yaml - backend-deployment.yaml - backend-service.yaml - - frontend-deployment.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml - nginx-configmap.yaml diff --git a/apps/processing/base/frontend-deployment.yaml b/apps/processing/base/frontend-deployment.yaml deleted file mode 100644 index 0ec40a1..0000000 --- a/apps/processing/base/frontend-deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: processing - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/workflows-frontend:wb_ebc15427 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/processing/base/frontend-helmrelease.yaml b/apps/processing/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..0f8c299 --- /dev/null +++ b/apps/processing/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: processing-frontend + namespace: processing +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/workflows-frontend:wb_ebc15427 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-svc + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/processing/base/frontend-service.yaml b/apps/processing/base/frontend-service.yaml deleted file mode 100644 index 14a2a63..0000000 --- a/apps/processing/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-svc - namespace: processing -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/processing/base/kustomization.yaml b/apps/processing/base/kustomization.yaml index 9b0fc07..9832c17 100644 --- a/apps/processing/base/kustomization.yaml +++ b/apps/processing/base/kustomization.yaml @@ -8,6 +8,5 @@ resources: - api-deployment.yaml - engine-low.yaml - engine.yaml - - frontend-deployment.yaml - api-service.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml diff --git a/apps/projects/base/deployment.yaml b/apps/projects/base/deployment.yaml deleted file mode 100644 index bd1ae7b..0000000 --- a/apps/projects/base/deployment.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: projects-frontend-static - namespace: projects - labels: - app: projects-frontend-static -spec: - replicas: 2 - selector: - matchLabels: - app: projects-frontend-static - template: - metadata: - labels: - app: projects-frontend-static - spec: - containers: - - name: projects-frontend-static - image: cr.yandex/crp3ccidau046kdj8g9q/project-frontend-app:wb_fd49eb19 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - livenessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 60 - failureThreshold: 10 - readinessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 30 - failureThreshold: 20 - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/projects/base/frontend-helmrelease.yaml b/apps/projects/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..0441053 --- /dev/null +++ b/apps/projects/base/frontend-helmrelease.yaml @@ -0,0 +1,98 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: projects-frontend + namespace: projects +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + static: + enabled: true + deployment: + enabled: true + name: + _default: projects-frontend-static + replicaCount: + _default: 2 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + probes: + liveness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 60 + failureThreshold: + _default: 10 + readiness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 30 + failureThreshold: + _default: 20 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/project-frontend-app:wb_fd49eb19 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: projects-frontend-static-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/projects/base/kustomization.yaml b/apps/projects/base/kustomization.yaml index 2362307..63c5d33 100644 --- a/apps/projects/base/kustomization.yaml +++ b/apps/projects/base/kustomization.yaml @@ -4,5 +4,4 @@ kind: Kustomization namespace: projects resources: - namespace.yaml - - deployment.yaml - - service.yaml + - frontend-helmrelease.yaml diff --git a/apps/projects/base/service.yaml b/apps/projects/base/service.yaml deleted file mode 100644 index 5abbc82..0000000 --- a/apps/projects/base/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: projects-frontend-static-service - namespace: projects -spec: - type: ClusterIP - selector: - app: projects-frontend-static - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/remarks/base/deployment.yaml b/apps/remarks/base/deployment.yaml deleted file mode 100644 index e60b703..0000000 --- a/apps/remarks/base/deployment.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: remarks - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - version: stable - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/remarks-frontend:wb_002f8896 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/remarks/base/frontend-helmrelease.yaml b/apps/remarks/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..68a703a --- /dev/null +++ b/apps/remarks/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: remarks-frontend + namespace: remarks +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/remarks-frontend:wb_002f8896 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/remarks/base/kustomization.yaml b/apps/remarks/base/kustomization.yaml index 0646af2..bb87d58 100644 --- a/apps/remarks/base/kustomization.yaml +++ b/apps/remarks/base/kustomization.yaml @@ -4,5 +4,4 @@ kind: Kustomization namespace: remarks resources: - namespace.yaml - - deployment.yaml - - service.yaml + - frontend-helmrelease.yaml diff --git a/apps/remarks/base/service.yaml b/apps/remarks/base/service.yaml deleted file mode 100644 index 3f4cf80..0000000 --- a/apps/remarks/base/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: remarks -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/reviews/base/deployment.yaml b/apps/reviews/base/deployment.yaml deleted file mode 100644 index 49939f0..0000000 --- a/apps/reviews/base/deployment.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: reviews - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - version: stable - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/reviews-frontend:contour_3a66be35 - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/reviews/base/frontend-helmrelease.yaml b/apps/reviews/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..a0d01f4 --- /dev/null +++ b/apps/reviews/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: reviews-frontend + namespace: reviews +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/reviews-frontend:contour_3a66be35 + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/reviews/base/kustomization.yaml b/apps/reviews/base/kustomization.yaml index aa3ce06..f23190a 100644 --- a/apps/reviews/base/kustomization.yaml +++ b/apps/reviews/base/kustomization.yaml @@ -4,5 +4,4 @@ kind: Kustomization namespace: reviews resources: - namespace.yaml - - deployment.yaml - - service.yaml + - frontend-helmrelease.yaml diff --git a/apps/reviews/base/service.yaml b/apps/reviews/base/service.yaml deleted file mode 100644 index 1e0c511..0000000 --- a/apps/reviews/base/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: reviews -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/rfi/base/frontend-deployment.yaml b/apps/rfi/base/frontend-deployment.yaml deleted file mode 100644 index 332c8f3..0000000 --- a/apps/rfi/base/frontend-deployment.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: rfi - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/rfi-frontend:production_b827756f_wb - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/rfi/base/frontend-helmrelease.yaml b/apps/rfi/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..b7fa9d7 --- /dev/null +++ b/apps/rfi/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: rfi-frontend + namespace: rfi +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/rfi-frontend:production_b827756f_wb + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/rfi/base/frontend-service.yaml b/apps/rfi/base/frontend-service.yaml deleted file mode 100644 index d269afb..0000000 --- a/apps/rfi/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: rfi -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/rfi/base/kustomization.yaml b/apps/rfi/base/kustomization.yaml index 5da1ac4..9db706a 100644 --- a/apps/rfi/base/kustomization.yaml +++ b/apps/rfi/base/kustomization.yaml @@ -7,6 +7,5 @@ resources: - serviceaccount.yaml - backend-deployment.yaml - celery-deployment.yaml - - frontend-deployment.yaml - backend-service.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml diff --git a/apps/stamp-verification/base/deployment.yaml b/apps/stamp-verification/base/deployment.yaml deleted file mode 100644 index 99a1cbe..0000000 --- a/apps/stamp-verification/base/deployment.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: stamp-verification - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - version: stable - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/stamp-verification-frontend:e11a8f90be462fc325ff99c8c35a8a418815c27b - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - imagePullSecrets: - - name: regcred diff --git a/apps/stamp-verification/base/frontend-helmrelease.yaml b/apps/stamp-verification/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..56c1333 --- /dev/null +++ b/apps/stamp-verification/base/frontend-helmrelease.yaml @@ -0,0 +1,65 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: stamp-verification-frontend + namespace: stamp-verification +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/stamp-verification-frontend:e11a8f90be462fc325ff99c8c35a8a418815c27b + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-service + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/stamp-verification/base/kustomization.yaml b/apps/stamp-verification/base/kustomization.yaml index 9549795..eec3bed 100644 --- a/apps/stamp-verification/base/kustomization.yaml +++ b/apps/stamp-verification/base/kustomization.yaml @@ -4,5 +4,4 @@ kind: Kustomization namespace: stamp-verification resources: - namespace.yaml - - deployment.yaml - - service.yaml + - frontend-helmrelease.yaml diff --git a/apps/stamp-verification/base/service.yaml b/apps/stamp-verification/base/service.yaml deleted file mode 100644 index cacabbd..0000000 --- a/apps/stamp-verification/base/service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-service - namespace: stamp-verification -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/workspaces/base/frontend-deployment.yaml b/apps/workspaces/base/frontend-deployment.yaml deleted file mode 100644 index f718edf..0000000 --- a/apps/workspaces/base/frontend-deployment.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend - namespace: workspaces - labels: - app: frontend -spec: - replicas: 1 - selector: - matchLabels: - app: frontend - template: - metadata: - labels: - app: frontend - spec: - containers: - - name: frontend - image: cr.yandex/crp3ccidau046kdj8g9q/workspaces-v2-frontend:contour_7f95769f - imagePullPolicy: IfNotPresent - ports: - - name: http - containerPort: 80 - protocol: TCP - resources: - requests: - cpu: 100m - memory: 100Mi - livenessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 10 - readinessProbe: - httpGet: - path: /ping - port: 80 - initialDelaySeconds: 10 - periodSeconds: 10 - failureThreshold: 20 - imagePullSecrets: - - name: regcred diff --git a/apps/workspaces/base/frontend-helmrelease.yaml b/apps/workspaces/base/frontend-helmrelease.yaml new file mode 100644 index 0000000..cd7a738 --- /dev/null +++ b/apps/workspaces/base/frontend-helmrelease.yaml @@ -0,0 +1,98 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: workspaces-frontend + namespace: workspaces +spec: + interval: 10m + chart: + spec: + chart: universal-chart + version: "0.1.7" + sourceRef: + kind: HelmRepository + name: yc-oci-charts + namespace: flux-system + interval: 10m + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + global: + env: _default + services: + frontend: + enabled: true + deployment: + enabled: true + name: + _default: frontend + replicaCount: + _default: 1 + port: + _default: 80 + resources: + requests: + memory: + _default: 100Mi + cpu: + _default: 100m + probes: + liveness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 10 + readiness: + enabled: + _default: true + type: + _default: httpGet + httpGet: + path: + _default: /ping + port: + _default: 80 + initialDelaySeconds: + _default: 10 + periodSeconds: + _default: 10 + failureThreshold: + _default: 20 + image: + name: + _default: cr.yandex/crp3ccidau046kdj8g9q/workspaces-v2-frontend:contour_7f95769f + pullPolicy: + _default: IfNotPresent + service: + enabled: true + name: + _default: frontend-svc + type: + _default: ClusterIP + port: + _default: 80 + targetPort: + _default: 80 + portName: + _default: http + imagePullSecrets: + enabled: + _default: true + name: + _default: regcred diff --git a/apps/workspaces/base/frontend-service.yaml b/apps/workspaces/base/frontend-service.yaml deleted file mode 100644 index 9d8cfdd..0000000 --- a/apps/workspaces/base/frontend-service.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend-svc - namespace: workspaces -spec: - type: ClusterIP - selector: - app: frontend - ports: - - name: http - port: 80 - targetPort: 80 - protocol: TCP diff --git a/apps/workspaces/base/kustomization.yaml b/apps/workspaces/base/kustomization.yaml index 6ebeaba..b23ce93 100644 --- a/apps/workspaces/base/kustomization.yaml +++ b/apps/workspaces/base/kustomization.yaml @@ -7,5 +7,4 @@ resources: - serviceaccount.yaml - backend-deployment.yaml - backend-service.yaml - - frontend-deployment.yaml - - frontend-service.yaml + - frontend-helmrelease.yaml