Difference between revisions of "Kubernetes"
Line 4: | Line 4: | ||
# Getting Started with Calico as network control plane | # Getting Started with Calico as network control plane | ||
+ | ## Install | ||
https://docs.projectcalico.org/v3.7/getting-started/kubernetes/ | https://docs.projectcalico.org/v3.7/getting-started/kubernetes/ | ||
Note, if you want vxlan and easier in some ways but less scale/security try using flannel | Note, if you want vxlan and easier in some ways but less scale/security try using flannel | ||
+ | |||
+ | ## Test it | ||
+ | |||
+ | https://docs.projectcalico.org/v3.7/security/simple-policy | ||
+ | |||
+ | ## Test simple container | ||
+ | |||
+ | Make sure dns and outbound connections are working | ||
+ | |||
+ | https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/ | ||
+ | |||
+ | change example to busybox to ubuntu:bionic, debian:buster or whatever and rock an os. | ||
Revision as of 18:24, 21 July 2019
You have two basic general flavors. Kubernetes and OKD (used to be OpenShift Origin). OKD uses HAProxy for routes while Kubernetes uses ingress and supports a bunch of different reverse proxy mechanisms including nginx. I think Kubernetes is developed enough over the last couple of years that it is a good option, maybe even better than openshift. Ubuntu Kubernetes is probably the best fit for now over kubeadm and other options.
Getting Started with Calico as network control plane
Install
https://docs.projectcalico.org/v3.7/getting-started/kubernetes/
Note, if you want vxlan and easier in some ways but less scale/security try using flannel
Test it
https://docs.projectcalico.org/v3.7/security/simple-policy
Test simple container
Make sure dns and outbound connections are working
https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/
change example to busybox to ubuntu:bionic, debian:buster or whatever and rock an os.
Commands
kubeadm token create --print-join-command kubectl port-forward service/my-service 48080:8080
Getting Started
https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/
https://medium.com/@its_somrah/kubernetes-101-the-anatomy-b69831cf75be
https://kubernetes.io/docs/tutorials/stateless-application/expose-external-ip-address/
https://stackoverflow.com/questions/44110876/kubernetes-service-external-ip-pending
https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/
https://kubernetes.io/docs/reference/kubectl/cheatsheet/
Install On Ubuntu
Using kubeadm
https://linuxconfig.org/how-to-install-kubernetes-on-ubuntu-18-04-bionic-beaver-linux
MiniKube
https://dasunhegoda.com/kubernetes-running-locally-via-minikube/1204/
Microk8s
- https://tutorials.ubuntu.com/tutorial/install-a-local-kubernetes-with-microk8s#0
- https://microk8s.io/#quick-start
- https://microk8s.io/docs/
Kubernetes Charmed
https://kubernetes.io/docs/getting-started-guides/ubuntu/
https://docs.conjure-up.io/stable/en/user-manual#users-of-lxd
https://www.ubuntu.com/kubernetes
https://codefresh.io/kubernetes-tutorial/local-kubernetes-linux-minikube-vs-microk8s/
https://www.ubuntu.com/kubernetes/docs/quickstart