-
-
Save llouw/92530ca28552fe45c6f75948e030b03e to your computer and use it in GitHub Desktop.
Application Descriptor for custom TensorBoard app in SAP DI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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