User Tools

Site Tools


network_stuff:kubernetes

This is an old revision of the document!


In Kubernetes deployment~=application. Is ‘what we build’.

  • Container engine (podman(rhel, lxc or docker) runs the containers
  • k8s orchestrates them

K8s is a container orchestrator, designed for creating clusters and hosting pods, its networking model meets exactly those needs. The service mesh (or network layer) ensures that communication between different services that live in containers is reliable and secure.
K8s provides container tooling whereas service mesh provides microservices tooling.

  • This is the GLOSSARYfor kubernetes terms:
  • Node: just servers, connected to each other normally with (sdn) network
    • the devops guy deploys a network overlay on the above ^ normally with a single 'kubectl' command (eg: vxlan overlay)
    • k8s install a 'kubelet' in each node to orchestrate it into clusters
    • kproxy: using iptables
  • Cluster
  • Pod: ephemeral 'things' that appear after the 'deployment'
    • what stays static among the ephemeral pod states:
      • service node port (nat)
      • service cluster ip (internal, from pod to pod)
      • service load balancer (external IP address, cluster exposed)
    • deployment > replicaSet > pod
  • Networking via:
    • (CNI) like Nuage or Flannel or weave weave
    • low level abstraction (aci)



kubectl get endpoints    # endpoint is an ip:port. Usually, you'd let a service manage endpoints (one EP per pod the service routes traffic to) 
kubectl get svc     # List all services in the namespace
kubectl get pods -n datanado-dev -l app=datanado-qubole-service
kubectl get ing

MINIKUBE:

Install minikube:

$ minikube start --memory=4096 --vm-driver=kvm2
$ minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

$ kubectl get all
NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP   59m
network_stuff/kubernetes.1604247113.txt.gz · Last modified: (external edit)