Verified Commit 09c590f8 authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Add playground,

parent 0cb390e9
Pipeline #3293 passed with stage
in 1 minute and 22 seconds
apiVersion: batch/v1
kind: Job
metadata:
name: pi
spec:
template:
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
backoffLimit: 4
apiVersion: batch/v1
kind: Job
metadata:
name: tf-naive-v2
spec:
template:
spec:
containers:
- name: tf-naive
image: tensorflow/tensorflow
command: [
"python",
"-c",
"import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000]))); print('Hello, world!')"
]
restartPolicy: Never
backoffLimit: 4
---
apiVersion: v1
kind: Namespace
metadata:
name: tensor-flow
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: tf-pv-claim-multi
namespace: tensor-flow
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: notebook
namespace: tensor-flow
labels:
application: notebook
spec:
replicas: 1
selector:
matchLabels:
application: notebook
template:
metadata:
labels:
application: notebook
spec:
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: application
operator: In
values:
- notebook
topologyKey: "kubernetes.io/hostname"
containers:
- name: notebook
image: jupyter/tensorflow-notebook
imagePullPolicy: Always
volumeMounts:
- name: tf-persistent-storage
mountPath: /home/jovyan/work
env:
- name: POSTGRES_DB
value: "statussite"
volumes:
- name: tf-persistent-storage
persistentVolumeClaim:
claimName: tf-pv-claim-multi
---
apiVersion: v1
kind: Service
metadata:
name: notebook
namespace: tensor-flow
labels:
application: notebook
spec:
selector:
application: notebook
ports:
- port: 80
targetPort: 8888
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: tensorflow-com
namespace: tensor-flow
annotations:
kubernetes.io/ingress.class: "public"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-hash: "md5"
spec:
tls:
- secretName: websites/lets-encrypt
hosts:
- tensorflow.dbogatov.org
rules:
- host: "tensorflow.dbogatov.org"
http:
paths:
- path: /
backend:
serviceName: notebook
servicePort: 80
---
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