Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Salzmann-Jaeckel
scipopt-demo
Commits
4c46cfa2
Commit
4c46cfa2
authored
Jul 03, 2020
by
Christian Salzmann-Jaeckel
Browse files
add deployment.yaml
parent
cf076d33
Changes
1
Hide whitespace changes
Inline
Side-by-side
deployment.yaml
0 → 100644
View file @
4c46cfa2
apiVersion
:
v1
kind
:
Namespace
metadata
:
name
:
scipopt-demo
labels
:
description
:
scipopt-demo
---
kind
:
Service
apiVersion
:
v1
metadata
:
labels
:
k8s-app
:
scipopt-demo
name
:
scipopt-demo
namespace
:
scipopt-demo
spec
:
type
:
NodePort
ports
:
-
port
:
9001
targetPort
:
9001
nodePort
:
32001
selector
:
k8s-app
:
scipopt-demo
---
apiVersion
:
v1
kind
:
Secret
metadata
:
labels
:
k8s-app
:
scipopt-demo
name
:
scipopt-jupyter-token
namespace
:
scipopt-demo
type
:
Opaque
data
:
token
:
"
6efc47365e5566c9c6365eabd380dac8"
---
kind
:
Deployment
apiVersion
:
apps/v1
metadata
:
labels
:
k8s-app
:
scipopt-demo
name
:
scipopt-demo-app
namespace
:
scipopt-demo
spec
:
replicas
:
1
revisionHistoryLimit
:
10
selector
:
matchLabels
:
k8s-app
:
scipopt-demo
template
:
metadata
:
labels
:
k8s-app
:
scipopt-demo
spec
:
containers
:
-
name
:
scipopt-demo-nginx
image
:
registry.git.zib.de/salzmann-jaeckel/scipopt-demo/nginx
imagePullPolicy
:
Always
-
name
:
scipopt-demo-jupyter
image
:
registry.git.zib.de/salzmann-jaeckel/scipopt-demo/jupyter
imagePullPolicy
:
Always
ports
:
-
containerPort
:
9001
protocol
:
TCP
env
:
-
name
:
JUPYTER_TOKEN
valueFrom
:
secretKeyRef
:
name
:
scipopt-jupyter-token
key
:
token
volumeMounts
:
# Create on-disk volume to store data
-
mountPath
:
/tmp
name
:
tmp-volume
volumes
:
-
name
:
tmp-volume
emptyDir
:
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment