Skip to content

Commit

Permalink
🚧 Add a production values file (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakayolo authored Mar 21, 2021
1 parent a4e1e82 commit 81500ca
Show file tree
Hide file tree
Showing 5 changed files with 135 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ For example, if you want to enable SSL, you need to run "Minimum Configuration"
--set builder.workflow.docker.registry={YOUR_OWN_CONFIG} \
--set builder.workflow.docker.email={YOUR_OWN_CONFIG} \
--set builder.workflow.docker.username={YOUR_OWN_CONFIG} \
--set builder.workflow.docker.password={YOUR_OWN_CONFIG}"
--set builder.workflow.docker.password={YOUR_OWN_CONFIG} \
--set common.domainName={YOUR_OWN_CONFIG}"
```

- **Enable public access to deployed services**
Expand All @@ -114,8 +115,7 @@ For example, if you want to enable SSL, you need to run "Minimum Configuration"

```sh
export KINTO_ARGS="${KINTO_ARGS} \
--set nginx-ingress-controller.service.type=LoadBalancer \
--set common.domainName={YOUR_OWN_CONFIG}"
--set nginx-ingress-controller.service.type=LoadBalancer"
```

- **Enable HTTPS**
Expand Down
2 changes: 1 addition & 1 deletion charts/kinto/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: kinto
home: https://www.kintohub.com/
version: 0.5.0
version: 0.5.1
description: All-in-one deployment platform designed for fullstack developers
dependencies:
- name: nginx-ingress-controller
Expand Down
2 changes: 1 addition & 1 deletion charts/kinto/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SETUP:
Modify your `/etc/hosts` to add your domain name:
- Run `sudo echo "127.0.0.1 *.{{ .Values.common.domainName }} >> /etc/hosts"`.
Port forward nginx to your local machine.
- Run `kubectl port-forward svc/{{ .Release.Name }}-nginx-ingress-controller 80 -n {{ .Release.Namespace }}`.
- Run `sudo kubectl port-forward svc/{{ .Release.Name }}-nginx-ingress-controller 80 -n {{ .Release.Namespace }}`.
{{- end }}

3. Access your dashboard
Expand Down
129 changes: 129 additions & 0 deletions charts/kinto/values-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
common:
domainName: oss.kintohub.net ## TO BE CHANGED
ssl:
enabled: true
issuer:
email: devaccounts@kintohub.com ## TO BE CHANGED - this email will be used for every certificate generated
solver:
existingSecret: kinto-cert-manager ## in `cert-manager` namespace

core:
replicas: 2

secretKey: K1nt0Hub!

env:
LOG_LEVEL: INFO

resources:
requests:
memory: "128Mi"
limits:
memory: "128Mi"

builder:
replicas: 2

env:
LOG_LEVEL: INFO

IMAGE_REGISTRY_HOST: kintohub ## TO BE CHANGED

ARGO_WORKFLOW_VOLUME_SIZE: 10Gi
ARGO_WORKFLOW_MEMORY_LIMIT: 4Gi
ARGO_WORKFLOW_CPU_LIMIT: 2
ARGO_WORKFLOW_MEMORY_REQUEST: 2Gi
ARGO_WORKFLOW_CPU_REQUEST: 500m

resources:
requests:
memory: "128Mi"
limits:
memory: "128Mi"

workflow:
docker:
existingSecret: kinto-builder-workflow-docker ## in `kintohub` namespace

dashboard:
replicas: 2

resources:
requests:
memory: 64Mi
limits:
memory: 64Mi

nginx-ingress-controller:
service:
type: LoadBalancer

replicaCount: 2
minAvailable: 2

resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "500m"

affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- nginx-ingress-controller
- key: component
operator: In
values:
- controller
topologyKey: "kubernetes.io/hostname"

autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 5
targetCPUUtilizationPercentage: 70
targetMemoryUtilizationPercentage: 70

defaultBackend:
replicaCount: 2
minAvailable: 1

resources:
requests:
memory: "32Mi"
limits:
memory: "32Mi"

proxless:
logLevel: INFO
replicas: 2

resources: {}

env:
SERVERLESS_TTL_SECONDS: 30 ## Time in seconds proxless waits before scaling down the app
DEPLOYMENT_READINESS_TIMEOUT_SECONDS: 30 ## Time in seconds proxless waits for the deployment to be ready when scaling up the app
SCALE_DOWN_CHECK_INTERVAL_SECONDS: 3000 ## The downscaler check the deployment every N seconds
SERVICES_INFORMER_RESYNC_INTERVAL_SECONDS: 3000 ## All services will be resynced after N seconds
REDIS_URL: kinto-redis-master:6379 ## Configured to use redis below

redis:
enabled: true

minio:
persistence:
enabled: true
size: 10Gi

resources:
requests:
memory: "256Mi"
limits:
memory: "256Mi"
2 changes: 1 addition & 1 deletion charts/kinto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ common:
## ie: Kinto dashboard will be accessible through 'dashboard.oss.kintohub.net'
## ie: Kinto core will be accessible through 'core.oss.kintohub.net' and 'core-web.oss.kintohub.net'
## id: Every kinto services will be a subdomain of 'oss.kintohub.net'
domainName: oss.kintohub.net
domainName: oss.kintohub.net ## TO BE CHANGED
ssl:
enabled: false
## Cert Manager concept: https://cert-manager.io/docs/concepts/issuer/
Expand Down

0 comments on commit 81500ca

Please sign in to comment.