$ lxc profile create microk8s
$ wget https://raw.githubusercontent.com/ubuntu/microk8s/master/tests/lxc/microk8s.profile -O microk8s.profile
$ cat microk8s.profile | lxc profile edit microk8s
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
kubectl get nodes -o json | | |
jq '.items[].status.images[] | [.sizeBytes, .names[0]] | @csv' -r | | |
sed -e 's/"//g' | | |
sed 's/,/ /g' | | |
sort -k1n |
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
... | |
[plugins.cri.registry] | |
[plugins.cri.registry.mirrors] | |
[plugins.cri.registry.mirrors."docker.io"] | |
endpoint = ["https://registry-1.docker.io"] | |
[plugins.cri.registry.mirrors."local.insecure-registry.io"] | |
endpoint = ["http://localhost:32000"] | |
[plugins.cri.registry.mirrors."k8sdev:32000"] | |
endpoint = ["http://k8sdev:32000"] | |
... |
from: https://stackoverflow.com/questions/57678068/installing-gnuradio-3-8-on-ubuntu-18-04
sudo apt-get install python-pip python-apt
sudo -H pip install PyBOMBS
mkdir ~/sdr
cd ~/sdr
- Instead of setting iptables FORWARD default policy to ACCEPT, leave as DROP and follow this gist
- Configure explicit permit rules in /etc/iptables.conf (from above gist), e.g.
# Allow internal private k8s IPs to talk
-A FILTERS -m state --state NEW -s 10.0.0.0/8 -j ACCEPT
# Permit direct https/6443 access to k8s proxy from local subnet
-A FILTERS -m state --state NEW -m tcp -p tcp --dport 6443 -s your-src-ip-subnet/24 -j ACCEPT
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
# see https://unrouted.io/2017/08/15/docker-firewall/ | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD DROP [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:FILTERS - [0:0] | |
:DOCKER-USER - [0:0] | |
-F INPUT | |
-F DOCKER-USER |
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
#!/bin/bash | |
# List your kubernetes environments here, they will each equate to a | |
# rc file named k8s_envname.rc in the same folder as this script: | |
ENVS=" | |
openstack | |
k8sdev6443 | |
" | |
# Prompt user to select environment: |
NewerOlder