ip-geo-locator

by Helm

Helm chartv0.1.0App v0.1.0

A Helm chart for the Geolocating service of any IP addresses

About this chart

ip-geo-locator

ip-geo-locator is a simple utility server written in go which queries the location of the IP addresses.

TL;DR;

$ helm repo add gkarthiks https://gkarthiks.github.io/helm-charts
$ helm install --name ip-locator gkarthiks/ip-geo-locator

Introduction

This deploys a stateless deployment of the ip-geo-locator on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.8+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name ip-locator:

$ helm repo add gkarthiks https://gkarthiks.github.io/helm-charts
$ helm install --name ip-locator gkarthiks/ip-geo-locator

The command deploys ip-locator on the Kubernetes cluster in the default configuration.

Uninstalling the Chart

To uninstall/delete the ip-locator deployment:

$ helm delete ip-locator

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters and their default values.

ParameterDescriptionDefault
replicaCountdesired number of ip-locator pods1
image.repositoryip-locator image repositorygkarthics/ip-geo-locator
image.tagip-locator image tagv0.1.0
image.pullPolicyimage pull policyIfNotPresent
service.typedesired service typeClusterIP
service.portservice external port8080
ingress.enabledenable ingress controller resourcefalse
ingress.annotationsannotations for the host's ingress recordsfalse
ingress.pathpath for the ingress route/
ingress.hostslist of host address for ingress creation
ingress.tlsutilize TLS backend in ingress
resourcescpu/memory resource requests/limits{}
nodeSelectornode labels for pod assignment{}
tolerationstolerations for pod assignment{}
affinityaffinity settings for proxy pod assignments{}
readinessProbereadiness probe, as of now there is no endpoint to check.false
livenessProbeliveness probe, as of now there is no endpoint to check.false

For more information please refer to the ip-geo-locator documentation.

PS: The request is served over the /ip/ endpoints.

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

$ helm install --name ip-locator \
  --set "image.tag=latest" \
    gkarthiks/ip-geo-locator

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

$ helm install --name ip-locator -f values.yaml gkarthiks/ip-geo-locator

Deploy ip-geo-locator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ip-geo-locator 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 chartip-geo-locator 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