-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[scalar-manager] Create the Helm chart for Scalar Manager (#254)
- Loading branch information
Showing
14 changed files
with
336 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,20 @@ apiVersion: v2 | |
name: scalar-manager | ||
description: Scalar Manager | ||
type: application | ||
version: 2.0.0-SNAPSHOT | ||
appVersion: 2.0.0-SNAPSHOT | ||
version: 3.0.0-SNAPSHOT | ||
appVersion: 3.0.0-SNAPSHOT | ||
deprecated: false | ||
icon: https://scalar-labs.com/wp-content/themes/scalar/assets/img/logo_scalar.svg | ||
keywords: | ||
- scalardb | ||
- scalardl | ||
- scalar-manager | ||
- scalar-manager | ||
- scalardb-cluster | ||
- scalardl-ledger | ||
- scalardl-auditor | ||
- scalar-admin-for-kubernetes | ||
home: https://scalar-labs.com/ | ||
sources: | ||
- https://github.com/scalar-labs/scalar-manager | ||
- https://github.com/scalar-labs/scalar-manager-api | ||
- https://github.com/scalar-labs/scalar-manager-web | ||
maintainers: | ||
- name: Takanori Yokoyama | ||
email: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
# scalar-manager | ||
|
||
![Version: 2.0.0-SNAPSHOT](https://img.shields.io/badge/Version-2.0.0--SNAPSHOT-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.0.0-SNAPSHOT](https://img.shields.io/badge/AppVersion-2.0.0--SNAPSHOT-informational?style=flat-square) | ||
![Version: 3.0.0-SNAPSHOT](https://img.shields.io/badge/Version-3.0.0--SNAPSHOT-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0-SNAPSHOT](https://img.shields.io/badge/AppVersion-3.0.0--SNAPSHOT-informational?style=flat-square) | ||
|
||
Scalar Manager | ||
Current chart version is `2.0.0-SNAPSHOT` | ||
Current chart version is `3.0.0-SNAPSHOT` | ||
|
||
**Homepage:** <https://scalar-labs.com/> | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| fullnameOverride | string | `""` | Override the fully qualified app name | | ||
| image.pullPolicy | string | `"IfNotPresent"` | Specify a imagePullPolicy | | ||
| image.repository | string | `"ghcr.io/scalar-labs/scalar-manager"` | Docker image | | ||
| image.tag | string | `""` | Override the image tag whose default is the chart appVersion | | ||
| imagePullSecrets | list | `[{"name":"reg-docker-secrets"}]` | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace | | ||
| nameOverride | string | `""` | Override the Chart name | | ||
| replicaCount | int | `1` | number of replicas to deploy | | ||
| scalarManager.grafanaUrl | string | `""` | | | ||
| scalarManager.port | int | `5000` | The port that Scalar Manager container exposes | | ||
| scalarManager.refreshInterval | int | `30` | | | ||
| scalarManager.targets | list | `[]` | | | ||
| service.port | int | `8000` | The port that service exposes | | ||
| service.type | string | `"ClusterIP"` | The service type | | ||
| serviceAccount.automountServiceAccountToken | bool | `true` | Specify to mount a service account token or not | | ||
| serviceAccount.serviceAccountName | string | `""` | Name of the existing service account resource | | ||
| api.applicationProperties | string | The minimum template of application.properties is set by default. | The application.properties for Scalar Manager. If you want to customize application.properties, you can override this value with your application.properties. | | ||
| api.image.pullPolicy | string | `"IfNotPresent"` | | | ||
| api.image.repository | string | `"ghcr.io/scalar-labs/scalar-manager-api"` | | | ||
| api.image.tag | string | `""` | | | ||
| api.resources | object | `{}` | | | ||
| fullnameOverride | string | `""` | | | ||
| imagePullSecrets[0].name | string | `"reg-docker-secrets"` | | | ||
| nameOverride | string | `""` | | | ||
| nodeSelector | object | `{}` | | | ||
| podAnnotations | object | `{}` | | | ||
| podLabels | object | `{}` | | | ||
| podSecurityContext.seccompProfile.type | string | `"RuntimeDefault"` | | | ||
| replicaCount | int | `1` | | | ||
| securityContext.allowPrivilegeEscalation | bool | `false` | | | ||
| securityContext.capabilities.drop[0] | string | `"ALL"` | | | ||
| securityContext.runAsNonRoot | bool | `true` | | | ||
| service.port | int | `80` | | | ||
| service.type | string | `"ClusterIP"` | | | ||
| serviceAccount.automountServiceAccountToken | bool | `true` | | | ||
| serviceAccount.serviceAccountName | string | `""` | | | ||
| tolerations | list | `[]` | | | ||
| web.image.pullPolicy | string | `"IfNotPresent"` | | | ||
| web.image.repository | string | `"ghcr.io/scalar-labs/scalar-manager-web"` | | | ||
| web.image.tag | string | `""` | | | ||
| web.resources | object | `{}` | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
charts/scalar-manager/templates/scalar-manager/clusterrole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "scalar-manager.fullname" . }} | ||
labels: | ||
{{- include "scalar-manager.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["pods", "services", "namespaces", "configmaps", "secrets", "serviceaccounts"] | ||
verbs: ["get", "list", "create", "patch", "delete", "update"] | ||
- apiGroups: ["batch"] | ||
resources: ["cronjobs", "jobs"] | ||
verbs: ["get", "list", "create", "delete"] | ||
- apiGroups: ["apps"] | ||
resources: ["deployments"] | ||
verbs: ["get", "list"] | ||
- apiGroups: ["rbac.authorization.k8s.io"] | ||
resources: ["roles", "rolebindings"] | ||
verbs: ["get", "list", "create", "delete"] |
15 changes: 15 additions & 0 deletions
15
charts/scalar-manager/templates/scalar-manager/clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "scalar-manager.fullname" . }} | ||
labels: | ||
{{- include "scalar-manager.labels" . | nindent 4 }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "scalar-manager.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
apiGroup: "" | ||
roleRef: | ||
kind: ClusterRole | ||
name: {{ include "scalar-manager.fullname" . }} | ||
apiGroup: rbac.authorization.k8s.io |
10 changes: 10 additions & 0 deletions
10
charts/scalar-manager/templates/scalar-manager/configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "scalar-manager.fullname" . }}-api-application-properties | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "scalar-manager.labels" . | nindent 4 }} | ||
data: | ||
scalar-manager-api-application.properties: | ||
{{- toYaml .Values.api.applicationProperties | nindent 4 }} |
73 changes: 73 additions & 0 deletions
73
charts/scalar-manager/templates/scalar-manager/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "scalar-manager.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "scalar-manager.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.replicaCount }} | ||
selector: | ||
matchLabels: | ||
{{- include "scalar-manager.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
annotations: | ||
checksum/config: {{ include (print $.Template.BasePath "/scalar-manager/configmap.yaml") . | sha256sum }} | ||
{{- if .Values.podAnnotations }} | ||
{{- toYaml .Values.podAnnotations | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
{{- include "scalar-manager.selectorLabels" . | nindent 8 }} | ||
{{- if .Values.podLabels }} | ||
{{- toYaml .Values.podLabels | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
restartPolicy: Always | ||
serviceAccountName: {{ include "scalar-manager.serviceAccountName" . }} | ||
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} | ||
containers: | ||
- name: {{ .Chart.Name }}-api | ||
image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag | default .Chart.AppVersion }}" | ||
resources: | ||
{{- toYaml .Values.api.resources | nindent 12 }} | ||
ports: | ||
- containerPort: 8080 | ||
imagePullPolicy: {{ .Values.api.image.pullPolicy }} | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 12 }} | ||
volumeMounts: | ||
- name: api-application-properties-volume | ||
mountPath: /app/application.properties | ||
subPath: scalar-manager-api-application.properties | ||
- name: {{ .Chart.Name }}-web | ||
image: "{{ .Values.web.image.repository }}:{{ .Values.web.image.tag | default .Chart.AppVersion }}" | ||
resources: | ||
{{- toYaml .Values.web.resources | nindent 12 }} | ||
ports: | ||
- containerPort: 3000 | ||
imagePullPolicy: {{ .Values.web.image.pullPolicy }} | ||
securityContext: | ||
{{- toYaml .Values.securityContext | nindent 12 }} | ||
volumes: | ||
- name: api-application-properties-volume | ||
configMap: | ||
name: {{ include "scalar-manager.fullname" . }}-api-application-properties | ||
securityContext: | ||
{{- toYaml .Values.podSecurityContext | nindent 8 }} | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} |
10 changes: 5 additions & 5 deletions
10
charts/scalar-manager/templates/service.yaml → ...ger/templates/scalar-manager/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
name: {{ include "scalar-manager.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "scalar-manager.labels" . | nindent 4 }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- port: {{ .Values.service.port }} | ||
targetPort: {{ .Values.scalarManager.port }} | ||
protocol: TCP | ||
name: http | ||
- protocol: TCP | ||
name: web | ||
port: {{ .Values.service.port }} | ||
targetPort: 3000 | ||
selector: | ||
{{- include "scalar-manager.selectorLabels" . | nindent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.