diff --git a/README.md b/README.md index 498d2bf..1a89d52 100644 --- a/README.md +++ b/README.md @@ -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** @@ -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** diff --git a/charts/kinto/Chart.yaml b/charts/kinto/Chart.yaml index 1272166..e497419 100644 --- a/charts/kinto/Chart.yaml +++ b/charts/kinto/Chart.yaml @@ -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 diff --git a/charts/kinto/templates/NOTES.txt b/charts/kinto/templates/NOTES.txt index ed56b46..ec3d30c 100644 --- a/charts/kinto/templates/NOTES.txt +++ b/charts/kinto/templates/NOTES.txt @@ -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 diff --git a/charts/kinto/values-prod.yaml b/charts/kinto/values-prod.yaml new file mode 100644 index 0000000..bb422d2 --- /dev/null +++ b/charts/kinto/values-prod.yaml @@ -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" \ No newline at end of file diff --git a/charts/kinto/values.yaml b/charts/kinto/values.yaml index ff576c6..f5e5929 100644 --- a/charts/kinto/values.yaml +++ b/charts/kinto/values.yaml @@ -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/