Skip to content
7 changes: 4 additions & 3 deletions install-manifests/helm/space-cloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
apiVersion: v3
name: space-cloud
version: 0.21.5 # Chart version
appVersion: 0.21.5 # Space Cloud version
version: 0.21.5-1 # Chart version
appVersion: 0.21.5 # Space Cloud version
description: Helm Chart to install Space Cloud
type: application
keywords:
- baaS
- baaS
home: https://spaceuptech.com/
sources:
- https://github.com/spaceuptech/space-cloud/tree/master/install-manifests/helm/space-cloud
21 changes: 13 additions & 8 deletions install-manifests/helm/space-cloud/templates/01-core.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
#############################################################################################
################################ Set some global parameters ################################
#############################################################################################
{{ if .Values.createNamespace }}
apiVersion: v1
kind: Namespace
metadata:
name: space-cloud
labels:
{{ if .Values.istio.enabled }}
istio-injection: enabled
{{ end }}
---
{{ end }}
{{ if .Values.istio.enabled }}
apiVersion: "security.istio.io/v1beta1"
kind: "PeerAuthentication"
metadata:
Expand All @@ -10,18 +22,11 @@ spec:
mtls:
mode: STRICT
---
apiVersion: v1
kind: Namespace
metadata:
name: space-cloud
labels:
istio-injection: enabled
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: deny-all
namespace: default
spec:
{}
---
{{ end }}
2 changes: 2 additions & 0 deletions install-manifests/helm/space-cloud/templates/02-redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
name: redis
namespace: space-cloud
---
{{ if .Values.istio.enabled }}
#############################################################################################
################################### Istio related config ###################################
#############################################################################################
Expand Down Expand Up @@ -50,6 +51,7 @@ spec:
port:
number: 6379
---
{{ end }}
#############################################################################################
##################################### Kubernetes config ####################################
#############################################################################################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#############################################################################################
############################### Service Account and Roles ##################################
#############################################################################################
{{ if .Values.prometheus.enabled }}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down Expand Up @@ -57,6 +58,7 @@ roleRef:
kind: ClusterRole
name: prometheus
---
{{ if .Values.istio.enabled }}
#############################################################################################
################################### Istio related config ###################################
#############################################################################################
Expand Down Expand Up @@ -103,6 +105,7 @@ spec:
attempts: 3
perTryTimeout: 60s
---
{{ end }}
#############################################################################################
##################################### Kubernetes config ####################################
#############################################################################################
Expand Down Expand Up @@ -333,4 +336,5 @@ spec:
name: prometheus
- name: storage-volume
emptyDir:
{}
{}
{{ end }}
6 changes: 4 additions & 2 deletions install-manifests/helm/space-cloud/templates/04-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ roleRef:
name: space-cloud-runner
apiGroup: rbac.authorization.k8s.io
---
{{ if .Values.istio.enabled }}
#############################################################################################
################################### Istio related config ###################################
#############################################################################################
Expand Down Expand Up @@ -133,6 +134,7 @@ spec:
port:
number: 4060
---
{{ end }}
#############################################################################################
##################################### Kubernetes config ####################################
#############################################################################################
Expand Down Expand Up @@ -176,7 +178,7 @@ spec:
containers:
- name: runner
command: ["./app", "start"]
image: "{{ .Values.runner.image.name }}:{{ .Chart.Version }}"
image: "{{ .Values.runner.image.name }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.runner.image.pullPolicy }}
env:
- name: "LOG_LEVEL"
Expand Down Expand Up @@ -207,7 +209,7 @@ spec:
memory: {{ .Values.runner.resources.requests.memory }}
cpu: {{ .Values.runner.resources.requests.cpu }}
---
apiVersion: autoscaling/v2beta2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: runner
Expand Down
6 changes: 4 additions & 2 deletions install-manifests/helm/space-cloud/templates/05-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ roleRef:
name: space-cloud-gateway
apiGroup: rbac.authorization.k8s.io
---
{{ if .Values.istio.enabled }}
#############################################################################################
################################### Istio related config ###################################
#############################################################################################
Expand Down Expand Up @@ -141,6 +142,7 @@ spec:
attempts: 3
perTryTimeout: 60s
---
{{ end }}
#############################################################################################
##################################### Kubernetes config ####################################
#############################################################################################
Expand Down Expand Up @@ -185,7 +187,7 @@ spec:
containers:
- name: gateway
command: [ "./app", "run" ]
image: "{{ .Values.gateway.image.name }}:{{ .Chart.Version }}"
image: "{{ .Values.gateway.image.name }}:{{ .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.gateway.image.pullPolicy }}
livenessProbe:
exec:
Expand Down Expand Up @@ -264,7 +266,7 @@ spec:
{{ end }}
terminationGracePeriodSeconds: 300
---
apiVersion: autoscaling/v2beta2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: gateway
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7269,4 +7269,4 @@ spec:
namespace: keda
version: v1beta1
versionPriority: 100
{{end}}
{{ end }}
7 changes: 6 additions & 1 deletion install-manifests/helm/space-cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
clusterId: "default"
devMode: "true" # Turn this to false for production mode
isKedaEnabled: true # Set this to false to skip installing keda
createNamespace: true

admin:
username: "admin" # Log in username
Expand Down Expand Up @@ -79,6 +80,7 @@ redis:

# Prometheus service configuration
prometheus:
enabled: true
image:
name: "prom/prometheus"
version: "v2.19.0"
Expand Down Expand Up @@ -106,7 +108,10 @@ dbEvents:
memory: "512Mi"
cpu: "500m"

istio:
enabled: false

# Connection string used by gateway & runner to connect to other services
connections:
redisConn: "redis.space-cloud.svc.cluster.local:6379"
prometheusConn: "http://prometheus.space-cloud.svc.cluster.local:9090"
prometheusConn: "http://prometheus.space-cloud.svc.cluster.local:9090"