akeyless-ssh-proxy

by akeyless.io

Helm chartv1.2.35App 0.11.42Verified publisher

A Helm chart for Kubernetes that deploys akeyless-ssh-proxy

About this chart

Akeyless SSH Bastion

Akeyless SSH Bastion Traffic SSH connections with signed certificate authentication, together with session recording.

Introduction

This chart bootstraps an Akeyless SSH Bastion deployment on a Kubernetes cluster using the Helm package manager.

Preparation

Storage

Currently, the helm chart requires a storage class with ReadWriteMany access modes.
Since a storage class is more environment specific, you will need to provide one before proceeding. In addition, please provide 2 PersistentVolumes with persistentVolumeReclaimPolicy: retain and reference those PVs in the values.yaml file

e.g when running on AWS with EKS: https://docs.aws.amazon.com/eks/latest/userguide/efs-csi.html

Network

When using SSH sessions behind load balancer such as ELB, the session can be closed due to idle connection timeout, so its advised to increase it to a reasonably high value, or even unlimited.

e.g when running on AWS with ELB: https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/config-idle-timeout.html?icmpid=docs_elb_console

Prerequisites

Horizonal Auto-Scaling

Horizontal auto-scaling is based on the HorizonalPodAutoscaler object.
For it to work properly, Kubernetes metrics server must be installed in the cluster - https://github.com/kubernetes-sigs/metrics-server

Get Repo Info

$ helm repo add akeyless https://akeylesslabs.github.io/helm-charts
$ helm repo update

See helm repo for command documentation.

Installing the Chart

The values.yaml file holds default values, replace the values with the ones from your environment where needed.

To install the chart run:

helm install RELEASE_NAME akeyless/akeyless-ssh-proxy

Parameters

The following table lists the configurable parameters of the SSH Bastion chart and their default values.

Statefulset parameters

ParameterDescriptionDefault
image.repositorySSH Bastion image nameakeyless/ssh-proxy
image.tagSSH Bastion image taglatest
image.pullPolicySSH Bastion image pull policyAlways
image.dockerRepositoryCredsAkeyless docker repository credentialsnil
updateStrategyUpdating statefulset strategyRollingUpdate
containerNameSSH Bastion container namessh-proxy
replicaCountNumber of SSH-Bastion nodes1
livenessProbeLiveness probe configuration for SSH BastionCheck values.yaml file
readinessProbeReadiness probe configuration for SSH BastionCheck values.yaml file
resources.limitsThe resources limits for SSH Bastion containers (If HPA is enabled these must be set){}
resources.requestsThe requested resources for SSH-Bastion containers (If HPA is enabled these must be set){}

Exposure parameters

ParameterDescriptionDefault
service.typeKubernetes Service typeLoadBalancer
service.portssh port22
service.curlProxyPortAkeyless curl proxy port9900

Persistence parameters

ParameterDescriptionDefault
persistence.volumesrequires data persistence to be shared within all pods in the cluster, only ReadWriteMany is supportedCheck values.yaml file

HPA parameters

ParameterDescriptionDefault
HPA.enabledEnable SSH Bastion Horizontal Pod Autoscalerfalse
HPA.minReplicasMinimum desired number of replicas1
HPA.maxReplicasMinimum desired number of replicas14
HPA.cpuAvgUtilCPU average utilization50
HPA.memAvgUtilMemory average utilization50

SSH-Bastion configuration parameters

ParameterDescriptionDefault
config.CAPublicKeyCA’s public key (ca.pub) - requirednil
config.sessionTermination.enabledEnable session termination, ex. OKTA, Keycloakfalse
config.sessionTermination.apiURLAPI URLnil
config.sessionTermination.apiTokenAPI Tokennil
config.logForwarding.enabledEnable log forwardingfalse
config.logForwarding.settingsLog forwarding configurationnil
config.privilegedAccess.accessIDAccess ID with "read" capability for privileged access.nil
config.privilegedAccess.accessKeyAccess Key of the provided access ID. (not required on cloud identity)nil
config.apiGatewayURLAPI Gateway URL to use to fetch the secrets.https://rest.akeyless.io

Deploy akeyless-ssh-proxy with OpenTenant

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