simple-ssh-bastion
by evilgn0me
Helm chartv0.1.11App 1.16.0
Simple ssh-bastion chart, to create bastion host in kubernetes based on pure alpine docker image.
About this chart
Simple SSH Bastion for Kubernetes
This is simple helm chart that will allow you to install ssh bastion inside your cluster. Bastion is based on clean alpine.
To configure your bastion use values e.g:
bastion:
#This will be single user to which you will be adding ssh keys.
sshUser: bastion
#here is your ssh keys.
sshKeys:
- "ssh-ed25519 ADD_YOUR_KEY_HERE yourname@yourhost"
#if you need to change any configuration to your ssh.
sshd_config:
TCPKeepAlive: "yes"
ClientAliveInterval: 600
ClientAliveCountMax: 3
PermitRootLogin: "no"
PasswordAuthentication: "no"
service:
type: LoadBalancer
port: 22
annotations:
# with usage of external dns you can assign
external-dns.alpha.kubernetes.io/hostname: bastion.example.com.
# if you are using nlb loadbalancer you will need to increase connection idle timeout.
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "4000"
#use this if you need whitelisting. This value depends on your loadBalancer type. Generally it works good with nlb in AWS.
loadBalancerSourceRanges:
- "1.1.1.1/32"
Deploy simple-ssh-bastion with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has simple-ssh-bastion 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsimple-ssh-bastion is pinned at v0.1.11 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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