Last active
April 20, 2021 01:09
-
-
Save DuaneNielsen/db3037468610fef5308f9710c2ea0241 to your computer and use it in GitHub Desktop.
setup 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
snap install --channel 1.13/stable --classic microk8s | |
microk8s.enable registry | |
microk8s.enable dns | |
microk8s.enable storage # not sure if i need this | |
#install | |
snap install helm --classic | |
/snap/bin/helm init | |
helm install stable/redis -n ppo-redis | |
snap alias microk8s.kubectl kubectl | |
#configure static cpu allocation | |
snap run --shell microk8s.start | |
sudo echo "--cpu-manager-policy=static" >> $SNAP_DATA/args/kubelet | |
snap restart 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
--system-reserved=memory=1.5Gi | |
--kube-reserved=cpu=2,memory=350Mi | |
--system-reserved=cpu=2,memory=500Mi | |
--cpu-manager-policy=static |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment