Основы Kubernets

Replica Sets и Replication Controller считаются устаревшими и рекомендуется вместо них использовать Deployments.


Kubernetes Pods, Replicasets & Deployments

Kubernetes Namespaces & Contexts

Node Selector in Kubernetes

Jobs & Cronjobs in Kubernetes

Secrets in Kubernetes

ConfigMaps in Kubernetes

DaemonSets

Init Containers in Kubernetes Cluster

Resource Quotas & Limits in Kubernetes

Services: ClusterIP, NodePort, LoadBalancer, Ingress


-- Get the token
$ TOKEN=$(kubectl describe secret $(kubectl get secrets | grep default | cut -f1 -d ' ') | grep -E '^token' | cut -f2 -d':' | tr -d '\t' | tr -d " ")

$ echo $TOKEN

-- get the API server endpoint
$ APISERVER=$(kubectl config view | grep https | cut -f 2- -d ":" | tr -d " ")


$ echo $APISERVER

$ curl $APISERVER --header "Authorization: Bearer $TOKEN" --insecure