Skip to content

Instantly share code, notes, and snippets.

@rparree
Last active December 12, 2019 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rparree/82421265b760f4e7aba8a758f135faf0 to your computer and use it in GitHub Desktop.
Save rparree/82421265b760f4e7aba8a758f135faf0 to your computer and use it in GitHub Desktop.

Create a new minikube cluster

minikube -p networking start --network-plugin=cni --kubernetes-version v1.15.6 --memory=4096 

It won't start-up completely. Just do a minikube -p networking stop when it has completed.

Update the country-rest service

$ rm -fr ~/course/k8s/docker-images/rest-countries/* && \
  curl https://filebin.net/az0uq0n48u6apf0t/rest-countries.tar.gz?t=vwoqrnw4 |  \
  tar xzvf - -C ~/course/k8s/docker-images/rest-countries/ 2> /dev/null

On your host machine (so not on your cluster node) run the following build commands:

docker build   -t edc4it/rest-countries:2.0 ~/course/k8s/docker-images/rest-countries/.  \
  && docker build -t edc4it/countries-front:0.1.0 ~/course/k8s/docker-images/countries-front

Missing files

  • Run the following command to create some missing directories and files
& mkdir -p ~/course/k8s2/network-policies/work && \
  touch ~/course/k8s2/network-policies/work/country-rules-deny-all.yaml && \
  touch ~/course/k8s2/network-policies/work/country-rules-external.yaml && \
  touch ~/course/k8s2/network-policies/work/country-rules-isolate-ns.yaml
 
  • Download some work files for the monitoring lab
mkdir -p ~/course/k8s/monitoring && curl https://filebin.net/az0uq0n48u6apf0t/monitoring.tar.gz?t=3j7drw9g  | tar xzvf - -C ~/course/k8s/ 2> /dev/null

Install Helm

The uupgrade of the monitoring lab to helm3 turned out to be a bit more dificult, so we will use helm2 after all. Please install:

$ curl https://raw.githubusercontent.com/kubernetes/Helm/master/scripts/get > get_Helm.sh
chmod 700 get_Helm.sh
./get_Helm.sh

We will download the images during the lab, the network seemed better last week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment