Skip to content

Instantly share code, notes, and snippets.

@DuaneNielsen
Last active April 20, 2021 01:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuaneNielsen/db3037468610fef5308f9710c2ea0241 to your computer and use it in GitHub Desktop.
Save DuaneNielsen/db3037468610fef5308f9710c2ea0241 to your computer and use it in GitHub Desktop.
setup microk8s
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
--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