php-guest-book

by sossickd

Helm chartv0.1.0App 5.0.0Verified publisher

A Helm chart for the php guest book.

About this chart

php-guest-book

php-guest-book is a simple, multi-tier PHP-based web application that uses redis chart.

Introduction

This chart bootstraps a guestbook deployment on a Kubernetes cluster using the Helm package manager.

This chart has a dependency on the Bitnami Redis chart which is required for bootstrapping a Redis deployment for the caching requirements of the guestbook application.

Installing the Chart

Before you can install the chart you will need to add the sossickd repo to Helm.

helm repo add sossickd https://sossickd.github.io/helm-charts/

After you've installed the repo you can install the chart.

helm upgrade --install --namespace default --values ./my-values.yaml my-release sossickd/php-guest-book

Configuration

ParameterTypeDefaultDescription
affinityobject{}Affinity for pod assignment.
autoscaling.enabledboolfalseIf true, create a HPA for the deployment.
autoscaling.maxReplicasint10Maximum number of pod replicas.
autoscaling.minReplicasint1Minimum number of pod replicas.
autoscaling.targetCPUUtilizationPercentageint50Target CPU utilisation for the pod.
autoscaling.targetMemoryUtilizationPercentageint50Target memory utilisation for the pod.
fullnameOverridestring""Override the fullname of the chart.
image.pullPolicystring"IfNotPresent"Image pull policy.
image.repositorystring"gcr.io/google-samples/gb-frontend"Image repository.
image.tagstring"v5"Image tag.
imagePullSecretslist[]Image pull secrets.
ingress.annotationsobject{}Ingress annotations.
ingress.enabledboolfalseIf true, create an ingress object.
ingress.hosts[0].hoststring"chart-example.local"Ingress hostname.
ingress.hosts[0].paths[0].pathstring"/"Ingress path.
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"Ingress pathType
ingress.ingressClassNamestring""Ingress class to use.
ingress.tlslist[]Ingress TLS configuration
nameOverridestring""Override the name of the chart.
nodeSelectorobject{}Node labels for pod assignment.
podAnnotationsobject{}Annotations to add to the pod.
podSecurityContextobject{}Security context for the pod.
redis.auth.enabledboolfalseIf false, disables redis auth, this is a requirement for the php-guest-book.
redis.enabledbooltrueIf true, deploys redis, this is a requirement for the php-guest-book.
redis.master.persistence.enabledboolfalseIf true enable persistence storage for the redis master.
redis.replica.persistence.enabledboolfalseIf true enable persistence storage for the redis replica.
redis.replica.replicaCountint2Redis replica, replica count.
replicaCountint1Replica count.
resourcesobject{}Resource requests and limits.
securityContextobject{}Security context for the container.
service.portint80Service port.
service.typestring"ClusterIP"Service type.
serviceAccount.annotationsobject{}Annotations to add to the service account.
serviceAccount.createbooltrueSpecifies whether a service account should be created.
serviceAccount.namestring""The name of the service account to use.
tolerationslist[]Tolerations for pod assignment.

Deploy php-guest-book with OpenTenant

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