diff --git a/README.md b/README.md index fdb8b7e..f8daa98 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,10 @@ helm repo add mezmo https://helm.mezmo.com helm repo update ``` -### Installing Mezmo Pulse +### Installing Mezmo Edge ```shell -helm install pulse mezmo/pulse \ +helm install edge mezmo/edge \ --set mezmoApiAccessToken=MY_PIPELINE_SERVICE_TOKEN \ --set service.sourcePorts.start=8080 \ --set service.sourcePorts.end=8100 diff --git a/charts/pulse/.helmignore b/charts/edge/.helmignore similarity index 100% rename from charts/pulse/.helmignore rename to charts/edge/.helmignore diff --git a/charts/pulse/Chart.yaml b/charts/edge/Chart.yaml similarity index 71% rename from charts/pulse/Chart.yaml rename to charts/edge/Chart.yaml index a05772e..4025dd6 100644 --- a/charts/pulse/Chart.yaml +++ b/charts/edge/Chart.yaml @@ -1,11 +1,11 @@ apiVersion: v2 -name: pulse +name: edge home: https://www.mezmo.com icon: https://app.mezmo.com/assets/img/mz-logo-square-128.png -description: A Helm chart for deploying Mezmo Pulse +description: A Helm chart for deploying Mezmo Edge type: application appVersion: "1.17.3" -version: 0.3.1 +version: 0.4.0 maintainers: - name: Mezmo email: help@mezmo.com diff --git a/charts/pulse/README.md b/charts/edge/README.md similarity index 92% rename from charts/pulse/README.md rename to charts/edge/README.md index 88a561b..08e0812 100644 --- a/charts/pulse/README.md +++ b/charts/edge/README.md @@ -1,18 +1,18 @@ -# Mezmo Pulse +# Mezmo Edge -> Helm chart for managing a Mezmo Pulse deployment +> Helm chart for managing a Mezmo Edge deployment ## Prerequisites - Kubernetes 1.10+ (1.23+ if using autoscaling) -- Mezmo Account with Pulse Pipeline support +- Mezmo Account with Edge Pipeline support - Mezmo API Token ## Quickstart ```sh -helm install pulse mezmo/pulse \ +helm install edge mezmo/edge \ --namespace \ --set mezmoApiAccessToken= \ --set service.sourcePorts.start= \ diff --git a/charts/pulse/templates/NOTES.txt b/charts/edge/templates/NOTES.txt similarity index 100% rename from charts/pulse/templates/NOTES.txt rename to charts/edge/templates/NOTES.txt diff --git a/charts/pulse/templates/_helpers.tpl b/charts/edge/templates/_helpers.tpl similarity index 76% rename from charts/pulse/templates/_helpers.tpl rename to charts/edge/templates/_helpers.tpl index 2f3b7ec..f2c1c0a 100644 --- a/charts/pulse/templates/_helpers.tpl +++ b/charts/edge/templates/_helpers.tpl @@ -1,7 +1,7 @@ {{/* Expand the name of the chart. */}} -{{- define "pulse.name" -}} +{{- define "edge.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- end }} @@ -10,7 +10,7 @@ Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). If release name contains chart name it will be used as a full name. */}} -{{- define "pulse.fullname" -}} +{{- define "edge.fullname" -}} {{- if .Values.fullnameOverride }} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} {{- else }} @@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name. {{/* Create chart name and version as used by the chart label. */}} -{{- define "pulse.chart" -}} +{{- define "edge.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- end }} {{/* Common labels */}} -{{- define "pulse.labels" -}} -helm.sh/chart: {{ include "pulse.chart" . }} -{{ include "pulse.selectorLabels" . }} +{{- define "edge.labels" -}} +helm.sh/chart: {{ include "edge.chart" . }} +{{ include "edge.selectorLabels" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} {{/* Selector labels */}} -{{- define "pulse.selectorLabels" -}} -app.kubernetes.io/name: {{ include "pulse.name" . }} +{{- define "edge.selectorLabels" -}} +app.kubernetes.io/name: {{ include "edge.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} {{/* Create the name of the service account to use */}} -{{- define "pulse.serviceAccountName" -}} +{{- define "edge.serviceAccountName" -}} {{- if .Values.serviceAccount.create }} -{{- default (include "pulse.fullname" .) .Values.serviceAccount.name }} +{{- default (include "edge.fullname" .) .Values.serviceAccount.name }} {{- else }} {{- default "default" .Values.serviceAccount.name }} {{- end }} @@ -64,6 +64,6 @@ Create the name of the service account to use {{/* Generate the base URL of the Mezmo API */}} -{{- define "pulse.mezmoApiBaseUrl" -}} +{{- define "edge.mezmoApiBaseUrl" -}} {{- printf "%s://%s" .Values.mezmoApiScheme .Values.mezmoApiHost }} {{- end }} diff --git a/charts/pulse/templates/configmap.yaml b/charts/edge/templates/configmap.yaml similarity index 78% rename from charts/pulse/templates/configmap.yaml rename to charts/edge/templates/configmap.yaml index 6406fa7..654b1f0 100644 --- a/charts/pulse/templates/configmap.yaml +++ b/charts/edge/templates/configmap.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} labels: - {{- include "pulse.labels" . | nindent 4 }} + {{- include "edge.labels" . | nindent 4 }} data: processor.yaml: | provider: diff --git a/charts/pulse/templates/deployment.yaml b/charts/edge/templates/deployment.yaml similarity index 76% rename from charts/pulse/templates/deployment.yaml rename to charts/edge/templates/deployment.yaml index d5db717..4ec2816 100644 --- a/charts/pulse/templates/deployment.yaml +++ b/charts/edge/templates/deployment.yaml @@ -1,16 +1,16 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} labels: - {{- include "pulse.labels" . | nindent 4 }} + {{- include "edge.labels" . | nindent 4 }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} selector: matchLabels: - {{- include "pulse.selectorLabels" . | nindent 6 }} + {{- include "edge.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} @@ -18,13 +18,13 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} labels: - {{- include "pulse.selectorLabels" . | nindent 8 }} + {{- include "edge.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - serviceAccountName: {{ include "pulse.serviceAccountName" . }} + serviceAccountName: {{ include "edge.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} volumes: @@ -34,7 +34,7 @@ spec: projected: sources: - configMap: - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} terminationGracePeriodSeconds: 60 containers: - name: {{ .Chart.Name }} @@ -50,14 +50,14 @@ spec: - name: MEZMO_LOCAL_DEPLOY_AUTH_TOKEN valueFrom: secretKeyRef: - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} key: api-access-token - name: MEZMO_METRICS_ENDPOINT_URL - value: "{{include "pulse.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/metric/usage" + value: "{{include "edge.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/metric/usage" - name: MEZMO_TASKS_FETCH_ENDPOINT_URL - value: "{{include "pulse.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks" + value: "{{include "edge.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks" - name: MEZMO_TASKS_POST_ENDPOINT_URL - value: "{{include "pulse.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks/:task_id/results?pipeline_id=:pipeline_id" + value: "{{include "edge.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks/:task_id/results?pipeline_id=:pipeline_id" - name: VECTOR_LOG value: {{ .Values.logLevel }} - name: POD_NAME diff --git a/charts/pulse/templates/hpa.yaml b/charts/edge/templates/hpa.yaml similarity index 86% rename from charts/pulse/templates/hpa.yaml rename to charts/edge/templates/hpa.yaml index 09f2968..ab08248 100644 --- a/charts/pulse/templates/hpa.yaml +++ b/charts/edge/templates/hpa.yaml @@ -2,14 +2,14 @@ apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} labels: - {{- include "pulse.labels" . | nindent 4 }} + {{- include "edge.labels" . | nindent 4 }} spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: diff --git a/charts/pulse/templates/secret-api-access-token.yaml b/charts/edge/templates/secret-api-access-token.yaml similarity index 75% rename from charts/pulse/templates/secret-api-access-token.yaml rename to charts/edge/templates/secret-api-access-token.yaml index 3051348..6f5c9e6 100644 --- a/charts/pulse/templates/secret-api-access-token.yaml +++ b/charts/edge/templates/secret-api-access-token.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: Secret metadata: - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} labels: - {{- include "pulse.labels" . | nindent 4 }} + {{- include "edge.labels" . | nindent 4 }} {{- if .Values.secretAnnotations }} annotations: {{ toYaml .Values.secretAnnotations | nindent 4 }} {{- end }} diff --git a/charts/pulse/templates/service.yaml b/charts/edge/templates/service.yaml similarity index 80% rename from charts/pulse/templates/service.yaml rename to charts/edge/templates/service.yaml index 8b40151..3f516c6 100644 --- a/charts/pulse/templates/service.yaml +++ b/charts/edge/templates/service.yaml @@ -1,13 +1,13 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "pulse.fullname" . }} + name: {{ include "edge.fullname" . }} labels: - {{- include "pulse.labels" . | nindent 4 }} + {{- include "edge.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} selector: - {{- include "pulse.selectorLabels" . | nindent 4 }} + {{- include "edge.selectorLabels" . | nindent 4 }} ports: {{- range .Values.service.servicePorts }} - name: {{ .name }} diff --git a/charts/pulse/templates/serviceaccount.yaml b/charts/edge/templates/serviceaccount.yaml similarity index 68% rename from charts/pulse/templates/serviceaccount.yaml rename to charts/edge/templates/serviceaccount.yaml index b6fe39f..08d2353 100644 --- a/charts/pulse/templates/serviceaccount.yaml +++ b/charts/edge/templates/serviceaccount.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "pulse.serviceAccountName" . }} + name: {{ include "edge.serviceAccountName" . }} labels: - {{- include "pulse.labels" . | nindent 4 }} + {{- include "edge.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/pulse/values.yaml b/charts/edge/values.yaml similarity index 97% rename from charts/pulse/values.yaml rename to charts/edge/values.yaml index 63c5db4..9549f03 100644 --- a/charts/pulse/values.yaml +++ b/charts/edge/values.yaml @@ -1,4 +1,4 @@ -# Default values for pulse. +# Default values for edge. # This is a YAML-formatted file. # Declare variables to be passed into your templates.