Skip to content

Instantly share code, notes, and snippets.

View hemantha-kumara's full-sized avatar

Hemantha kumara M S hemantha-kumara

View GitHub Profile
@hemantha-kumara
hemantha-kumara / KfDef.yaml
Created August 23, 2019 12:31
Modified kfdef.yaml showcasing option 2: Registry path, image and tag can be taken from app.yaml in each component scope
apiVersion: kfdef.apps.kubeflow.org/v1alpha1
kind: KfDef
metadata:
name: kubeflow_app
namespace: kubeflow
spec:
repos:
- name: manifests
root: manifests-master
uri: https://github.com/kubeflow/manifests/archive/master.tar.gz
@hemantha-kumara
hemantha-kumara / KfDef.yaml
Last active August 23, 2019 12:28
Modified kfdef.yaml showcasing option 1: Registry path can be taken in global scope & image and tag can be taken from app.yaml per application
apiVersion: kfdef.apps.kubeflow.org/v1alpha1
kind: KfDef
metadata:
name: kubeflow_app
namespace: kubeflow
spec:
repos:
- name: manifests
root: manifests-master
uri: https://github.com/kubeflow/manifests/archive/master.tar.gz
@hemantha-kumara
hemantha-kumara / docker resources cleanup - non-running containers & unused images cleanup.md
Last active June 18, 2019 18:03
docker resources cleanup commands: non-running containers & unused images

Remove non-running docker containers

 $ docker ps -a
 $ docker rm $(docker ps -qa --no-trunc --filter "status=exited")

Remove unused docker images

 $ docker images

$ docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
},
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}