Skip to content

Instantly share code, notes, and snippets.

@llouw
Last active August 23, 2020 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llouw/92530ca28552fe45c6f75948e030b03e to your computer and use it in GitHub Desktop.
Save llouw/92530ca28552fe45c6f75948e030b03e to your computer and use it in GitHub Desktop.
Application Descriptor for custom TensorBoard app in SAP DI
{
"name": "TensorBoard",
"type": "kubernetes",
"apiVersion": "v2",
"version": "0.0.2",
"icon": "/vsystem/icons/TensorBoard.png",
"mounts": { "vhome": true },
"body": {
"kubernetes": {
"apiVersion": "v2",
"service": {
"spec": {
"ports": [
{
"port": 6006
}
]
}
},
"deployment": {
"spec": {
"template": {
"spec": {
"containers": [
{
"name": "tensorboard-app",
"image": "tensorflow/tensorflow:2.3.0",
"command": [
"/usr/local/bin/tensorboard"
],
"args": [
"--logdir",
"/vhome/tf",
"--host",
"0.0.0.0"
],
"resources": {
"requests": {
"cpu": "0.1",
"memory": "1Gi"
},
"limits": {
"cpu": "0.5",
"memory": "5Gi"
}
},
"securityContext": {
"runAsUser": 1000
},
"ports": [
{
"containerPort": 6006
}
]
}
]
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment