apache

by joaquinito2051

Helm chartv4.2.0App 2.4.39

Chart for Apache HTTP Server

About this chart

Apache

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

The Apache HTTP Server ("httpd") was launched in 1995 and it has been the most popular web server on the Internet since April 1996. It has celebrated its 20th birthday as a project in February 2015.

TL;DR

$ helm install <helm-repo>/apache

$ helm install bitnami/apache

Introduction

Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.

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

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Installing the Chart

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

$ helm install --name my-release <helm-repo>/apache

$ helm install --name my-release bitnami/apache The command deploys Apache on the Kubernetes cluster in the default configuration.

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.

Configuration

The following tables lists the configurable parameters of the Apache chart and their default values.

ParameterDescriptionDefault
global.imageRegistryGlobal Docker image registrynil
global.imagePullSecretsGlobal Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.registryApache Docker image registrydocker.io
image.repositoryApache Docker image namebitnami/apache
image.tagApache Docker image tag{VERSION}
image.pullPolicyApache Docker image pull policyAlways
image.pullSecretsSpecify Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
podAnnotationsPod annotations{}
ingress.enabledEnable ingress controller resourcefalse
ingress.certManagerAdd annotations for cert-managerfalse
ingress.annotationsIngress annotations[]
ingress.hosts[0].nameHostname to your Apache installationexample.local
ingress.hosts[0].pathPath within the url structure/
ingress.tls[0].hosts[0]TLS hostsexample.local
ingress.tls[0].secretNameTLS Secret (certificates)example.local-tls
ingress.secrets[0].nameTLS Secret Namenil
ingress.secrets[0].certificateTLS Secret Certificatenil
ingress.secrets[0].keyTLS Secret Keynil
metrics.enabledStart a side-car prometheus exporterfalse
metrics.image.registryApache exporter image registrydocker.io
metrics.image.repositoryApache exporter image namelusotycoon/apache-exporter
metrics.image.tagApache exporter image tagv0.5.0
metrics.image.pullPolicyApache exporter image pull policyIfNotPresent
metrics.image.pullSecretsSpecify Docker registry secret names as an array[] (does not add image pull secrets to deployed pods)
metrics.podAnnotationsAdditional annotations for Metrics exporter pod{prometheus.io/scrape: "true", prometheus.io/port: "9117"}
metrics.resourcesExporter resource requests/limit{}
service.typeKubernetes Service typeLoadBalancer
service.portService HTTP port80
service.httpsPortService HTTPS port443
service.nodePorts.httpKubernetes http node port""
service.nodePorts.httpsKubernetes https node port""
service.externalTrafficPolicyEnable client source IP preservationCluster
service.loadBalancerIPLoadBalancer service IP address""

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
  --set imagePullPolicy=Always \
    <helm-repo>/apache
$ helm install --name my-release \

The above command sets the imagePullPolicy to Always.

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

$ helm install --name my-release -f values.yaml <helm-repo>/apache

$ helm install --name my-release -f values.yaml bitnami/apache

Tip: You can use the default values.yaml

Upgrading

To 2.0.0

Backwards compatibility is not guaranteed unless you modify the labels used on the chart's deployments. Use the workaround below to upgrade from versions previous to 2.0.0. The following example assumes that the release name is apache:

$ kubectl patch deployment apache --type=json -p='[{"op": "remove", "path": "/spec/selector/matchLabels/chart"}]'

Deploy apache with OpenTenant

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