-
[Optional] if you use a proxy to access internet, you have to put it in different files
- for
containerd
make entryinHTTPS_PROXY=http://<yourProxyIP>:<ProxyPort> NO_PROXY=10.1.0.0/16,10.152.183.0/24
/var/snap/microk8s/current/args/containerd-env
. After this step restart microk8s withsudo microk8s stop; sudo microk8s start
- for
curl
(necessary for microk8s modules) make entryHTTPS_PROXY=http://<yourProxyIP>:<ProxyPort>
in/etc/environment
- for
snapd
make entryEnvironment="HTTPS_PROXY=http://<yourProxyIP>:<ProxyPort>"
in/etc/systemd/system/snapd.service.d/snap_proxy.conf
- for
-
Add your user to
microk8s
group to avoidsudo
sudo usermod -a -G microk8s <user> sudo chown -f -R <user> ~/.kube
-
Add
.bash_aliases
to your home directory(copy existing or write your own)
# my aliases alias ls='ls -la --color=auto' alias mk='microk8s' alias kubectl='microk8s.kubectl'
-
make
kompose
executable and copy to/usr/bin/
chmod +x kompose sudo cp kompose /usr/bin/
-
logout and login again
-
enable microK8s modules
microk8s enable dns dashboard prometheus storage
-
generate certificates and files
/bin/bash generate-cert.sh
This generates the certs and YAML files for
coffeshop
andVPX-ingress
-
add Route to VPX add Route for Network
10.1.0.0/16
with gateway<Ubuntu20.04-IPaddress>
to Tier-1 adcNormally CIC would push the routes to the POD network to VPX, but for some reasons this do not work in a MicroK8s environment.
tbd