retail-store-sample-ui-chart

by stacksimplify

Helm chartv1.0.0App 1.3.0Verified publisher

UI App - Modified Helm chart for AWS EKS course (based on aws-containers/retail-store-sample-app)

About this chart

UI Helm Chart

This Helm chart deploys the UI component of the application.

Installation

To install the chart:

helm install ui oci://public.ecr.aws/aws-containers/retail-store-sample-ui-chart:0.8.5

To install with custom values:

helm install ui oci://public.ecr.aws/aws-containers/retail-store-sample-ui-chart:0.8.5 --values custom-values.yaml

Configuration

The following table lists the configurable parameters of the UI chart and their default values.

ParameterDescriptionDefault
replicaCountNumber of UI pods to run1
image.repositoryUI image repositorypublic.ecr.aws/aws-containers/retail-store-sample-ui
image.pullPolicyImage pull policyIfNotPresent
image.tagImage tag-
imagePullSecretsImage pull secrets[]
nameOverrideOverride the name of the chart""
fullnameOverrideOverride the full name of the resources""
serviceAccount.createCreate service accounttrue
serviceAccount.annotationsService account annotations{}
serviceAccount.nameService account name""
podAnnotationsPod annotations{}
podSecurityContextPod security contextfsGroup: 1000
securityContext.capabilities.dropSecurity context capabilities to drop["ALL"]
securityContext.capabilities.addSecurity context capabilities to add["NET_BIND_SERVICE"]
securityContext.readOnlyRootFilesystemMount root filesystem read-onlytrue
securityContext.runAsNonRootRun container as non-root usertrue
securityContext.runAsUserUser ID to run container1000
service.typeKubernetes Service typeClusterIP
service.portService port80
service.annotationsService annotations{}
service.loadBalancerClassClass of load balancer to use""
service.nodePortNode port for service-
resources.limits.memoryMemory limit512Mi
resources.requests.cpuCPU request128m
resources.requests.memoryMemory request512Mi
autoscaling.enabledEnable HPAfalse
autoscaling.minReplicasMinimum number of replicas1
autoscaling.maxReplicasMaximum number of replicas10
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization50
nodeSelectorNode labels for pod assignment{}
tolerationsPod tolerations[]
affinityPod affinity{}
topologySpreadConstraintsPod topology spread constraints[]
metrics.enabledEnable metrics collectiontrue
metrics.podAnnotationsMetrics pod annotationsprometheus.io/scrape: "true", prometheus.io/port: "8080", prometheus.io/path: "/actuator/prometheus"
configMap.createCreate ConfigMaptrue
configMap.nameName of the ConfigMapGenerated if not set
app.themeApplication theme (e.g., default, orange, dark)default
app.endpoints.catalogURL for the catalog servicehttp://catalog:80
app.endpoints.cartsURL for the carts servicehttp://carts:80
app.endpoints.ordersURL for the orders servicehttp://orders:80
app.endpoints.checkoutURL for the checkout servicehttp://checkout:80
app.chat.enabledEnable chat featurefalse
app.chat.providerChat provider configuration""
app.chat.modelChat model configuration""
ingress.enabledEnable ingressfalse
ingress.classNameIngress class name""
ingress.annotationsIngress annotations{}
ingress.tlsIngress TLS configuration[]
ingress.hostsIngress hosts configuration[]
ingressesAdditional ingress configurations[]
istio.enabledEnable Istio integrationfalse
istio.hostsIstio virtual service hosts[]
opentelemetry.enabledEnable OpenTelemetryfalse
opentelemetry.instrumentationOpenTelemetry instrumentation configuration""
podDisruptionBudget.enabledEnable PodDisruptionBudgetfalse
podDisruptionBudget.minAvailableMinimum available pods2
podDisruptionBudget.maxUnavailableMaximum unavailable pods1

Examples

Enabling Ingress

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: chart-example.local
      paths:
        - path: /
          pathType: Prefix

Setting Resource Limits

resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

Configuring Services

app:
  endpoints:
    catalog: http://catalog:80
    carts: http://carts:80
    orders: http://orders:80
    checkout: http://checkout:80

Changing App Theme

app:
  theme: orange # Available options: default, dark, orange

Enabling Chat Feature

app:
  chat:
    enabled: true
    provider: "openai"
    model: "gpt-3.5-turbo"

Deploy retail-store-sample-ui-chart with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has retail-store-sample-ui-chart 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 chartretail-store-sample-ui-chart is pinned at v1.0.0 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