glide

by EinStack

Helm chartv0.0.2App 0.0.3Verified publisher

Glide Helm Chart, an open blazing-fast simple model gateway for production-ready GenAI apps

About this chart

Glide Helm Chart

The helm chart installs Glide in a Kubernetes cluster.

Installation

Before installing the Helm chart, you need to create a Kubernetes secret with your API keys like:

kubectl create secret generic api-keys --from-literal=OPENAI_API_KEY=sk-abcdXYZ

Then, you need to create a custom values.yaml file to override the secret name like:

# save as custom.values.yaml, for example
glide:
    apiKeySecret: "api-keys"

Install from ArtifactHub

Add the EinStack chart registry to your local Helm:

helm repo add einstack https://einstack.github.io/charts
helm repo update

Then, you should be able to install Glide via:

helm upgrade glide-gateway einstack/glide --values custom.values.yaml --install

Install from Source

Close this repository and run the following Helm command to install Glide into a cluster you have authenticated with:

helm upgrade glide-gateway ./charts/glide --values custom.values.yaml --install

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override glide.fullname template (will maintain the release name)""
fullnameOverrideString to fully override glide.fullname template""
namespaceOverrideString to fully override common.names.namespace""

Glide parameters

NameDescriptionValue
image.repositoryGlide Image nameghcr.io/einstack/glide
image.tagGlide Image tag or a digest (in a form of sha256:aa..)0.0.1-alpine
image.pullPolicyGlide image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
replicaCountThe number of replicas to create (more than two are recommended to have some redundancy)3

Glide Configs

NameDescriptionValue
glide.commandOverride default container command (useful when using custom images)[]
glide.argsOverride default container args (useful when using custom images)["--config=/etc/glide/config.yaml"]
glide.ports.gatewayHTTPOverride default Glide HTTP server port9099
glide.configGlide declarative configuration (deployed as a configmap)"see values.yaml file"
glide.externalConfigmapAn external existing configmap with Glide declarative configuration""
glide.apiKeySecretAn external existing secret with API keys referenced in the config (e.g. OPENAI_API_KEY)""
glide.extraEnvVarsArray containing extra env vars to configure Kong[]
glide.extraEnvVarsFromConfigmapConfigMap containing extra env vars to configure Glide""
glide.extraEnvVarSecretsAn array of secrets containing extra sensitive env vars to configure Glide[]
glide.lifecycleHooksLifecycle hooks (Glide container){}
glide.extraVolumesArray of extra volumes to be added to the Glide deployment. Requires setting extraVolumeMounts[]
glide.extraVolumeMountsArray of extra volume mounts to be added to the Glide Container. Normally used with extraVolumes.[]
resources.requestsThe requested resources for the init container{}
resources.limitsThe resources limits for the init container{}
podAnnotationsPod annotations{}
podLabelsAdd additional labels to the pod{}

Security Parameters

NameDescriptionValue
serviceAccount.createEnable creation of ServiceAccount for Gitea podtrue
serviceAccount.nameThe name of the ServiceAccount to use.""
serviceAccount.automountServiceAccountTokenAllows auto mount of ServiceAccountToken on the serviceAccount createdfalse
serviceAccount.annotationsAdditional custom annotations for the ServiceAccount{}
podSecurityContext.enabledEnable Gitea pods' Security Contexttrue
podSecurityContext.fsGroupChangePolicySet filesystem group change policyAlways
podSecurityContext.sysctlsSet kernel settings using the sysctl interface[]
podSecurityContext.supplementalGroupsSet filesystem extra groups[]
podSecurityContext.fsGroupGitea pods' group ID1001
securityContext.enabledEnabled containers' Security Contexttrue
securityContext.seLinuxOptionsSet SELinux options in containernil
securityContext.runAsUserSet containers' Security Context runAsUser1001
securityContext.runAsNonRootSet container's Security Context runAsNonRoottrue
securityContext.privilegedSet container's Security Context privilegedfalse
securityContext.readOnlyRootFilesystemSet container's Security Context readOnlyRootFilesystemtrue
securityContext.allowPrivilegeEscalationSet container's Security Context allowPrivilegeEscalationfalse
securityContext.capabilities.dropList of capabilities to be dropped["ALL"]
securityContext.seccompProfile.typeSet container's Security Context seccomp profileRuntimeDefault

Traffic Exposure Parameters

NameDescriptionValue
hostNetworkHost networking requested for this pod. Use the host's network namespace.false
dnsPolicyPod DNS policy ClusterFirst, ClusterFirstWithHostNet, None, Default, None""
dnsConfigCustom DNS config. Required when DNS policy is None.{}
service.typeKubernetes Service typeClusterIP
service.portKubernetes Service port9099
service.annotationsAdditional custom annotations for Gitea service{}

Scheduling Parameters

NameDescriptionValue
priorityClassNameGlide pods' priorityClassName""
autoscaling.enabledEnable autoscaling for replicas (recommended if load is variable)false
autoscaling.minReplicasMinimum number of replicas3
autoscaling.maxReplicasMaximum number of replicas15
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage80
autoscaling.targetMemoryUtilizationPercentageTarget Memory utilization percentage""
nodeSelectorNode labels for pod assignment.{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}
podDisruptionBudget.enabledEnabled Pod Disruption Budget (highly recommended)true
podDisruptionBudget.minAvailableMinium number of available replicas during disruption (not less than two is recommended)2
podDisruptionBudget.maxUnavailableMax number of unavailable replicas at the same time""

Deploy glide with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has glide on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartglide is pinned at v0.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply