http-url-playlist

by julien.baillagou

Helm chartv1.0.0App 1.0.2Verified publisher

A Helm chart useful to respond to heathchecks.

About this chart

http-url-playlist

TL;DR

$ helm repo add julb https://charts.julb.me
$ helm install my-release julb/http-url-playlist

Introduction

This chart bootstraps a simple web server on a Kubernetes cluster using the Helm package manager. The application is a simple Web application which provides a way to display a first URL within a iframe (full page), then after rotationDelay ms, display the next URL, etc... undefinitely.

Prerequisites

  • Kubernetes 1.12+
  • Helm 3.0+

Installing the Chart

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

$ helm install my-release julb/http-url-playlist

The command deploys http-url-playlist on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

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.

Parameters

The following table lists the configurable parameters of the http-url-playlist chart and their default values.

Common parameters

ParameterDescriptionDefault
nameOverrideString to partially override http-url-playlist.fullnamenil
fullnameOverrideString to fully override http-url-playlist.fullnamenil

http-url-playlist parameters

ParameterDescriptionDefault
image.repositoryhttp-url-playlist image namejulb/http-url-playlist
image.taghttp-url-playlist image tag{TAG_NAME}
image.pullPolicyhttp-url-playlist image pull policyIfNotPresent
imagePullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)

Deployment parameters

ParameterDescriptionDefault
replicaCountNumber of http-url-playlist nodes1
podAnnotationshttp-url-playlist Pod annotations{} (evaluated as a template)
affinityAffinity for pod assignment{} (evaluated as a template)
nodeSelectorNode labels for pod assignment{} (evaluated as a template)
tolerationsTolerations for pod assignment[] (evaluated as a template)
podSecurityContexthttp-url-playlist pods' Security Context{}
securityContexthttp-url-playlist containers' Security Context{}
resourcesThe requested resources and resources limits for http-url-playlist containers{}
extraLabelsAdditional labels to apply on all objects{}

Exposure parameters

ParameterDescriptionDefault
service.typeKubernetes Service typeClusterIP
service.portHTTP port80
ingress.enabledEnable ingress resource for the deploymentfalse
ingress.annotationsIngress annotations{}
ingress.hostnameDefault host for the ingress resourcehttp-url-playlist.local
ingress.tlsEnable TLS configuration for the hostname defined at ingress.hostname parameterfalse
ingress.existingSecretExisting secret for the Ingress TLS certificatenil
ingress.hosts[0].hostAdditional hostnames to be coverednil
ingress.hosts[0].paths[0]Additional paths to be coverednil
ingress.tls[0].hosts[0]TLS configuration for additional hostnames to be coverednil
ingress.tls[0].secretNameTLS configuration for additional hostnames to be coverednil

RBAC parameters

ParameterDescriptionDefault
serviceAccount.createEnable creation of ServiceAccounttrue
serviceAccount.nameName of the created serviceAccountGenerated using the http-url-playlist.fullname template
serviceAccount.annotationsAnnotations to add on the service account.{}

http-url-playlist parameters

ParameterDescriptionDefault
httpUrlPlaylist.rotationDelayThe delay in milliseconds before the rotation to the next URL.60000
httpUrlPlaylist.urls[]The list of URLs to display sequentially.[]

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-release -f values.yaml julb/http-url-playlist

Tip: You can use the default values.yaml

Deploy http-url-playlist with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has http-url-playlist 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 charthttp-url-playlist 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