Skip to content

Instantly share code, notes, and snippets.

View palmalcheg's full-sized avatar

Ivan Evdokimov palmalcheg

View GitHub Profile
from kubernetes import client, config
from kubernetes.client.api import *
def list_exposed_ports(api: CoreV1Api):
values = {}
ret = api.list_service_for_all_namespaces(watch=False)
for svc in ret.items :
@palmalcheg
palmalcheg / install-graphite-ubuntu-10.04.sh
Created November 7, 2012 16:06 — forked from MikeGrace/install-graphite-ubuntu-10.04.sh
Install Graphite 0.9.10 on Ubuntu 10.04 , pycairo setup included, copy cairo
sudo apt-get update
sudo apt-get upgrade
wget http://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.10.tar.gz
wget http://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz
wget http://launchpad.net/graphite/0.9/0.9.10/+download/whisper-0.9.10.tar.gz
wget http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
tar xjf py2cairo-1.10.0.tar.bz2
tar -zxvf graphite-web-0.9.10.tar.gz