php-guest-book
by sossickd
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
| Parameter | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for pod assignment. |
| autoscaling.enabled | bool | false | If true, create a HPA for the deployment. |
| autoscaling.maxReplicas | int | 10 | Maximum number of pod replicas. |
| autoscaling.minReplicas | int | 1 | Minimum number of pod replicas. |
| autoscaling.targetCPUUtilizationPercentage | int | 50 | Target CPU utilisation for the pod. |
| autoscaling.targetMemoryUtilizationPercentage | int | 50 | Target memory utilisation for the pod. |
| fullnameOverride | string | "" | Override the fullname of the chart. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| image.repository | string | "gcr.io/google-samples/gb-frontend" | Image repository. |
| image.tag | string | "v5" | Image tag. |
| imagePullSecrets | list | [] | Image pull secrets. |
| ingress.annotations | object | {} | Ingress annotations. |
| ingress.enabled | bool | false | If true, create an ingress object. |
| ingress.hosts[0].host | string | "chart-example.local" | Ingress hostname. |
| ingress.hosts[0].paths[0].path | string | "/" | Ingress path. |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | Ingress pathType |
| ingress.ingressClassName | string | "" | Ingress class to use. |
| ingress.tls | list | [] | Ingress TLS configuration |
| nameOverride | string | "" | Override the name of the chart. |
| nodeSelector | object | {} | Node labels for pod assignment. |
| podAnnotations | object | {} | Annotations to add to the pod. |
| podSecurityContext | object | {} | Security context for the pod. |
| redis.auth.enabled | bool | false | If false, disables redis auth, this is a requirement for the php-guest-book. |
| redis.enabled | bool | true | If true, deploys redis, this is a requirement for the php-guest-book. |
| redis.master.persistence.enabled | bool | false | If true enable persistence storage for the redis master. |
| redis.replica.persistence.enabled | bool | false | If true enable persistence storage for the redis replica. |
| redis.replica.replicaCount | int | 2 | Redis replica, replica count. |
| replicaCount | int | 1 | Replica count. |
| resources | object | {} | Resource requests and limits. |
| securityContext | object | {} | Security context for the container. |
| service.port | int | 80 | Service port. |
| service.type | string | "ClusterIP" | Service type. |
| serviceAccount.annotations | object | {} | Annotations to add to the service account. |
| serviceAccount.create | bool | true | Specifies whether a service account should be created. |
| serviceAccount.name | string | "" | The name of the service account to use. |
| tolerations | list | [] | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartphp-guest-book is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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