Skip to content

A Virtual appliance based on Photon OS v4 containing Docker, Kind, Kubectl, Kustomize, Helm and Skaffold.

License

Notifications You must be signed in to change notification settings

rafaelurrutiasilva/kubeAcademy-vappliance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KubeAcademy Virtual Appliance

kubeAcademy-vappliance

A Virtual appliance based on Photon OS v4 containing Docker, Kind, Kubectl, Kustomize, Helm and Skaffold.
You can use this OVA to deploy your on VM for then do the cources from the kube.academy.

Instroduction

This Photon OS node is build to be used with the Kubeacademy course Building Applications for Kubernetes.
The node has all the software you need to install discribed in the Lessons nr 2 Setting Up Your Workstation.

Enjoy!
Rafael


Install all from the scratch

I getting some reports that the OVA not always work. Also that people what to use another Linux OS than Photon OS. Don't worry!
You can use my script installing_all_from_scratch.sh to prepare your own Linux node to be used for the course.
The skript will install for you: helm, kind, kubectl, kubeseal, kustomize and skaffold.

If you go that way then feel free to skip the rest of the documentation here!


Account and login

The root account is enabled to login via ssh and the password is <VMwareVM1!> .

Tips

Deploy from OVA file

You can find help and instruction to deploy a Virtual Machine from an OVA file here.

Kustomization

Since 1.14, Kubectl also supports the management of Kubernetes objects using a kustomization file.

kubectl kustomize <kustomization_directory>

To apply those Resources, run kubectl apply with --kustomize or -k flag:

kubectl apply -k <kustomization_directory>

Delete

kubectl delete -k overlays/production

Crashcart

General Debug, Inspection To run crashcart pod in default namespace of K8s cluster:

$ kubectl create -f https://github.com/lander2k2/crashcart/raw/master/crashcart-po.yaml
$ kubectl exec -it crashcart bash

Kubeseal

You may need the Kubeseal client and if you not found it by using the tdnf tool, then you can use this installation procedure.

$ curl -k -L  https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.20.2/kubeseal-0.20.2-linux-amd64.tar.gz -o kubeseal-0.20.2-linux-amd64.tar.gz
$ tar -xvzf kubeseal-0.20.2-linux-amd64.tar.gz kubeseal
$ install -m 755 kubeseal /usr/local/bin/kubeseal