Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ: ssh-kops-cluster #383

Merged
merged 5 commits into from
Jan 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions content/faq/how-to-ssh-kops-cluster.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: "How do we SSH into a kops Kubernetes cluster? "
description: "There's the way it works out of the box and then there's the fancy way, which is recommended."
tags:
- kops
- SSH
- Kubernetes
- Gravitational Teleport
---

## Question

How do we SSH into nodes and pods in a `kops` Kubernetes cluster?

## Answer

There's the way it works out of the box and then there's the fancy way, which is recommended.

Out of the box, there's a set of master keys that are required when provisioning the `kops` cluster. These can be used as a last resort to access the nodes. The downside is that these keys must be shared, and rotating them is painful and time consuming, requiring a rolling update of all nodes in the cluster.
osterman marked this conversation as resolved.
Show resolved Hide resolved

The fancier way (aka the “recommended way”) is with Gravitational Teleport. It provides an enterprise-grade SSH PKI with session logs, pretty YouTube-style session replays, bastions, and event hooks. This is what our customers who are serious about security and compliance use.
osterman marked this conversation as resolved.
Show resolved Hide resolved

In our experience, you basically never need to access the raw Kubernetes nodes. This wasn’t the case back in the day (when we ran our own homespun solutions on CoreOS). However, `kops` is very turnkey, and the need for SSH is nearly eliminated.