Professional Documents
Culture Documents
Section2
Section2
Section2
Kubernetes administration
Kubernetes administration
Docker infrastructure in advance
Core concepts
Scheduling
Cluster Monitoring
Storage
Networking
Troubleshooting
Docker infrastructure in Kubernetes administration
advance:
Docker network
4 Network types:
• Bridge (default)
• Host
• Overlay
• ipvlan
Docker infrastructure in Kubernetes administration
advance:
Docker network
bridge:
Docker infrastructure in Kubernetes administration
advance:
Docker network
host:
Docker infrastructure in Kubernetes administration
advance:
Docker network
Overlay:
Docker infrastructure in Kubernetes administration
advance:
Docker network
ipvlan:
Docker infrastructure in Kubernetes administration
advance:
Docker storage
Docker infrastructure in Kubernetes administration
advance:
Docker storage
Docker infrastructure in Kubernetes administration
advance:
Docker storage
Docker infrastructure in Kubernetes administration
advance:
Docker storage
Core concepts: Kubernetes administration
Core concepts: Kubernetes administration
Resources:
Foundations: Workloads: Networking:
• Namespace • Deployment/replicaset • Service
• Pod • StatefulSet • DNS record
• DaemonSet • Ingress/Ingress Controllers
• Job/CronJob • Network policy
Storage: Others
• Volume • ConfigMaps
• Storage class • Secret
• Persistent volume • Resource quotas
• Persistent volume claim • Custom resources definition
Scheduling: Kubernetes administration
Scheduling refers to making sure that Pods are matched to Nodes so that Kubelet can run
them
Kube-scheduler is the default scheduler for Kubernetes and runs as part of the control-
plane. Kube-scheduler is designed so that, if you want and need to, you can write your
own scheduling component and use that instead
Scheduling profile
• Can customize the behavior of the kube-scheduler by writing a
configuration file and passing its path as a command line
argument.
• A scheduling Profile allows you to configure the different stages of
scheduling in the kube-scheduler.
Scheduling: Kubernetes administration
equality-based set-based
Scheduling: Kubernetes administration
NodeName:
NodeSelector:
Scheduling with selecting node(s) by using label(s)
Scheduling: Kubernetes administration
Use cases:
• Dedicated Nodes
• Nodes with Special Hardware
• Taint based Evictions
Scheduling: Kubernetes administration
Resources management:
• CPU ( Request and limits - Burstable)
• RAM ( Request and limits - Burstable)
Scheduling: Kubernetes administration
Resources management:
Static PODs:
• Managed directly by the kubelet daemon on a specific
node, without the API server observing them. The
kubelet watches each static Pod (and restarts it if it
fails).
• Static Pods are always bound to one kubelet on a
specific node
Kubernetes administration
Cluster maintenance:
Security basics
• Password based authentication disabled and use SSH Key based authentication instead
RBAC in Kubernetes
Cluster Security: Kubernetes administration
RBAC in Kubernetes
Cluster Security: Kubernetes administration
RBAC in Kubernetes
Role and ClusterRole
RBAC in Kubernetes
Role
Cluster Security: Kubernetes administration
RBAC in Kubernetes
Namespaced
Cluster Security: Kubernetes administration
RBAC in Kubernetes
Namespaced
Cluster Security: Kubernetes administration
RBAC in Kubernetes
ClusterRole
Cluster Security: Kubernetes administration
RBAC in Kubernetes
ClusterRoleBinding
Cluster Security: Kubernetes administration
RBAC in Kubernetes
RoleBinding and ClusterRoleBinding
RBAC in Kubernetes
Check access method
Kubernetes administration
Cluster Security:
Image Security
Kubernetes administration
Networking:
• DNS in Kubernetes
• Ingress
Kubernetes administration
Networking:
Cluster Networking
Kubernetes administration
Networking:
Cluster Networking
Kubernetes administration
Networking:
Cluster Networking
Kubernetes administration
Networking:
POD Networking
• Every POD should have an IP Address
• Every POD should be able to communicate with every other POD in the same node.
• Every POD should be able to communicate with every other POD on other nodes without NAT.
Kubernetes administration
Networking:
Service Networking
ClusterIP
Kubernetes administration
Networking:
Service Networking
NodePort
Kubernetes administration
Networking:
Service Networking
LoadBalancer
Kubernetes administration
Networking:
Service Networking
ExternalName
Kubernetes administration
Networking:
Ingress
DNS in Kubernetes
Kubernetes administration
Design and Install:
How-to design a Kubernetes cluster
Objective
• Node Considerations
• Resource Requirements
• Network Considerations
Kubernetes administration
Design and Install:
How-to design a Kubernetes cluster
Objective
• Node Considerations
• Resource Requirements
• Network Considerations
Kubernetes administration
Design and Install:
How-to design a Kubernetes cluster
Ask
Kubernetes administration
Design and Install:
How-to design a Kubernetes cluster
Kubernetes limits
Network troubleshooting
Q&
A