salt

by Midokura

Helm chartv0.0.3App 3006.3Verified publisher

Software to automate the management and configuration of any infrastructure or application at scale.

About this chart

Salt (SaltStack)

Salt is a software to automate the management and configuration of any infrastructure or application at scale.

Components

This chart does not require any additional component to be installed.

Installing the Chart

To install the chart with the release name my-release:

$ helm install my-release .

The command deploys Salt and required components on the Kubernetes cluster in the default configuration.

Tip: List all releases using helm list

Advanced installation

You may want to use git-sync to keep up-to-date in latest changes in your Salt state definition.

You can use the following values as an example:

master:
  file_root: /srv/salt/salt-repo-NAME
  service:
    type: LoadBalancer
    loadBalancerIP: 20.0.0.1
  tolerations:
  - effect: NoSchedule
    key: kubernetes.azure.com/scalesetpriority
    operator: Equal
    value: spot
gitsync:
  enabled: true
  envFrom:
  - secretRef:
      name: salt-gitsync
  config:
    repo: https://github.com/organization/salt-repo-NAME
    username: git

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Persistence

The SaltStack image stores Salt configuration data (states) at /srv/salt, and also PKI files at /etc/salt/pki in a single Volume.

The chart mounts a Persistent Volume volume at this location. The volume is created using dynamic volume provisioning, by default. An existing PersistentVolumeClaim can also be defined.

Deploy salt with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has salt 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 chartsalt is pinned at v0.0.3 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