Skip to content

Commit

Permalink
Updated README added example kubernetes deployment yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Mofasser committed Jan 9, 2018
1 parent 68434e7 commit abac15e
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ $ docker run \
ssh-keygen -t rsa -b 4096 -f ~/mykeys/ssh_host_rsa_key

# dsa
ssh-keygen -t dsa -f ~/mykeys/ssh_host_rsa_key
ssh-keygen -t dsa -f ~/mykeys/ssh_host_dsa_key

# ecdsa
ssh-keygen -t ecdsa -f ~/mykeys/ssh_host_rsa_key
ssh-keygen -t ecdsa -f ~/mykeys/ssh_host_ecdsa_key

# ed25519
ssh-keygen -t ed25519 -f ~/mykeys/ssh_host_rsa_key
ssh-keygen -t ed25519 -f ~/mykeys/ssh_host_ed25519_key
```
77 changes: 77 additions & 0 deletions kubeconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: sftp
- apiVersion: v1
kind: Service
metadata:
labels:
app: sftp
name: sftp
spec:
ports:
- name: ssh
port: 2222
protocol: TCP
targetPort: ssh
selector:
deploymentConfig: sftp
sessionAffinity: None
type: NodePort
- apiVersion: v1
kind: DeploymentConfig
metadata:
name: sftp
spec:
replicas: 1
selector:
deployment-config.name: sftp
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
creationTimestamp: null
labels:
deployment-config.name: sftp
deploymentConfig: sftp
spec:
containers:
- env:
- name: SSH_GENERATE_HOSTKEYS
value: "false"
- name: SSH_USERNAME
value: sftpuser
image: amimof/sftp
imagePullPolicy: Always
name: sftp
ports:
- containerPort: 22
name: ssh
protocol: TCP
readinessProbe:
tcpSocket:
port: 22
initialDelaySeconds: 5
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: sftp
serviceAccountName: sftp
terminationGracePeriodSeconds: 30
test: false
triggers: []

0 comments on commit abac15e

Please sign in to comment.