Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SSH Jump Host
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charts
SSH Jump Host
Commits
1c34f170
Commit
1c34f170
authored
1 month ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
add example ssh server
parent
cc6c1345
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
example_deployment.yaml
+41
-0
41 additions, 0 deletions
example_deployment.yaml
example_service.yaml
+14
-0
14 additions, 0 deletions
example_service.yaml
with
55 additions
and
0 deletions
example_deployment.yaml
0 → 100644
+
41
−
0
View file @
1c34f170
# WARNING: This deployment is only for illustration and is NOT SECURE.
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
ssh-server
namespace
:
ssh-server
spec
:
selector
:
matchLabels
:
app.kubernetes.io/name
:
ssh-server
template
:
metadata
:
labels
:
app.kubernetes.io/name
:
ssh-server
spec
:
securityContext
:
fsGroup
:
0
containers
:
-
name
:
ssh-server
securityContext
:
runAsGroup
:
0
runAsUser
:
0
image
:
"
lscr.io/linuxserver/openssh-server:latest"
imagePullPolicy
:
IfNotPresent
env
:
-
name
:
PUID
value
:
"
1000"
-
name
:
PGID
value
:
"
1000"
-
name
:
PASSWORD_ACCESS
value
:
"
true"
-
name
:
SUDO_ACCESS
value
:
"
false"
-
name
:
USER_NAME
value
:
"
sshuser"
-
name
:
USER_PASSWORD
value
:
"
test"
ports
:
-
name
:
ssh
containerPort
:
2222
protocol
:
TCP
This diff is collapsed.
Click to expand it.
example_service.yaml
0 → 100644
+
14
−
0
View file @
1c34f170
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
ssh-server
namespace
:
ssh-server
spec
:
type
:
ClusterIP
ports
:
-
port
:
22
targetPort
:
ssh
protocol
:
TCP
name
:
ssh
selector
:
app.kubernetes.io/name
:
ssh-server
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment