kube2iam

by joaquinito2051

Helm chartv1.0.0App 0.10.4

Provide IAM credentials to pods based on annotations.

About this chart

kube2iam

Installs kube2iam to provide IAM credentials to pods based on annotations.

TL;DR;

$ helm install <helm-repo>/kube2iam

$ helm install stable/kube2iam

Introduction

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

Prerequisites

  • Kubernetes 1.4+ with Beta APIs enabled

Installing the Chart

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

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

$ helm install stable/kube2iam --name my-release The command deploys kube2iam on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

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 kube2iam chart and their default values.

ParameterDescriptionDefault
affinityaffinity configuration for pod assignment{}
extraArgsAdditional container arguments{}
extraEnvAdditional container environment variables{}
host.ipIP address of host$(HOST_IP)
host.iptablesAdd iptables rulefalse
host.interfaceHost interface for proxying AWS metadatadocker0
host.portPort to listen on8181
image.repositoryImagejtblin/kube2iam
image.tagImage tag0.10.4
image.pullPolicyImage pull policyIfNotPresent
nodeSelectornode labels for pod assignment{}
podAnnotationsannotations to be added to pods{}
priorityClassNamepriorityClassName to be added to pods{}
prometheus.metricsPortPort to expose prometheus metrics on (if unspecified, host.port is used)host.port
prometheus.serviceMonitor.enabledIf true, create a Prometheus Operator ServiceMonitor resourcefalse
prometheus.serviceMonitor.intervalInterval at which the metrics endpoint is scraped10s
prometheus.serviceMonitor.namespaceAn alternative namespace in which to install the ServiceMonitor""
rbac.createIf true, create & use RBAC resourcesfalse
rbac.serviceAccountNameexisting ServiceAccount to use (ignored if rbac.create=true)default
resourcespod resource requests & limits{}
updateStrategyStrategy for DaemonSet updates (requires Kubernetes 1.6+)OnDelete
verboseEnable verbose outputfalse
tolerationsList of node taints to tolerate (requires Kubernetes 1.6+)[]

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 <helm-repo>/kube2iam --name my-release \
  --set=extraArgs.base-role-arn=arn:aws:iam::0123456789:role/,extraArgs.default-role=kube2iam-default,host.iptables=true,host.interface=cbr0

$ helm install stable/kube2iam --name my-release \

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

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

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

Tip: You can use the default values.yaml

Deploy kube2iam with OpenTenant

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