You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`kubectl autoscale deployment kubia --cpu-percent=30 --min=1 --max=5` creates the HorizontalPodAutoscaler(HPA) object for you and sets the Deployment called kubia as the scaling target
120
115
`kubectl get hpa` HorizontalPodAutoscaler
121
-
a container’s CPU utilization is the container’s actual CPU usage divided by its requested CPU
116
+
a container's CPU utilization is the container's actual CPU usage divided by its requested CPU
CPU: when a CPU limit is set for a container, the process isn’t given more CPU time than the configured limit.
674
-
Memory: When a process tries to allocate memory over its limit, the process is killed (it’s said the container is OOMKilled, where OOM stands for Out Of Memory)
787
+
CPU: when a CPU limit is set for a container, the process isn't given more CPU time than the configured limit.
788
+
Memory: When a process tries to allocate memory over its limit, the process is killed (it's said the container is OOMKilled, where OOM stands for Out Of Memory)
675
789
676
790
#### pod QoS classes
677
791
678
792
- BestEffort (the lowest priority)
679
-
1. It’s assigned to pods that don’t have any requests or limits set at all (in any of their containers)
793
+
1. It's assigned to pods that don't have any requests or limits set at all (in any of their containers)
680
794
2. They will be the first ones killed when memory needs to be freed for other pods.
681
795
- Burstable
682
796
In between BestEffort and Guaranteed is the Burstable QoS class. All other pods fall into this class
@@ -831,9 +945,9 @@ kubectl get --all-namespaces pods --field-selector=spec.nodeName=<node name>
831
945
832
946
Three possible effects exist:
833
947
834
-
- `NoSchedule`, which means pods won’t be scheduled to the node if they don’t tol- erate the taint.
835
-
- `PreferNoSchedule`is a soft version of NoSchedule, meaning the scheduler will try to avoid scheduling the pod to the node, but will schedule it to the node if it can’t schedule it somewhere else.
836
-
- `NoExecute`, unlike NoSchedule and PreferNoSchedule that only affect schedul- ing, also affects pods already running on the node. If you add a NoExecute taint to a node, pods that are already running on that node and don’t tolerate the NoExecute taint will be evicted from the node.
948
+
- `NoSchedule`, which means pods won't be scheduled to the node if they don't tol- erate the taint.
949
+
- `PreferNoSchedule`is a soft version of NoSchedule, meaning the scheduler will try to avoid scheduling the pod to the node, but will schedule it to the node if it can't schedule it somewhere else.
950
+
- `NoExecute`, unlike NoSchedule and PreferNoSchedule that only affect schedul- ing, also affects pods already running on the node. If you add a NoExecute taint to a node, pods that are already running on that node and don't tolerate the NoExecute taint will be evicted from the node.
837
951
838
952
```sh
839
953
# Remove the taint
@@ -907,6 +1021,8 @@ kg VolumeAttachment | sort -k 3
907
1021
Kubernetes 对集群网络有以下要求:
908
1022
所有的 Pod 之间可以在不使用 NAT 网络地址转换的情况下相互通信;所有的 Node 之间可以在不使用 NAT 网络地址转换的情况下相互通信;每个 Pod 看到的自己的 IP 和其他 Pod 看到的一致。
909
1023
1024
+
[kubeshark: The API traffic analyzer for Kubernetes providing real-time K8s protocol-level visibility, capturing and monitoring all traffic and payloads going in, out and across containers, pods, nodes and clusters. Inspired by Wireshark, purposely built for Kubernetes](https://github.com/kubeshark/kubeshark)
1. Check Orders `kubectl describe order example-com-2745722290-439160286`. If the Order is not completing successfully, you can debug the challenges for the Order
0 commit comments