diff --git a/charts/multiwoven/Chart.yaml b/charts/aisquared/Chart.yaml similarity index 74% rename from charts/multiwoven/Chart.yaml rename to charts/aisquared/Chart.yaml index e415d4e..8f470c6 100644 --- a/charts/multiwoven/Chart.yaml +++ b/charts/aisquared/Chart.yaml @@ -1,11 +1,11 @@ apiVersion: v2 -name: multiwoven +name: aisquared description: | - Multiwoven is an open-source reverse ETL tool, offering an alternative to qHightouch, Census, and similar platforms. 🔥 + AI Squared is an open-source reverse ETL tool, offering an alternative to qHightouch, Census, and similar platforms. 🔥 # kubeVersion: ">=1.16.0" type: application -version: 0.62.0 -appVersion: "0.62.0" +version: 0.63.0 +appVersion: "0.63.0" home: https://github.com/Multiwoven/multiwoven sources: - https://docs.squared.ai/open-source/guides/setup/helm diff --git a/charts/multiwoven/templates/_helpers.tpl b/charts/aisquared/templates/_helpers.tpl similarity index 100% rename from charts/multiwoven/templates/_helpers.tpl rename to charts/aisquared/templates/_helpers.tpl diff --git a/charts/multiwoven/templates/multiwoven-cluster-role.yaml b/charts/aisquared/templates/aisquared-cluster-role.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-cluster-role.yaml rename to charts/aisquared/templates/aisquared-cluster-role.yaml diff --git a/charts/aisquared/templates/aisquared-config.yaml b/charts/aisquared/templates/aisquared-config.yaml new file mode 100644 index 0000000..5ca473b --- /dev/null +++ b/charts/aisquared/templates/aisquared-config.yaml @@ -0,0 +1,69 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "chart.fullname" . }}-config + namespace: {{ .Values.kubernetesNamespace }} + labels: + io.kompose.service: {{ include "chart.fullname" . }}-config + {{- include "chart.labels" . | nindent 4 }} +data: + ALLOWED_HOST: {{ .Values.aisquaredConfig.allowedHost | quote }} + API_HOST: {{ .Values.aisquaredConfig.apiHost | quote }} + APP_ENV: {{ .Values.aisquaredConfig.appEnv | quote }} + APP_REVISION: {{ .Values.aisquaredConfig.appRevision | quote }} + APPSIGNAL_APP_ENV: {{ .Values.aisquaredConfig.appEnv | quote }} + APPSIGNAL_PUSH_API_KEY: {{ .Values.aisquaredConfig.appsignalPushApiKey | quote }} + AWS_ACCESS_KEY_ID: {{ .Values.aisquaredConfig.awsAccessKeyId | quote }} + AWS_SECRET_ACCESS_KEY: {{ .Values.aisquaredConfig.awsSecretAccessKey | quote }} + BRAND_NAME: {{ .Values.aisquaredConfig.smtpBrandName | quote }} + DATABRICKS_DRIVER_PATH: {{ .Values.aisquaredConfig.databricksDriverPath | quote }} + DB_PORT: {{ .Values.aisquaredConfig.dbPort | quote }} + DB_HOST: {{ .Values.aisquaredConfig.dbHost | quote }} + {{ if not .Values.secretsStore.enabled }} + DB_PASSWORD: {{ .Values.aisquaredConfig.dbPassword | quote }} + DB_USERNAME: {{ .Values.aisquaredConfig.dbUsername | quote }} + {{ end }} + GRPC_ENABLE_FORK_SUPPORT: {{ .Values.aisquaredConfig.grpcEnableForkSupport | quote }} + JWT_SECRET: {{ .Values.aisquaredConfig.jwtSecret | quote }} + NEW_RELIC_KEY: {{ .Values.aisquaredConfig.newRelicKey | quote }} + RAILS_ENV: {{ .Values.aisquaredConfig.railsEnv | quote }} + RAILS_LOG_LEVEL: {{ .Values.aisquaredConfig.railsLogLevel | quote }} + SECRET_KEY_BASE: {{ .Values.aisquaredConfig.secretKeyBase | quote }} + SKIP_DB_MIGRATION: {{ .Values.aisquaredConfig.skipDbMigration | quote }} + SMTP_ADDRESS: {{ .Values.aisquaredConfig.smtpAddress | quote }} + SMTP_HOST: {{ .Values.aisquaredConfig.smtpHost | quote }} + SMTP_PASSWORD: {{ .Values.aisquaredConfig.smtpPassword | quote }} + SMTP_PORT: {{ .Values.aisquaredConfig.smtpPort | quote }} + SMTP_USERNAME: {{ .Values.aisquaredConfig.smtpUsername | quote }} + SMTP_SENDER_EMAIL: {{ .Values.aisquaredConfig.smtpSenderEmail | quote }} + SNOWFLAKE_DRIVER_PATH: {{ .Values.aisquaredConfig.snowflakeDriverPath | quote }} + STORAGE_ACCESS_KEY: {{ .Values.aisquaredConfig.storageAccessKey }} + STORAGE_ACCOUNT_NAME: {{ .Values.aisquaredConfig.storageAccountName }} + SYNC_EXTRACTOR_BATCH_SIZE: {{ .Values.aisquaredConfig.syncExtractorBatchSize | quote }} + SYNC_EXTRACTOR_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.syncExtractorThreadPoolSize | quote }} + SYNC_LOADER_BATCH_SIZE: {{ .Values.aisquaredConfig.syncLoaderBatchSize | quote }} + SYNC_LOADER_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.syncLoaderThreadPoolSize | quote }} + TEMPORAL_ACTIVITY_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.temporalActivityThreadPoolSize | quote }} + TEMPORAL_CLIENT_CHAIN: {{ .Values.aisquaredConfig.temporalClientChain | quote }} + TEMPORAL_CLIENT_KEY: {{ .Values.aisquaredConfig.temporalClientKey | quote }} + TEMPORAL_HOST: {{ .Values.aisquaredConfig.temporalHost | quote }} + TEMPORAL_NAMESPACE: {{ .Values.aisquaredConfig.temporalNamespace | quote }} + TEMPORAL_PORT: {{ .Values.aisquaredConfig.temporalPort | quote }} + TEMPORAL_POSTGRES_DEFAULT_PORT: {{ .Values.aisquaredConfig.temporalPostgresDefaultPort | quote }} + TEMPORAL_POSTGRES_PASSWORD: {{ .Values.aisquaredConfig.temporalPostgresPassword | quote }} + TEMPORAL_POSTGRES_USER: {{ .Values.aisquaredConfig.temporalPostgresUser | quote }} + TEMPORAL_POSTGRESQL_VERSION: {{ .Values.aisquaredConfig.temporalPostgresqlVersion | quote }} + TEMPORAL_ROOT_CERT: {{ .Values.aisquaredConfig.temporalRootCert | quote }} + TEMPORAL_TASK_QUEUE: {{ .Values.aisquaredConfig.temporalTaskQueue | quote }} + TEMPORAL_UI_VERSION: {{ .Values.aisquaredConfig.temporalUiVersion | quote }} + TEMPORAL_VERSION: {{ .Values.aisquaredConfig.temporalVersion | quote }} + TEMPORAL_WORKFLOW_THREAD_POOL_SIZE: {{ .Values.aisquaredConfig.temporalWorkflowThreadPoolSize | quote }} + UI_HOST: {{ .Values.aisquaredConfig.uiHost | quote }} + USER_EMAIL_VERIFICATION: {{ .Values.aisquaredConfig.userEmailVerification | quote }} + VITE_API_HOST: {{ .Values.aisquaredConfig.viteApiHost | quote }} + VITE_APPSIGNAL_PUSH_API_KEY: {{ .Values.aisquaredConfig.viteAppsignalPushApiKey | quote }} + VITE_BRAND_NAME: {{ .Values.aisquaredConfig.viteBrandName | quote }} + VITE_LOGO_URL: {{ .Values.aisquaredConfig.viteLogoUrl | quote }} + VITE_BRAND_COLOR: {{ .Values.aisquaredConfig.viteBrandColor | quote }} + VITE_BRAND_HOVER_COLOR: {{ .Values.aisquaredConfig.viteBrandHoverColor | quote }} + VITE_FAV_ICON_URL: {{ .Values.aisquaredConfig.viteFavIconUrl | quote }} diff --git a/charts/multiwoven/templates/multiwoven-ingress.yaml b/charts/aisquared/templates/aisquared-ingress.yaml similarity index 64% rename from charts/multiwoven/templates/multiwoven-ingress.yaml rename to charts/aisquared/templates/aisquared-ingress.yaml index 38cdadd..345ab7b 100644 --- a/charts/multiwoven/templates/multiwoven-ingress.yaml +++ b/charts/aisquared/templates/aisquared-ingress.yaml @@ -8,10 +8,10 @@ metadata: annotations: {{ if .Values.externalDNS.enabled }} {{- if .Values.temporal.enabled }} - external-dns.alpha.kubernetes.io/hostname: "{{ .Values.multiwovenConfig.uiHost }},{{ .Values.multiwovenConfig.apiHost }},{{ .Values.multiwovenConfig.workerHost }},{{ .Values.multiwovenConfig.solidWorkerHost }},{{ .Values.multiwovenConfig.temporalUiHost }}" + external-dns.alpha.kubernetes.io/hostname: "{{ .Values.aisquaredConfig.uiHost }},{{ .Values.aisquaredConfig.apiHost }},{{ .Values.aisquaredConfig.workerHost }},{{ .Values.aisquaredConfig.solidWorkerHost }},{{ .Values.aisquaredConfig.temporalUiHost }}" {{- end }} {{- if not .Values.temporal.enabled }} - external-dns.alpha.kubernetes.io/hostname: "{{ .Values.multiwovenConfig.uiHost }},{{ .Values.multiwovenConfig.apiHost }},{{ .Values.multiwovenConfig.workerHost }},{{ .Values.multiwovenConfig.solidWorkerHost }}" + external-dns.alpha.kubernetes.io/hostname: "{{ .Values.aisquaredConfig.uiHost }},{{ .Values.aisquaredConfig.apiHost }},{{ .Values.aisquaredConfig.workerHost }},{{ .Values.aisquaredConfig.solidWorkerHost }}" {{- end }} {{ end }} @@ -24,12 +24,12 @@ metadata: {{ if .Values.nginxIngress.enabled }} kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/backend-protocol: "HTTP" - cert-manager.io/issuer: {{ .Values.multiwovenConfig.tlsCertIssuer }} + cert-manager.io/issuer: {{ .Values.aisquaredConfig.tlsCertIssuer }} nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "true" - nginx.ingress.kubernetes.io/whitelist-source-range: {{ .Values.multiwovenConfig.allowedSourceIP }} - nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.multiwovenConfig.nginxProxyBodySize }} - {{ if not .Values.nginxIngress.enableMetrics }} + nginx.ingress.kubernetes.io/whitelist-source-range: {{ .Values.aisquaredConfig.allowedSourceIP }} + nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.aisquaredConfig.nginxProxyBodySize }} + {{ if .Values.nginxIngress.enableMetrics }} nginx.ingress.kubernetes.io/server-snippet: | location = /metrics { return 403; @@ -50,12 +50,12 @@ spec: ingressClassName: nginx tls: - hosts: - - {{ .Values.multiwovenConfig.uiHost }} - - {{ .Values.multiwovenConfig.apiHost }} - - {{ .Values.multiwovenConfig.workerHost }} - - {{ .Values.multiwovenConfig.solidWorkerHost }} + - {{ .Values.aisquaredConfig.uiHost }} + - {{ .Values.aisquaredConfig.apiHost }} + - {{ .Values.aisquaredConfig.workerHost }} + - {{ .Values.aisquaredConfig.solidWorkerHost }} {{ if .Values.temporal.enabled }} - - {{ .Values.multiwovenConfig.temporalUiHost }} + - {{ .Values.aisquaredConfig.temporalUiHost }} {{ end }} secretName: mw-tls-cert {{ end }} @@ -67,7 +67,7 @@ spec: ingressClassName: alb {{ end }} rules: - - host: {{ .Values.multiwovenConfig.uiHost }} + - host: {{ .Values.aisquaredConfig.uiHost }} http: paths: - path: / @@ -76,8 +76,8 @@ spec: service: name: '{{ include "chart.fullname" . }}-ui' port: - number: {{ (index .Values.multiwovenUI.ports 0).port }} - - host: {{ .Values.multiwovenConfig.apiHost }} + number: {{ (index .Values.aisquaredUI.ports 0).port }} + - host: {{ .Values.aisquaredConfig.apiHost }} http: paths: - path: / @@ -86,8 +86,8 @@ spec: service: name: '{{ include "chart.fullname" . }}-server' port: - number: {{ (index .Values.multiwovenServer.ports 0).port }} - - host: {{ .Values.multiwovenConfig.workerHost }} + number: {{ (index .Values.aisquaredServer.ports 0).port }} + - host: {{ .Values.aisquaredConfig.workerHost }} http: paths: - path: / @@ -96,8 +96,8 @@ spec: service: name: '{{ include "chart.fullname" . }}-worker' port: - number: {{ .Values.multiwovenWorker.healthPort }} - - host: {{ .Values.multiwovenConfig.solidWorkerHost }} + number: {{ .Values.aisquaredWorker.healthPort }} + - host: {{ .Values.aisquaredConfig.solidWorkerHost }} http: paths: - path: / @@ -106,9 +106,9 @@ spec: service: name: '{{ include "chart.fullname" . }}-solid-worker' port: - number: {{ .Values.multiwovenSolidWorker.healthPort }} + number: {{ .Values.aisquaredSolidWorker.healthPort }} {{ if .Values.temporal.enabled }} - - host: {{ .Values.multiwovenConfig.temporalUiHost }} + - host: {{ .Values.aisquaredConfig.temporalUiHost }} http: paths: - backend: diff --git a/charts/multiwoven/templates/multiwoven-namespace.yaml b/charts/aisquared/templates/aisquared-namespace.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-namespace.yaml rename to charts/aisquared/templates/aisquared-namespace.yaml diff --git a/charts/multiwoven/templates/multiwoven-postgresql-deployment.yaml b/charts/aisquared/templates/aisquared-postgresql-deployment.yaml similarity index 77% rename from charts/multiwoven/templates/multiwoven-postgresql-deployment.yaml rename to charts/aisquared/templates/aisquared-postgresql-deployment.yaml index 9f067d8..a901719 100644 --- a/charts/multiwoven/templates/multiwoven-postgresql-deployment.yaml +++ b/charts/aisquared/templates/aisquared-postgresql-deployment.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenPostgresql.enabled }} +{{ if .Values.aisquaredPostgresql.enabled }} apiVersion: apps/v1 kind: Deployment metadata: @@ -8,11 +8,11 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenPostgresql.annotations }} + {{- with .Values.aisquaredPostgresql.annotations }} {{- toYaml . | nindent 4 }} {{- end }} spec: - replicas: {{ .Values.multiwovenPostgresql.replicas }} + replicas: {{ .Values.aisquaredPostgresql.replicas }} selector: matchLabels: io.kompose.service: {{ include "chart.fullname" . }}-postgresql @@ -20,11 +20,11 @@ spec: template: metadata: labels: - io.kompose.network/multiwoven-server-default: "true" + io.kompose.network/aisquared-server-default: "true" io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenPostgresql.annotations }} + {{- with .Values.aisquaredPostgresql.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: @@ -42,7 +42,7 @@ spec: name: {{ include "chart.fullname" . }}-config - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} - image: {{ .Values.multiwovenPostgresql.multiwovenPostgresql.image.repository }}:{{ .Values.multiwovenPostgresql.multiwovenPostgresql.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredPostgresql.aisquaredPostgresql.image.repository }}:{{ .Values.aisquaredPostgresql.aisquaredPostgresql.image.tag | default .Chart.AppVersion }} livenessProbe: initialDelaySeconds: 30 periodSeconds: 10 @@ -56,7 +56,7 @@ spec: periodSeconds: 10 tcpSocket: port: 5432 - resources: {{- toYaml .Values.multiwovenPostgresql.multiwovenPostgresql.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredPostgresql.aisquaredPostgresql.resources | nindent 10 }} volumeMounts: - mountPath: /var/lib/postgresql/data subPath: postgres diff --git a/charts/multiwoven/templates/multiwoven-postgresql-pvc.yaml b/charts/aisquared/templates/aisquared-postgresql-pvc.yaml similarity index 91% rename from charts/multiwoven/templates/multiwoven-postgresql-pvc.yaml rename to charts/aisquared/templates/aisquared-postgresql-pvc.yaml index 312ae21..25ebba8 100644 --- a/charts/multiwoven/templates/multiwoven-postgresql-pvc.yaml +++ b/charts/aisquared/templates/aisquared-postgresql-pvc.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenPostgresql.enabled }} +{{ if .Values.aisquaredPostgresql.enabled }} apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/charts/multiwoven/templates/multiwoven-postgresql-service.yaml b/charts/aisquared/templates/aisquared-postgresql-service.yaml similarity index 72% rename from charts/multiwoven/templates/multiwoven-postgresql-service.yaml rename to charts/aisquared/templates/aisquared-postgresql-service.yaml index bae3fe8..36fad34 100644 --- a/charts/multiwoven/templates/multiwoven-postgresql-service.yaml +++ b/charts/aisquared/templates/aisquared-postgresql-service.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenPostgresql.enabled }} +{{ if .Values.aisquaredPostgresql.enabled }} apiVersion: v1 kind: Service metadata: @@ -8,10 +8,10 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.labels" . | nindent 4 }} spec: - type: {{ .Values.multiwovenPostgresql.type }} + type: {{ .Values.aisquaredPostgresql.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-postgresql {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenPostgresql.ports | toYaml | nindent 2 -}} + {{- .Values.aisquaredPostgresql.ports | toYaml | nindent 2 -}} {{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-mw.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-mw.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-mw.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-mw.yaml diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-temp-store.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-temp-store.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-temp-store.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-temp-store.yaml diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-temporal-visibility.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-temporal-visibility.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-temporal-visibility.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-temporal-visibility.yaml diff --git a/charts/multiwoven/templates/multiwoven-secret-provider-class-temporal.yaml b/charts/aisquared/templates/aisquared-secret-provider-class-temporal.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-secret-provider-class-temporal.yaml rename to charts/aisquared/templates/aisquared-secret-provider-class-temporal.yaml diff --git a/charts/multiwoven/templates/multiwoven-server-deployment.yaml b/charts/aisquared/templates/aisquared-server-deployment.yaml similarity index 80% rename from charts/multiwoven/templates/multiwoven-server-deployment.yaml rename to charts/aisquared/templates/aisquared-server-deployment.yaml index 284c806..2556d47 100644 --- a/charts/multiwoven/templates/multiwoven-server-deployment.yaml +++ b/charts/aisquared/templates/aisquared-server-deployment.yaml @@ -8,11 +8,11 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-server {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenServer.annotations }} + {{- with .Values.aisquaredServer.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: - replicas: {{ .Values.multiwovenServer.replicas }} + replicas: {{ .Values.aisquaredServer.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-server @@ -25,18 +25,18 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-server {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenServer.annotations }} + {{- with .Values.aisquaredServer.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.create | ternary .Values.serviceAccount.name "default" }} automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenServer.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredServer.podSecurityContext.fsGroup }} initContainers: {{ if .Values.securityContext.readOnlyRootFilesystem }} - name: copy-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} command: - /bin/sh @@ -49,8 +49,8 @@ spec: - name: rails-config mountPath: /mnt/rails securityContext: - runAsUser: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -62,7 +62,7 @@ spec: {{- end }} {{- end }} {{ end }} - {{ if .Values.multiwovenConfig.azureSpot }} + {{ if .Values.aisquaredConfig.azureSpot }} tolerations: - key: "kubernetes.azure.com/scalesetpriority" operator: "Equal" @@ -107,20 +107,20 @@ spec: {{ end }} {{ if .Values.multipleDbHosts.enabled }} - name: DB_HOST - value: {{ .Values.multipleDbHosts.multiwovenDBHost }} + value: {{ .Values.multipleDbHosts.aisquaredDBHost }} - name: DB_NAME - value: {{ .Values.multipleDbHosts.multiwovenDBName }} + value: {{ .Values.multipleDbHosts.aisquaredDBName }} {{ end }} - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenServer.multiwovenServer.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredServer.aisquaredServer.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -134,23 +134,23 @@ spec: livenessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenServer.ports 0).port }} + port: {{ (index .Values.aisquaredServer.ports 0).port }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-server ports: - - containerPort: {{ (index .Values.multiwovenServer.ports 0).port }} + - containerPort: {{ (index .Values.aisquaredServer.ports 0).port }} readinessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenServer.ports 0).port }} + port: {{ (index .Values.aisquaredServer.ports 0).port }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenServer.multiwovenServer.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredServer.aisquaredServer.resources | nindent 10 }} imagePullPolicy: Always volumeMounts: {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store mountPath: /run/secrets/mw-secrets readOnly: true {{ end }} @@ -180,7 +180,7 @@ spec: path: ./temporal.pem {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store csi: driver: secrets-store.csi.k8s.io readOnly: true @@ -200,7 +200,7 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-server-hpa.yaml b/charts/aisquared/templates/aisquared-server-hpa.yaml new file mode 100644 index 0000000..36e7f61 --- /dev/null +++ b/charts/aisquared/templates/aisquared-server-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-server-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: server-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-server + minReplicas: {{ .Values.hpa.aisquaredServer.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredServer.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredServer.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredServer.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredServer.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-server-service.yaml b/charts/aisquared/templates/aisquared-server-service.yaml similarity index 82% rename from charts/multiwoven/templates/multiwoven-server-service.yaml rename to charts/aisquared/templates/aisquared-server-service.yaml index 88893cb..9fee5d0 100644 --- a/charts/multiwoven/templates/multiwoven-server-service.yaml +++ b/charts/aisquared/templates/aisquared-server-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenServer.type }} + type: {{ .Values.aisquaredServer.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-server {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenServer.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredServer.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-service-account.yaml b/charts/aisquared/templates/aisquared-service-account.yaml similarity index 100% rename from charts/multiwoven/templates/multiwoven-service-account.yaml rename to charts/aisquared/templates/aisquared-service-account.yaml diff --git a/charts/multiwoven/templates/multiwoven-solid-worker-deployment.yaml b/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml similarity index 74% rename from charts/multiwoven/templates/multiwoven-solid-worker-deployment.yaml rename to charts/aisquared/templates/aisquared-solid-worker-deployment.yaml index c569424..23804c3 100644 --- a/charts/multiwoven/templates/multiwoven-solid-worker-deployment.yaml +++ b/charts/aisquared/templates/aisquared-solid-worker-deployment.yaml @@ -8,11 +8,11 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-solid-worker {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenSolidWorker.annotations }} + {{- with .Values.aisquaredSolidWorker.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: - replicas: {{ .Values.multiwovenSolidWorker.replicas }} + replicas: {{ .Values.aisquaredSolidWorker.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-solid-worker @@ -25,18 +25,18 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-solid-worker {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenSolidWorker.annotations }} + {{- with .Values.aisquaredSolidWorker.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.create | ternary .Values.serviceAccount.name "default" }} automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenSolidWorker.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredSolidWorker.podSecurityContext.fsGroup }} initContainers: {{ if .Values.securityContext.readOnlyRootFilesystem }} - name: copy-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} command: - /bin/sh @@ -49,8 +49,8 @@ spec: - name: rails-config mountPath: /mnt/rails securityContext: - runAsUser: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -62,7 +62,7 @@ spec: {{- end }} {{- end }} {{ end }} - {{ if .Values.multiwovenConfig.azureSpot }} + {{ if .Values.aisquaredConfig.azureSpot }} tolerations: - key: "kubernetes.azure.com/scalesetpriority" operator: "Equal" @@ -80,12 +80,12 @@ spec: - spot {{ end }} containers: - - args: {{- toYaml .Values.multiwovenSolidWorker.multiwovenSolidWorker.args | nindent 8 }} + - args: {{- toYaml .Values.aisquaredSolidWorker.aisquaredSolidWorker.args | nindent 8 }} env: - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} - name: MULTIWOVEN_WORKER_HEALTH_CHECK_PORT - value: {{ quote .Values.multiwovenSolidWorker.healthPort }} + value: {{ quote .Values.aisquaredSolidWorker.healthPort }} {{ if .Values.secretsStore.enabled }} - name: DB_PASSWORD valueFrom: @@ -100,18 +100,18 @@ spec: {{ end }} {{ if .Values.multipleDbHosts.enabled }} - name: DB_HOST - value: {{ .Values.multipleDbHosts.multiwovenDBHost }} + value: {{ .Values.multipleDbHosts.aisquaredDBHost }} - name: DB_NAME - value: {{ .Values.multipleDbHosts.multiwovenDBName }} + value: {{ .Values.multipleDbHosts.aisquaredDBName }} {{ end }} envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.image.repository }}:{{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.image.repository }}:{{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenSolidWorker.multiwovenSolidWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredSolidWorker.aisquaredSolidWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -125,19 +125,19 @@ spec: livenessProbe: httpGet: path: /health - port: {{ .Values.multiwovenSolidWorker.healthPort }} + port: {{ .Values.aisquaredSolidWorker.healthPort }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-solid-worker ports: - - containerPort: {{ .Values.multiwovenSolidWorker.healthPort }} + - containerPort: {{ .Values.aisquaredSolidWorker.healthPort }} readinessProbe: httpGet: path: /health - port: {{ .Values.multiwovenSolidWorker.healthPort }} + port: {{ .Values.aisquaredSolidWorker.healthPort }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenSolidWorker.multiwovenSolidWorker.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredSolidWorker.aisquaredSolidWorker.resources | nindent 10 }} imagePullPolicy: Always volumeMounts: {{ if not .Values.temporal.enabled }} @@ -146,7 +146,7 @@ spec: readOnly: false {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store mountPath: /run/secrets/store readOnly: true {{ end }} @@ -166,7 +166,7 @@ spec: path: ./temporal.pem {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store csi: driver: secrets-store.csi.k8s.io readOnly: true @@ -178,7 +178,7 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-solid-worker-hpa.yaml b/charts/aisquared/templates/aisquared-solid-worker-hpa.yaml new file mode 100644 index 0000000..337808c --- /dev/null +++ b/charts/aisquared/templates/aisquared-solid-worker-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-solid-worker-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: worker-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-solid-worker + minReplicas: {{ .Values.hpa.aisquaredSolidWorker.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredSolidWorker.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredSolidWorker.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredSolidWorker.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredSolidWorker.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-solid-worker-service.yaml b/charts/aisquared/templates/aisquared-solid-worker-service.yaml similarity index 81% rename from charts/multiwoven/templates/multiwoven-solid-worker-service.yaml rename to charts/aisquared/templates/aisquared-solid-worker-service.yaml index cdc03b8..010ee11 100644 --- a/charts/multiwoven/templates/multiwoven-solid-worker-service.yaml +++ b/charts/aisquared/templates/aisquared-solid-worker-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenSolidWorker.type }} + type: {{ .Values.aisquaredSolidWorker.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-solid-worker {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenSolidWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredSolidWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-ui-deployment.yaml b/charts/aisquared/templates/aisquared-ui-deployment.yaml similarity index 67% rename from charts/multiwoven/templates/multiwoven-ui-deployment.yaml rename to charts/aisquared/templates/aisquared-ui-deployment.yaml index 40aabb9..fe604c7 100644 --- a/charts/multiwoven/templates/multiwoven-ui-deployment.yaml +++ b/charts/aisquared/templates/aisquared-ui-deployment.yaml @@ -8,11 +8,11 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-ui {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenUI.annotations }} + {{- with .Values.aisquaredUI.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: - replicas: {{ .Values.multiwovenUI.replicas }} + replicas: {{ .Values.aisquaredUI.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-ui @@ -25,23 +25,23 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-ui {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenUI.annotations }} + {{- with .Values.aisquaredUI.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenUI.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredUI.podSecurityContext.fsGroup }} containers: - env: envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenUI.multiwovenUI.image.repository }}:{{ .Values.multiwovenUI.multiwovenUI.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredUI.aisquaredUI.image.repository }}:{{ .Values.aisquaredUI.aisquaredUI.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenUI.multiwovenUI.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenUI.multiwovenUI.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredUI.aisquaredUI.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredUI.aisquaredUI.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -55,22 +55,22 @@ spec: livenessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenUI.ports 0).port }} + port: {{ (index .Values.aisquaredUI.ports 0).port }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-ui ports: - - containerPort: {{ (index .Values.multiwovenUI.ports 0).port }} + - containerPort: {{ (index .Values.aisquaredUI.ports 0).port }} readinessProbe: httpGet: path: / - port: {{ (index .Values.multiwovenUI.ports 0).port }} + port: {{ (index .Values.aisquaredUI.ports 0).port }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenUI.multiwovenUI.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredUI.aisquaredUI.resources | nindent 10 }} imagePullPolicy: Always restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-ui-hpa.yaml b/charts/aisquared/templates/aisquared-ui-hpa.yaml new file mode 100644 index 0000000..aedfbd7 --- /dev/null +++ b/charts/aisquared/templates/aisquared-ui-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-ui-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: ui-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-ui + minReplicas: {{ .Values.hpa.aisquaredUI.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredUI.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredUI.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredUI.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredUI.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-ui-service.yaml b/charts/aisquared/templates/aisquared-ui-service.yaml similarity index 83% rename from charts/multiwoven/templates/multiwoven-ui-service.yaml rename to charts/aisquared/templates/aisquared-ui-service.yaml index a5becf6..d3faa33 100644 --- a/charts/multiwoven/templates/multiwoven-ui-service.yaml +++ b/charts/aisquared/templates/aisquared-ui-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenUI.type }} + type: {{ .Values.aisquaredUI.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-ui {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenUI.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredUI.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-worker-deployment.yaml b/charts/aisquared/templates/aisquared-worker-deployment.yaml similarity index 75% rename from charts/multiwoven/templates/multiwoven-worker-deployment.yaml rename to charts/aisquared/templates/aisquared-worker-deployment.yaml index ab30e41..da8f022 100644 --- a/charts/multiwoven/templates/multiwoven-worker-deployment.yaml +++ b/charts/aisquared/templates/aisquared-worker-deployment.yaml @@ -8,11 +8,11 @@ metadata: io.kompose.service: {{ include "chart.fullname" . }}-worker {{- include "chart.labels" . | nindent 4 }} annotations: - {{- with .Values.multiwovenWorker.annotations }} + {{- with .Values.aisquaredWorker.annotations }} {{ toYaml . | nindent 4 }} {{- end }} spec: - replicas: {{ .Values.multiwovenWorker.replicas }} + replicas: {{ .Values.aisquaredWorker.replicas }} selector: matchLabels: app: {{ include "chart.fullname" . }}-worker @@ -25,18 +25,18 @@ spec: io.kompose.service: {{ include "chart.fullname" . }}-worker {{- include "chart.selectorLabels" . | nindent 8 }} annotations: - {{- with .Values.multiwovenWorker.annotations }} + {{- with .Values.aisquaredWorker.annotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ .Values.serviceAccount.create | ternary .Values.serviceAccount.name "default" }} automountServiceAccountToken: {{ .Values.automountServiceAccountToken.enabled }} securityContext: - fsGroup: {{ .Values.multiwovenWorker.podSecurityContext.fsGroup }} + fsGroup: {{ .Values.aisquaredWorker.podSecurityContext.fsGroup }} initContainers: {{ if .Values.securityContext.readOnlyRootFilesystem }} - name: copy-config - image: {{ .Values.multiwovenServer.multiwovenServer.image.repository }}:{{ .Values.multiwovenServer.multiwovenServer.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredServer.aisquaredServer.image.repository }}:{{ .Values.aisquaredServer.aisquaredServer.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} command: - /bin/sh @@ -49,8 +49,8 @@ spec: - name: rails-config mountPath: /mnt/rails securityContext: - runAsUser: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -62,7 +62,7 @@ spec: {{- end }} {{- end }} {{ end }} - {{ if .Values.multiwovenConfig.azureSpot }} + {{ if .Values.aisquaredConfig.azureSpot }} tolerations: - key: "kubernetes.azure.com/scalesetpriority" operator: "Equal" @@ -80,12 +80,12 @@ spec: - spot {{ end }} containers: - - args: {{- toYaml .Values.multiwovenWorker.multiwovenWorker.args | nindent 8 }} + - args: {{- toYaml .Values.aisquaredWorker.aisquaredWorker.args | nindent 8 }} env: - name: KUBERNETES_CLUSTER_DOMAIN value: {{ quote .Values.kubernetesClusterDomain }} - name: MULTIWOVEN_WORKER_HEALTH_CHECK_PORT - value: {{ quote .Values.multiwovenWorker.healthPort }} + value: {{ quote .Values.aisquaredWorker.healthPort }} {{ if .Values.secretsStore.enabled }} - name: DB_PASSWORD valueFrom: @@ -100,18 +100,18 @@ spec: {{ end }} {{ if .Values.multipleDbHosts.enabled }} - name: DB_HOST - value: {{ .Values.multipleDbHosts.multiwovenDBHost }} + value: {{ .Values.multipleDbHosts.aisquaredDBHost }} - name: DB_NAME - value: {{ .Values.multipleDbHosts.multiwovenDBName }} + value: {{ .Values.multipleDbHosts.aisquaredDBName }} {{ end }} envFrom: - configMapRef: name: {{ include "chart.fullname" . }}-config - image: {{ .Values.multiwovenWorker.multiwovenWorker.image.repository }}:{{ .Values.multiwovenWorker.multiwovenWorker.image.tag | default .Chart.AppVersion }} + image: {{ .Values.aisquaredWorker.aisquaredWorker.image.repository }}:{{ .Values.aisquaredWorker.aisquaredWorker.image.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.globalImagePullPolicy }} securityContext: - runAsUser: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsUser }} - runAsGroup: {{ .Values.multiwovenWorker.multiwovenWorker.containerSecurityContext.runAsGroup }} + runAsUser: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsUser }} + runAsGroup: {{ .Values.aisquaredWorker.aisquaredWorker.containerSecurityContext.runAsGroup }} privileged: false allowPrivilegeEscalation: {{ .Values.securityContext.allowPrivilegeEscalation }} readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }} @@ -125,19 +125,19 @@ spec: livenessProbe: httpGet: path: /health - port: {{ .Values.multiwovenWorker.healthPort }} + port: {{ .Values.aisquaredWorker.healthPort }} initialDelaySeconds: 15 periodSeconds: 10 name: {{ include "chart.fullname" . }}-worker ports: - - containerPort: {{ .Values.multiwovenWorker.healthPort }} + - containerPort: {{ .Values.aisquaredWorker.healthPort }} readinessProbe: httpGet: path: /health - port: {{ .Values.multiwovenWorker.healthPort }} + port: {{ .Values.aisquaredWorker.healthPort }} initialDelaySeconds: 5 periodSeconds: 10 - resources: {{- toYaml .Values.multiwovenWorker.multiwovenWorker.resources | nindent 10 }} + resources: {{- toYaml .Values.aisquaredWorker.aisquaredWorker.resources | nindent 10 }} imagePullPolicy: Always volumeMounts: {{ if not .Values.temporal.enabled }} @@ -146,7 +146,7 @@ spec: readOnly: false {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store mountPath: /run/secrets/store readOnly: true {{ end }} @@ -166,7 +166,7 @@ spec: path: ./temporal.pem {{ end }} {{ if .Values.secretsStore.enabled }} - - name: multiwoven-secrets-store + - name: aisquared-secrets-store csi: driver: secrets-store.csi.k8s.io readOnly: true @@ -178,7 +178,7 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} \ No newline at end of file diff --git a/charts/aisquared/templates/aisquared-worker-hpa.yaml b/charts/aisquared/templates/aisquared-worker-hpa.yaml new file mode 100644 index 0000000..3543e8d --- /dev/null +++ b/charts/aisquared/templates/aisquared-worker-hpa.yaml @@ -0,0 +1,47 @@ +{{ if .Values.hpa.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "chart.fullname" . }}-worker-hpa + namespace: {{ .Values.kubernetesNamespace }} + labels: + {{- include "chart.labels" . | nindent 4 }} + app.kubernetes.io/component: worker-hpa +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "chart.fullname" . }}-worker + minReplicas: {{ .Values.hpa.aisquaredWorker.minReplicas }} + maxReplicas: {{ .Values.hpa.aisquaredWorker.maxReplicas }} + behavior: + scaleDown: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} + scaleUp: + stabilizationWindowSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.stabilizationWindowSeconds }} + policies: + - type: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.percentPolicy.type }} + value: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.percentPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} + - type: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.podPolicy.type }} + value: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.podPolicy.value }} + periodSeconds: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} + selectPolicy: {{ .Values.hpa.aisquaredWorker.behavior.scaleUp.policies.selectPolicy }} + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredWorker.cpuAverageUtilizationPercentageThreshold }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.hpa.aisquaredWorker.memoryAverageUtilizationPercentageThreshold }} +{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-worker-service.yaml b/charts/aisquared/templates/aisquared-worker-service.yaml similarity index 82% rename from charts/multiwoven/templates/multiwoven-worker-service.yaml rename to charts/aisquared/templates/aisquared-worker-service.yaml index bd7f847..f8c8748 100644 --- a/charts/multiwoven/templates/multiwoven-worker-service.yaml +++ b/charts/aisquared/templates/aisquared-worker-service.yaml @@ -11,9 +11,9 @@ metadata: kompose.cmd: kompose convert kompose.version: 1.32.0 (HEAD) spec: - type: {{ .Values.multiwovenWorker.type }} + type: {{ .Values.aisquaredWorker.type }} selector: io.kompose.service: {{ include "chart.fullname" . }}-worker {{- include "chart.selectorLabels" . | nindent 4 }} ports: - {{- .Values.multiwovenWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file + {{- .Values.aisquaredWorker.ports | toYaml | nindent 2 -}} \ No newline at end of file diff --git a/charts/multiwoven/templates/cluster-autoscaler-priority-expander.yaml b/charts/aisquared/templates/cluster-autoscaler-priority-expander.yaml similarity index 81% rename from charts/multiwoven/templates/cluster-autoscaler-priority-expander.yaml rename to charts/aisquared/templates/cluster-autoscaler-priority-expander.yaml index 1d80c32..a058562 100644 --- a/charts/multiwoven/templates/cluster-autoscaler-priority-expander.yaml +++ b/charts/aisquared/templates/cluster-autoscaler-priority-expander.yaml @@ -1,4 +1,4 @@ -{{ if .Values.multiwovenConfig.azureSpot }} +{{ if .Values.aisquaredConfig.azureSpot }} apiVersion: v1 kind: ConfigMap metadata: diff --git a/charts/multiwoven/templates/production-issuer.yaml b/charts/aisquared/templates/production-issuer.yaml similarity index 91% rename from charts/multiwoven/templates/production-issuer.yaml rename to charts/aisquared/templates/production-issuer.yaml index 052a98b..aeb6f4d 100644 --- a/charts/multiwoven/templates/production-issuer.yaml +++ b/charts/aisquared/templates/production-issuer.yaml @@ -9,7 +9,7 @@ spec: # The ACME server URL server: https://acme-v02.api.letsencrypt.org/directory # Email address used for ACME registration - email: {{ .Values.multiwovenConfig.tlsAdminEmail }} + email: {{ .Values.aisquaredConfig.tlsAdminEmail }} # Name of a secret used to store the ACME account private key privateKeySecretRef: name: letsencrypt-prod diff --git a/charts/multiwoven/templates/staging-issuer.yaml b/charts/aisquared/templates/staging-issuer.yaml similarity index 91% rename from charts/multiwoven/templates/staging-issuer.yaml rename to charts/aisquared/templates/staging-issuer.yaml index d6dd352..8cd5fac 100644 --- a/charts/multiwoven/templates/staging-issuer.yaml +++ b/charts/aisquared/templates/staging-issuer.yaml @@ -9,7 +9,7 @@ spec: # The ACME server URL server: https://acme-staging-v02.api.letsencrypt.org/directory # Email address used for ACME registration - email: {{ .Values.multiwovenConfig.tlsAdminEmail }} + email: {{ .Values.aisquaredConfig.tlsAdminEmail }} # Name of a secret used to store the ACME account private key privateKeySecretRef: name: letsencrypt-staging diff --git a/charts/multiwoven/templates/temporal-config-map.yaml b/charts/aisquared/templates/temporal-config-map.yaml similarity index 100% rename from charts/multiwoven/templates/temporal-config-map.yaml rename to charts/aisquared/templates/temporal-config-map.yaml diff --git a/charts/multiwoven/templates/temporal-deployment.yaml b/charts/aisquared/templates/temporal-deployment.yaml similarity index 96% rename from charts/multiwoven/templates/temporal-deployment.yaml rename to charts/aisquared/templates/temporal-deployment.yaml index 3073d91..5f3e62d 100644 --- a/charts/multiwoven/templates/temporal-deployment.yaml +++ b/charts/aisquared/templates/temporal-deployment.yaml @@ -69,9 +69,7 @@ spec: value: "true" - name: POSTGRES_TLS_ENABLED value: "true" - - name: DB - value: {{ quote .Values.temporal.temporal.env.db }} - {{ if .Values.multiwovenConfig.skipDbMigration }} + {{ if .Values.aisquaredConfig.skipDbMigration }} - name: SKIP_DB_CREATE value: "true" - name: SKIP_SCHEMA_SETUP @@ -113,7 +111,7 @@ spec: key: TP_DB_USERNAME {{ end }} {{ end }} - {{ if .Values.multiwovenConfig.temporalPostgresSsl }} + {{ if .Values.aisquaredConfig.temporalPostgresSsl }} - name: TEMPORAL_TLS_REQUIRE_CLIENT_AUTH value: 'true' - name: SQL_TLS @@ -240,9 +238,9 @@ spec: name: "{{ include "chart.fullname" . }}-temporal-config" {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} {{ end }} diff --git a/charts/multiwoven/templates/temporal-service.yaml b/charts/aisquared/templates/temporal-service.yaml similarity index 100% rename from charts/multiwoven/templates/temporal-service.yaml rename to charts/aisquared/templates/temporal-service.yaml diff --git a/charts/multiwoven/templates/temporal-ui-deployment.yaml b/charts/aisquared/templates/temporal-ui-deployment.yaml similarity index 97% rename from charts/multiwoven/templates/temporal-ui-deployment.yaml rename to charts/aisquared/templates/temporal-ui-deployment.yaml index 40ce836..8ed3c49 100644 --- a/charts/multiwoven/templates/temporal-ui-deployment.yaml +++ b/charts/aisquared/templates/temporal-ui-deployment.yaml @@ -101,8 +101,8 @@ spec: emptyDir: {} {{ end }} restartPolicy: Always - {{ if .Values.multiwovenConfig.privateRepo }} + {{ if .Values.aisquaredConfig.privateRepo }} imagePullSecrets: - - name: {{ .Values.multiwovenConfig.registrySecretName }} + - name: {{ .Values.aisquaredConfig.registrySecretName }} {{ end }} {{ end }} diff --git a/charts/multiwoven/templates/temporal-ui-service.yaml b/charts/aisquared/templates/temporal-ui-service.yaml similarity index 100% rename from charts/multiwoven/templates/temporal-ui-service.yaml rename to charts/aisquared/templates/temporal-ui-service.yaml diff --git a/charts/multiwoven/values.yaml b/charts/aisquared/values.yaml similarity index 89% rename from charts/multiwoven/values.yaml rename to charts/aisquared/values.yaml index 17bf077..f4d115b 100644 --- a/charts/multiwoven/values.yaml +++ b/charts/aisquared/values.yaml @@ -1,10 +1,10 @@ kubernetesClusterDomain: cluster.local -kubernetesNamespace: multiwoven -multiwovenConfig: +kubernetesNamespace: aisquared +aisquaredConfig: activeStorageService: "microsoft" allowedHost: "" allowedSourceIP: "0.0.0.0/0" - apiHost: api.multiwoven.com + apiHost: api.squared.ai appRevision: unknown appEnv: community appsignalPushApiKey: yourkey @@ -14,7 +14,7 @@ multiwovenConfig: awsSecretAccessKey: "" azureSpot: false databricksDriverPath: /opt/simba/spark/lib/64/libsparkodbc_sb64.so - dbHost: multiwoven-postgresql + dbHost: aisquared-postgresql dbPassword: password dbPort: "5432" dbUsername: multiwoven @@ -33,15 +33,15 @@ multiwovenConfig: skipDbMigration: "false" slackSignupChannelEmail: "" smtpAddress: smtp.yourdomain.com - smtpBrandName: Multiwoven + smtpBrandName: "AI Squared" smtpHost: yourdomain.com smtpPassword: yourpassword smtpPort: "587" smtpUsername: yourusername smtpSenderEmail: admin@yourdomain.com - solidWorkerHost: solid.multiwoven.com + solidWorkerHost: solid.squared.ai snowflakeDriverPath: /usr/lib/snowflake/odbc/lib/libSnowflake.so - storageAccessKey: "" + storageAccessKey: "myaccesskey" storageAccountName: "" syncExtractorBatchSize: "1000" syncExtractorThreadPoolSize: "10" @@ -50,33 +50,32 @@ multiwovenConfig: temporalActivityThreadPoolSize: "20" temporalClientChain: /certs/temporal.chain.pem temporalClientKey: /certs/temporal.pem - temporalHost: multiwoven-temporal - temporalNamespace: multiwoven-dev + temporalHost: aisquared-temporal + temporalNamespace: aisquared-dev temporalPort: "7233" temporalPostgresDefaultPort: "5432" temporalPostgresPassword: password temporalPostgresSsl: false - temporalPostgresUser: multiwoven + temporalPostgresUser: aisquared temporalPostgresqlVersion: "13" temporalRootCert: /certs/temporal.key temporalTaskQueue: sync-dev - temporalUiHost: temporal.multiwoven.com + temporalUiHost: temporal.squared.ai temporalUiVersion: 2.23.2 temporalVersion: 1.22.4 temporalWorkflowThreadPoolSize: "10" - tlsAdminEmail: admin@multiwoven.com + tlsAdminEmail: admin@squared.ai tlsCertIssuer: letsencrypt-staging - track: "no" - uiHost: app.multiwoven.com + uiHost: app.squared.ai userEmailVerification: "false" - viteApiHost: api.multiwoven.com + viteApiHost: api.squared.ai viteAppsignalPushApiKey: yourkey - viteBrandName: "Multiwoven" + viteBrandName: "AI Squared" viteLogoUrl: "" viteBrandColor: "" viteBrandHoverColor: "" viteFavIconUrl: "" - workerHost: worker.multiwoven.com + workerHost: worker.squared.ai automountServiceAccountToken: enabled: true @@ -102,7 +101,7 @@ awsIngress: serviceAccount: create: false - name: multiwoven-service-account + name: aisquared-service-account annotations: eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/example-role @@ -134,8 +133,8 @@ globalImagePullPolicy: IfNotPresent multipleDbHosts: enabled: false - multiwovenDBHost: "" - multiwovenDBName: "" + aisquaredDBHost: "" + aisquaredDBName: "" temporalDbName: "" temporalDbHost: "" @@ -149,7 +148,7 @@ multipleDbHosts: hpa: enabled: true - multiwovenUI: + aisquaredUI: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -179,7 +178,7 @@ hpa: value: 4 periodSeconds: 15 selectPolicy: Max - multiwovenServer: + aisquaredServer: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -209,7 +208,7 @@ hpa: value: 4 periodSeconds: 15 selectPolicy: Max - multiwovenSolidWorker: + aisquaredSolidWorker: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -239,7 +238,7 @@ hpa: value: 4 periodSeconds: 15 selectPolicy: Max - multiwovenWorker: + aisquaredWorker: minReplicas: 1 maxReplicas: 10 cpuAverageUtilizationPercentageThreshold: 80 @@ -270,10 +269,10 @@ hpa: periodSeconds: 15 selectPolicy: Max -multiwovenPostgresql: +aisquaredPostgresql: enabled: true annotations: {} - multiwovenPostgresql: + aisquaredPostgresql: image: repository: postgres tag: "13" @@ -290,16 +289,16 @@ multiwovenPostgresql: targetPort: 5432 replicas: 1 type: ClusterIP -multiwovenServer: +aisquaredServer: annotations: {} podSecurityContext: fsGroup: 1000 - multiwovenServer: + aisquaredServer: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 image: - repository: multiwoven/multiwoven-server + repository: aisquared/aisquared-server tag: latest resources: limits: @@ -314,16 +313,16 @@ multiwovenServer: targetPort: 3000 replicas: 1 type: ClusterIP -multiwovenUI: +aisquaredUI: annotations: {} podSecurityContext: fsGroup: 1000 - multiwovenUI: + aisquaredUI: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 image: - repository: multiwoven/multiwoven-ui + repository: aisquared/aisquared-ui tag: latest resources: limits: @@ -338,12 +337,12 @@ multiwovenUI: targetPort: 8000 replicas: 1 type: ClusterIP -multiwovenSolidWorker: +aisquaredSolidWorker: annotations: {} healthPort: 9999 podSecurityContext: fsGroup: 1000 - multiwovenSolidWorker: + aisquaredSolidWorker: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 @@ -353,7 +352,7 @@ multiwovenSolidWorker: - | ./app/solid_queue/cli/worker image: - repository: multiwoven/multiwoven-server + repository: aisquared/aisquared-server tag: latest resources: limits: @@ -368,12 +367,12 @@ multiwovenSolidWorker: targetPort: 9999 replicas: 1 type: ClusterIP -multiwovenWorker: +aisquaredWorker: annotations: {} healthPort: 4567 podSecurityContext: fsGroup: 1000 - multiwovenWorker: + aisquaredWorker: containerSecurityContext: runAsUser: 1000 runAsGroup: 1000 @@ -383,7 +382,7 @@ multiwovenWorker: - | ./app/temporal/cli/register_namespace && ./app/temporal/cli/worker image: - repository: multiwoven/multiwoven-server + repository: aisquared/aisquared-server tag: latest resources: limits: @@ -447,7 +446,7 @@ temporalUi: runAsUser: 5000 runAsGroup: 5000 env: - temporalAddress: multiwoven-temporal:7233 + temporalAddress: aisquared-temporal:7233 temporalCorsOrigins: http://localhost:3000 temporalUiPort: "8080" image: diff --git a/charts/multiwoven/templates/multiwoven-server-hpa.yaml b/charts/multiwoven/templates/multiwoven-server-hpa.yaml deleted file mode 100644 index e604f01..0000000 --- a/charts/multiwoven/templates/multiwoven-server-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-server-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: server-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-server - minReplicas: {{ .Values.hpa.multiwovenServer.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenServer.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenServer.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenServer.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenServer.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-solid-worker-hpa.yaml b/charts/multiwoven/templates/multiwoven-solid-worker-hpa.yaml deleted file mode 100644 index 56f69ee..0000000 --- a/charts/multiwoven/templates/multiwoven-solid-worker-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-solid-worker-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: worker-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-solid-worker - minReplicas: {{ .Values.hpa.multiwovenSolidWorker.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenSolidWorker.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenSolidWorker.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenSolidWorker.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenSolidWorker.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-ui-hpa.yaml b/charts/multiwoven/templates/multiwoven-ui-hpa.yaml deleted file mode 100644 index 113bb13..0000000 --- a/charts/multiwoven/templates/multiwoven-ui-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-ui-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: ui-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-ui - minReplicas: {{ .Values.hpa.multiwovenUI.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenUI.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenUI.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenUI.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenUI.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file diff --git a/charts/multiwoven/templates/multiwoven-worker-hpa.yaml b/charts/multiwoven/templates/multiwoven-worker-hpa.yaml deleted file mode 100644 index d2a250d..0000000 --- a/charts/multiwoven/templates/multiwoven-worker-hpa.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.hpa.enabled }} -apiVersion: autoscaling/v2 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "chart.fullname" . }}-worker-hpa - namespace: {{ .Values.kubernetesNamespace }} - labels: - {{- include "chart.labels" . | nindent 4 }} - app.kubernetes.io/component: worker-hpa -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "chart.fullname" . }}-worker - minReplicas: {{ .Values.hpa.multiwovenWorker.minReplicas }} - maxReplicas: {{ .Values.hpa.multiwovenWorker.maxReplicas }} - behavior: - scaleDown: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleDown.policies.percentPolicy.periodSeconds }} - scaleUp: - stabilizationWindowSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.stabilizationWindowSeconds }} - policies: - - type: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.percentPolicy.type }} - value: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.percentPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.percentPolicy.periodSeconds }} - - type: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.podPolicy.type }} - value: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.podPolicy.value }} - periodSeconds: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.podPolicy.periodSeconds }} - selectPolicy: {{ .Values.hpa.multiwovenWorker.behavior.scaleUp.policies.selectPolicy }} - metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenWorker.cpuAverageUtilizationPercentageThreshold }} - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: {{ .Values.hpa.multiwovenWorker.memoryAverageUtilizationPercentageThreshold }} -{{ end }} \ No newline at end of file