k8s-ssh

by shlomi.ben.david

Helm chartv1.0.6App 0.0.3MITVerified publisher

A Helm chart for k8s-ssh component

About this chart

K8S-SSH

K8S-SSH used to allow ssh connection to a Kubernetes cluster nodes by injecting the user's ssh public keys.

This chart bootstraps a k8s-ssh daemonset on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Install helm
  • Add the helm repo
helm repo add shlomibendavid https://shlomibendavid.github.io/helm-charts

Configuring

  • Create an override-values.yaml file and add all your user's and their ssh public keys
users:
  <user1>: <user1_public_key>

NOTE: you should replace the <user1> and <user1_public_key> with your user and your public key.

# Helm 3
helm show values .

Template Generation

# Helm 3
helm template k8s-ssh --values override-values.yaml .

Installation

To install the helm chart

helm install k8s-ssh shlomibendavid/k8s-ssh --version <version> --values override-values.yaml

Deploy k8s-ssh with OpenTenant

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