forked from backstage/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vincenzo Scamporlino <[email protected]>
- Loading branch information
0 parents
commit 3f679bd
Showing
10 changed files
with
356 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,6 @@ | ||
dependencies: | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 1.13.1 | ||
digest: sha256:1056dac8da880ed967a191e8d9eaf04766f77bda66a5715456d5dd4494a4a942 | ||
generated: "2022-05-05T12:21:11.653933+02:00" |
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,31 @@ | ||
apiVersion: v2 | ||
name: backstage | ||
description: A Helm chart for Kubernetes | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "1.16.0" | ||
|
||
dependencies: | ||
- name: common | ||
repository: https://charts.bitnami.com/bitnami | ||
tags: | ||
- bitnami-common | ||
version: 1.x.x |
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,49 @@ | ||
<!--- app-name: Backstage --> | ||
|
||
# Backstage | ||
|
||
[Backstage](https://backstage.io) is an open platform for building developer portals. Powered by a centralized software catalog, Backstage restores order to your microservices and infrastructure and enables your product teams to ship high-quality code quickly — without compromising autonomy. | ||
|
||
Backstage unifies all your infrastructure tooling, services, and documentation to create a streamlined development environment from end to end. | ||
|
||
## TL;DR | ||
|
||
```console | ||
helm repo add backstage https://charts.backstage.io | ||
helm install my-release backstage | ||
``` | ||
|
||
## Introduction | ||
|
||
This chart bootstraps a [Backstage](https://backstage.io/docs/deployment/docker) deployment on a [Kubernetes](https://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes 1.19+ | ||
- Helm 3.2.0+ | ||
- PV provisioner support in the underlying infrastructure | ||
|
||
## Installing the Chart | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
```console | ||
helm repo add backstage https://charts.backstage.io | ||
helm install my-release backstage | ||
``` | ||
|
||
These commands deploy Kafka on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation. | ||
|
||
> **Tip**: List all releases using `helm list` | ||
## Uninstalling the Chart | ||
|
||
To uninstall/delete the `my-release` deployment: | ||
|
||
```console | ||
helm delete my-release | ||
``` | ||
|
||
The command removes all the Kubernetes components associated with the chart and deletes the release. | ||
|
||
## Parameters |
Binary file not shown.
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,6 @@ | ||
{{/* | ||
Return the proper image name | ||
*/}} | ||
{{- define "backstage.image" -}} | ||
{{ include "common.images.image" (dict "imageRoot" .Values.backstage.image "global" .Values.global) }} | ||
{{- end -}} |
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,33 @@ | ||
apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }} | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: {{- include "common.labels.standard" . | nindent 4 }} | ||
app.kubernetes.io/component: backstage | ||
{{- if .Values.commonLabels }} | ||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.commonAnnotations }} | ||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }} | ||
app.kubernetes.io/component: backstage | ||
template: | ||
metadata: | ||
labels: {{- include "common.labels.standard" . | nindent 8 }} | ||
app.kubernetes.io/component: backstage | ||
spec: | ||
containers: | ||
- name: backstage-backend | ||
# image: 951643378818.dkr.ecr.eu-west-2.amazonaws.com/backstage-sample-app:latest | ||
image: {{ include "backstage.image" . }} | ||
imagePullPolicy: {{ .Values.backstage.image.pullPolicy | quote }} | ||
ports: | ||
- name: backend | ||
containerPort: {{ .Values.backstage.containerPorts.backend }} | ||
# containerPort: 7007 | ||
protocol: TCP |
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,6 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-configmap | ||
data: | ||
myvalue: "Hello World" |
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,34 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "common.names.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: {{- include "common.labels.standard" . | nindent 4 }} | ||
app.kubernetes.io/component: backstage | ||
{{- if .Values.commonLabels }} | ||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
{{- if .Values.commonAnnotations }} | ||
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
sessionAffinity: {{ .Values.service.sessionAffinity }} | ||
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }} | ||
clusterIP: {{ .Values.service.clusterIP }} | ||
{{- end }} | ||
{{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }} | ||
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }} | ||
{{- end }} | ||
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: {{ .Values.service.loadBalancerSourceRanges }} | ||
{{ end }} | ||
{{- if and (eq .Values.service.type "LoadBalancer") (not (empty .Values.service.loadBalancerIP)) }} | ||
loadBalancerIP: {{ .Values.service.loadBalancerIP }} | ||
{{- end }} | ||
ports: | ||
- name: backend | ||
port: {{ .Values.service.ports.backend }} | ||
protocol: TCP | ||
selector: {{- include "common.labels.matchLabels" . | nindent 4 }} | ||
app.kubernetes.io/component: backstage |
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,168 @@ | ||
# Default values for backstage-chart. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
## @section Global parameters | ||
## Global Docker image parameters | ||
## Please, note that this will override the image parameters, including dependencies, configured to use the global value | ||
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass | ||
|
||
## @param global.imageRegistry Global Docker image registry | ||
## @param global.imagePullSecrets Global Docker registry secret names as an array | ||
## @param global.storageClass Global StorageClass for Persistent Volume(s) | ||
## | ||
global: | ||
imageRegistry: "" | ||
## E.g. | ||
## imagePullSecrets: | ||
## - myRegistryKeySecretName | ||
## | ||
imagePullSecrets: [] | ||
storageClass: "" | ||
|
||
## @section Common parameters | ||
|
||
## @param kubeVersion Override Kubernetes version | ||
## | ||
kubeVersion: "" | ||
## @param nameOverride String to partially override common.names.fullname | ||
## | ||
nameOverride: "" | ||
## @param fullnameOverride String to fully override common.names.fullname | ||
## | ||
fullnameOverride: "" | ||
## @param clusterDomain Default Kubernetes cluster domain | ||
## | ||
clusterDomain: cluster.local | ||
## @param commonLabels Labels to add to all deployed objects | ||
## | ||
commonLabels: {} | ||
## @param commonAnnotations Annotations to add to all deployed objects | ||
## | ||
commonAnnotations: {} | ||
## @param extraDeploy Array of extra objects to deploy with the release | ||
## | ||
extraDeploy: [] | ||
## Enable diagnostic mode in the statefulset | ||
## | ||
diagnosticMode: | ||
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden) | ||
## | ||
enabled: false | ||
## @param diagnosticMode.command Command to override all containers in the statefulset | ||
## | ||
command: | ||
- sleep | ||
## @param diagnosticMode.args Args to override all containers in the statefulset | ||
## | ||
args: | ||
- infinity | ||
|
||
## @section Backstage parameters | ||
|
||
## Backstage image version | ||
## @param image.registry Backstage image registry | ||
## @param image.repository Backstage image repository | ||
## @param image.tag Backstage image tag (immutable tags are recommended) | ||
## @param image.pullPolicy Backstage image pull policy | ||
## @param image.pullSecrets Specify docker-registry secret names as an array | ||
## @param image.debug Specify if debug values should be set | ||
## | ||
|
||
backstage: | ||
image: | ||
registry: "" | ||
repository: "backstage-sample-app" | ||
tag: "latest" | ||
## Specify a imagePullPolicy | ||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' | ||
## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images | ||
## | ||
pullPolicy: IfNotPresent | ||
## Optionally specify an array of imagePullSecrets. | ||
## Secrets must be manually created in the namespace. | ||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | ||
## e.g: | ||
## pullSecrets: | ||
## - myRegistryKeySecretName | ||
## | ||
pullSecrets: [] | ||
## Set to true if you would like to see extra information on logs | ||
## | ||
debug: false | ||
containerPorts: | ||
backend: 7007 | ||
|
||
## @section Traffic Exposure parameters | ||
|
||
## Service parameters | ||
## | ||
service: | ||
## @param service.type Kubernetes Service type | ||
## | ||
type: LoadBalancer | ||
## @param service.ports.backend Backstage svc port for client connections | ||
## | ||
ports: | ||
backend: 7007 | ||
## @param service.nodePorts.backend Node port for the Backstage client connections | ||
## NOTE: choose port between <30000-32767> | ||
## | ||
nodePorts: | ||
backend: "" | ||
## @param service.sessionAffinity Control where client requests go, to the same pod or round-robin | ||
## Values: ClientIP or None | ||
## ref: https://kubernetes.io/docs/user-guide/services/ | ||
## | ||
sessionAffinity: None | ||
## @param service.clusterIP Backstage service Cluster IP | ||
## e.g.: | ||
## clusterIP: None | ||
## | ||
clusterIP: "" | ||
## @param service.loadBalancerIP Backstage service Load Balancer IP | ||
## ref: https://kubernetes.io/docs/user-guide/services/#type-loadbalancer | ||
## | ||
loadBalancerIP: "" | ||
## @param service.loadBalancerSourceRanges Backstage service Load Balancer sources | ||
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service | ||
## e.g: | ||
## loadBalancerSourceRanges: | ||
## - 10.10.10.0/24 | ||
## | ||
loadBalancerSourceRanges: [] | ||
## @param service.externalTrafficPolicy Backstage service external traffic policy | ||
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip | ||
## | ||
externalTrafficPolicy: Cluster | ||
## @param service.annotations Additional custom annotations for Backstage service | ||
## | ||
annotations: {} | ||
## @param service.extraPorts Extra ports to expose in the Backstage service (normally used with the `sidecar` value) | ||
## | ||
extraPorts: [] | ||
|
||
## Network policies | ||
## Ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/ | ||
## | ||
networkPolicy: | ||
## @param networkPolicy.enabled Specifies whether a NetworkPolicy should be created | ||
## | ||
enabled: false | ||
## @param networkPolicy.allowExternal Don't require client label for connections | ||
## When set to false, only pods with the correct client label will have network access to the port Kafka is | ||
## listening on. When true, zookeeper accept connections from any source (with the correct destination port). | ||
## | ||
externalAccess: | ||
from: [] | ||
## @param networkPolicy.egressRules.customRules [object] Custom network policy rule | ||
## | ||
egressRules: | ||
## Additional custom egress rules | ||
## e.g: | ||
## customRules: | ||
## - to: | ||
## - namespaceSelector: | ||
## matchLabels: | ||
## label: example | ||
customRules: [] |