Example php

This helm chart is used to create a deployment of a small PHP webserver based on startx apache PHP image

Requirements and guidelines

Read the startx helm-repository homepage for more information on how to use theses 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://startxfr.github.io/helm-repository/packages/

3. Get information about this chart

helm show chart startx/example-php

4. Install this chart

helm install startx/example-php

Values dictionary

context values dictionary

Key Default Description
context.scope default Name of the global scope for this application (organisational tenant)
context.cluster localhost Name of the cluster running this application (plateform tenant)
context.environment dev Name of the environement for this application (ex: dev, factory, preprod or prod)
context.component demo Component name of this application (logical tenant)
context.app php Application name (functionnal tenant, default use Chart name)
context.version 0.0.1 Version name of this application (default use Chart appVersion)

example-php values dictionary

Key Default Description
php.service.enabled false Enable service for this application
php.version 8.0.2 Sxapi image version to run
php.profile prod:start Profile to run inside the container
php.debug true Enable debuging of the container
php.replicas 1 Define the number of replicas for this php instance
php.data string Files to load into the application

Values files

Default values file (values.yaml)

Complete deployment of an php application with the following characteristics :

  • 1 service named example-php load balancing to pod deployed
  • 1 deployment named example-php deploying 1 pod from version 8.0.2 php image running the prod:start command with debug disabled
  • 2 configMap holding php configuration and pod environment variable context
# base configuration running default configuration
helm install startx/example-php

Development values file (values-demo-hpa.yaml)

Complete deployment of a php demo application for stress test (used in HPA test) with the following characteristics :

  • 1 service named hpa-app load balancing to pod deployed
  • 1 deployment named hpa-app deploying 2 pod from version alpine3 php image running with debug disabled
  • 2 configMap holding php configuration and pod environment variable context
# base configuration running tekton v1.0.1 configuration
helm install startx/example-php -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/example-php/values-demo-hpa.yaml

History

Release Date Description
0.3.117 2020-11-13 Create chart example-php from example-php
0.3.121 2020-11-14 Add full example of php application deployed with content served from configmaps
0.3.135 2020-11-23 Improve documentation for all examples charts
0.3.141 2020-11-24 publish stable update for the full repository
0.3.151 2021-01-23 Upgrade chart to OCP version 4.3.13
0.3.153 2021-01-23 publish stable update for the full repository
0.3.165 2021-01-23 Upgrade all chart dependencies
0.3.167 2021-01-24 Remove conditional dependencies for argocd compatibility in HA environments
0.3.169 2021-01-24 Move to 0.3.155 dependencies
0.3.187 2021-02-13 Align example chart release to 0.3.187
0.3.191 2021-02-13 Update cluster chart dependencies to 0.3.189
0.3.199 2021-02-20 prepare alpha release of 0.4 and update dependencies charts
0.3.201 2021-02-20 Update icon and image for charts
0.3.203 2021-02-21 Upgrade chart release informations
0.3.207 2021-04-19 Core chart dependencies moved to v0.3.205
0.3.209 2021-05-06 Prepare upgrade to 4.7 and add template for AFD
0.3.215 2021-05-06 Align all chart to release 0.3.215
0.3.225 2021-05-10 Update all chart to use new RBAC naming
0.3.305 2021-06-04 publish stable update for the full repository
0.3.343 2021-06-06 publish stable update for the full repository
0.3.381 2021-06-10 Align example and cluster charts dependencies to basic chart version 0.3.377
0.3.390 2021-06-12 Prepare 0.4.0 release
0.3.423 2021-06-17 Prepare the v0.4 release. Stable aligned version of all charts
0.3.431 2021-07-05 Move to dependencies 1.18.0
0.3.480 2021-08-03 publish stable update for the full repository
0.3.998 2021-08-04 publish stable update for the full repository
0.3.999 2021-08-04 Release stable version 0.3.999 align with ocp 4.7.13
7.22.1 2021-08-04 Move to release 7.22.1 to align versionning with ocp release cycle
7.22.2 2021-08-04 Move helm dependencies to a 7.x.x release model
7.22.3 2021-08-05 publish stable update for the full repository
7.22.5 2021-08-05 publish stable update for the full repository
7.22.6 2021-08-05 Stable version for chart dependencies
7.22.7 2021-08-05 Stable for OCP version 4.7.22
7.22.12 2021-09-23 publish stable update for the full repository
7.22.21 2021-10-05 ServiceAccount and ImagePullSecrets managed by project chart
7.22.25 2021-10-06 publish stable update for the full repository
7.22.27 2021-10-06 publish stable update for the full repository
8.13.1 2021-10-06 Stable release for OCP 4.8.13 version
8.13.3 2021-10-08 Improve code execution, syntax and introduce the ACS helm-chart
8.13.5 2021-10-21 publish stable update for the full repository
8.13.7 2021-10-21 publish stable update for the full repository
8.13.8 2021-10-21 Adding first draft of json schema