example-deployment

by startxfr

Helm chartv21.3.418App 0.0.1GPL-3.0-or-laterVerified publisher

Helm chart used to deploy and manage a scaled pod running a given container image.

About this chart

Example Chart : Deployment

This helm chart is used to create a deployment of various application images according to the values file.

This chart is part of the example-xxx startx helm chart series focused on deploying various kind of application consuming the cluster services deployed using the cluster-xxx charts.

Requirements and guidelines

Read the startx helm-repository homepage for more information on how to use these resources.

Deploy this helm chart on openshift

1. Connect to your Openshift cluster

oc login -t <token> <cluster-url>

2. Install the repository

helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/

3. Get information about this chart

helm show chart startx/example-deployment

4. Install this chart

helm install example-deployment startx/example-deployment

Values files

Default values file (values.yaml)

Simple deployment of a container image with the following characteristics :

  • 1 deployment named example-deployment of 1 pod running quay.io/startx/fedora:latest image
  • 1 service named example-deployment
# base configuration running default configuration
helm install example-deployment startx/example-deployment

Demo values file (values-demo.yaml)

Deployment of an demo container image with the following characteristics :

  • 1 pod named demo-helm-deployment of 2 pods running quay.io/startx/apache:latest image
  • 1 service named demo-helm-deployment
# Configuration running demo example configuration
helm install example-deployment-demo startx/example-deployment -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/example-sxapi/values-demo.yaml

Apache values file (values-apache.yaml)

Deployment of an apache container image with the following characteristics :

  • 1 pod named example-deployment-apache of 2 pods running quay.io/startx/apache:latest image
  • 1 service named example-deployment-apache
# Configuration running apache example configuration
helm install example-deployment-apache startx/example-deployment -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/example-sxapi/values-apache.yaml

MariaDB values file (values-mariadb.yaml)

Deployment of an mariadb container image with the following characteristics :

  • 1 pod named example-deployment-mariadb of 2 pods running quay.io/startx/mariadb:latest image
  • 1 service named example-deployment-mariadb
# Configuration running mariadb example configuration
helm install example-deployment-mariadb startx/example-deployment -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/example-sxapi/values-mariadb.yaml

Other values files

Values dictionary

context values dictionary

KeyDefaultDescription
context.scopedefaultName of the global scope for this application (organizational tenant)
context.clusterlocalhostName of the cluster running this application (platform tenant)
context.environmentdevName of the environment for this application (ex: dev, factory, preprod or prod)
context.componentdemoComponent name of this application (logical tenant)
context.appexample-deploymentApplication name (functional tenant, default use Chart name)
context.version0.0.1Version name of this application (default use Chart appVersion)

example-deployment values dictionary

KeyDefaultDescription
imagefedora:latestImage to run into the pod
command/bin/sxCommand to run inside the container
argsrunargunments to pass to the command exectuted inside the container
debugtrueEnable debuging of the container
replicas1Define the number of replicas for this sxapi instance

Deploy with ArgoCD

Deploy via ArgoCD Application

example-deployment can be deployed by ArgoCD with a single Application. Adapt the destination namespace and the values to your cluster.

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: example-deployment
  namespace: openshift-gitops
  finalizers:
    - resources-finalizer.argocd.argoproj.io
spec:
  project: default
  source:
    repoURL: https://sx-helm-repository-prod.s3.eu-west-3.amazonaws.com/stable
    chart: example-deployment
    # pin an exact version in production (ADR-0004)
    targetRevision: 21.3.418
    helm:
      valueFiles:
        - values.yaml
  destination:
    server: https://kubernetes.default.svc
    namespace: default-deployment
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true

History

ReleaseDateDescription
16.19.592024-12-09Align all chart to the 16.19.59 release
17.14.902025-04-30Publish stable release for 4.17 version
18.11.712025-11-27Align all charts to the same releas
18.23.02026-02-28Start 4.19 branch
19.23.172026-03-02Align all dependencies to chart v19.23.11
20.14.152026-03-02Update all chrat to OCP version 4.20.14
21.3.02026-03-02Update all chart to OCP version 4.21.3
21.3.2782026-08-14add centigpu
21.3.3002026-10-21Add new charts and align all to this release
21.3.3092026-10-27Adding new charts perconna and align all to v21.3.309
21.3.3212026-11-05Adding external secret management
21.3.3712026-11-19Add Sail, oauthProxy, DSCInitialization, spot machines and annotations support
21.3.3772026-11-19full repository release: aligned pins, ArgoCD source fix, schemas and docs
21.3.3792026-11-19conventions wave: spelling, READMEs, ArgoCD examples and values-app, oauth switch
21.3.3892026-11-19full repository release: HTTPS dependency URLs, dependency-ordered release, schema guard, docs and examples
21.3.3902026-11-20full repository release: test fix, keepalived README, aligned pins
21.3.3922026-11-21full repository release: chaos-pipeline run parameters and authenticated health check, aligned pins
21.3.3972026-11-21stable repository release 21.3.397: all charts aligned, unifai delegation cap documentation
21.3.4102026-11-22full repository release: README conventions (Values files, Deploy with ArgoCD), conventions page
21.3.4122026-11-22full repository release: internal pins on the previous published version (ADR-0006)
21.3.4162026-11-23stable update: chart fixes (project, cluster-mongo, cluster-oadp, cluster-pipeline, cluster-machine, example-catalog); cluster-dvo accepts the grafana keys next to its historical keys, which keep priority
21.3.4182026-11-23commit a stable release of all charts

Deploy example-deployment with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has example-deployment 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 chartexample-deployment is pinned at v21.3.418 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