Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
devpi-k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 97d374a3
authored
Jun 11, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
0 parents
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
0 deletions
deployment.yaml
service.yaml
deployment.yaml
0 → 100644
View file @
97d374a
apiVersion
:
extensions/v1beta1
kind
:
Deployment
metadata
:
name
:
devpi
namespace
:
autodl
spec
:
replicas
:
1
template
:
metadata
:
labels
:
app
:
devpi
spec
:
serviceAccountName
:
autodl-serviceaccount
nodeSelector
:
gpu
:
"
true"
containers
:
-
name
:
devpi
image
:
hub.kce.ksyun.com/kpl_k8s/k8s-devpi:v2
env
:
-
name
:
DEVPI_PASSWORD
value
:
"
seetatech"
imagePullPolicy
:
Always
volumeMounts
:
-
mountPath
:
/data
name
:
data-volume
-
mountPath
:
/etc/hosts
name
:
hosts-volume
ports
:
-
containerPort
:
3141
name
:
port-3141
resources
:
requests
:
cpu
:
"
100m"
memory
:
"
512Mi"
limits
:
cpu
:
"
2000m"
memory
:
"
2024Mi"
volumes
:
-
name
:
data-volume
persistentVolumeClaim
:
claimName
:
adl-pvc
readOnly
:
false
-
name
:
hosts-volume
hostPath
:
path
:
/etc/hosts
service.yaml
0 → 100644
View file @
97d374a
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
devpi
namespace
:
autodl
labels
:
app
:
devpi
spec
:
type
:
NodePort
ports
:
-
name
:
http
port
:
80
targetPort
:
3141
nodePort
:
33141
selector
:
app
:
devpi
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment