Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
k8s sftp pod
apiVersion: v1
kind: Pod
metadata:
name: sftp
labels:
app: sftp-server
spec:
containers:
- name: sftp-server-demo
image: atmoz/sftp
args: ["foo:pass:1001"]
ports:
- containerPort: 22
@gdyrrahitis

This comment has been minimized.

Copy link
Owner Author

@gdyrrahitis gdyrrahitis commented Jun 20, 2020

kubectl apply -f ubuntu-pod.yml
kubectl apply -f sftp-pod.yml
kubectl apply -f sftp-service.yml

Ubuntu pod - Terminal

$ apt update

$ apt-get install openssh-server

kubectl get services # locate sftp-service cluster IP

In terminal

sftp foo@<cluster-ip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment