gce-ingress

by joaquinito2051

Helm chartv1.1.2App 1.4.0

A GCE Ingress Controller

About this chart

gce-ingress

ingress-gce is an Ingress controller that configures GCE loadbalancers

To use, add the kubernetes.io/ingress.class: "gce" annotation to your Ingress resources.

TL;DR;

$ helm install <helm-repo>/gce-ingress

$ helm install stable/gce-ingress

Introduction

This chart bootstraps a gce-ingress deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.9+

Installing the Chart

To install the chart with the release name my-release into the kube-system namespace:

$ helm install --namespace kube-system --name my-release <helm-repo>/gce-ingress

$ helm install --namespace kube-system --name my-release stable/gce-ingress The command deploys gce-ingress on the Kubernetes cluster in the default configuration. The configuration 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.

Configuration

The following table lists the configurable parameters of the gce-ingress chart and their default values.

ParameterDescriptionDefault
controller.namename of the controller componentcontroller
controller.image.repositorycontroller container image repositoryk8s.gcr.io/ingress-gce-glbc-amd64
controller.image.tagcontroller container image tagv1.4.0
controller.image.pullPolicycontroller container image pull policyIfNotPresent
controller.configgce ConfigMap entriesnone
controller.tolerationsnode taints to tolerate (requires Kubernetes >=1.6)[]
controller.affinitynode/pod affinities (requires Kubernetes >=1.6){}
controller.nodeSelectornode labels for pod assignment{}
controller.replicaCountdesired number of controller pods1
controller.resourcescontroller pod resource requests & limits{}
defaultBackend.namename of the default backend componentdefault-backend
defaultBackend.image.repositorydefault backend container image repositoryk8s.gcr.io/defaultbackend
defaultBackend.image.tagdefault backend container image tag1.4
defaultBackend.image.pullPolicydefault backend container image pull policyIfNotPresent
defaultBackend.tolerationsnode taints to tolerate (requires Kubernetes >=1.6)[]
defaultBackend.affinitynode/pod affinities (requires Kubernetes >=1.6){}
defaultBackend.nodeSelectornode labels for pod assignment{}
defaultBackend.replicaCountdesired number of default backend pods1
defaultBackend.resourcesdefault backend pod resource requests & limits{}
rbac.enableduse RBAC ?true
$ helm install <helm-repo>/gce-ingress --name my-release

$ helm install stable/gce-ingress --name my-release Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

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

$ helm install stable/gce-ingress --name my-release -f values.yaml

$ helm install <helm-repo>/gce-ingress --set controller.extraArgs.v=2

Deploy gce-ingress with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gce-ingress 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 chartgce-ingress is pinned at v1.1.2 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