Used to retrieve the allocatable resources of a Kubernetes cluster.
Assumes that this is being executed within the K8s cluster.
Tested using python 2.7 and requires the installation of two pip libraries:
pip install pint
pip install kubernetes
{ | |
"public_identifier": "virtualizationhosting", | |
"profile_pic_url": "https://static.licdn.com/aero-v1/sc/h/244xhbkr7g40x6bsu4gi6q4ry", | |
"background_cover_image_url": "https://static.licdn.com/aero-v1/sc/h/5q92mjc5c51bjlwaj3rs9aa82", | |
"first_name": "Ken", | |
"last_name": "Trenkelbach", | |
"full_name": "Ken Trenkelbach", | |
"follower_count": 393, | |
"occupation": null, | |
"headline": null, |
Used to retrieve the allocatable resources of a Kubernetes cluster.
Assumes that this is being executed within the K8s cluster.
Tested using python 2.7 and requires the installation of two pip libraries:
pip install pint
pip install kubernetes
INFO global: Vagrant version: 2.2.2 | |
INFO global: Ruby version: 2.4.4 | |
INFO global: RubyGems version: 2.6.14.1 | |
INFO global: VAGRANT_LOG="debug" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/bin/vagrant" | |
WARN global: resolv replacement has not been enabled! | |
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/plugins/synced_folders/nfs/plugin.rb |
INFO global: Vagrant version: 2.2.2 | |
INFO global: Ruby version: 2.4.4 | |
INFO global: RubyGems version: 2.6.14.1 | |
INFO global: VAGRANT_LOG="info" | |
INFO global: VAGRANT_INSTALLER_VERSION="2" | |
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/bin/vagrant" | |
INFO global: VAGRANT_INSTALLER_ENV="1" | |
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
WARN global: resolv replacement has not been enabled! | |
INFO manager: Registered plugin: NFS synced folders |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.define "box1" do |box1| | |
box1.vm.box = "sscc/xenial64" | |
box1.vm.hostname = "box1" | |
box1.vm.network "private_network", ip: "12.12.12.19" | |
box1.vm.network "private_network", ip: "11.11.11.20" |
#!/bin/bash | |
sudo apt-get install -y libstdc++6:i386 libxpm4:i386 libxinerama1:i386 libxcursor1:i386 \ | |
libxkbfile1:i386 libxt6:i386 libxm4:i386 libxrandr2:i386 |