add deployment.yaml

parent cf076d33
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: {}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment