Update docs for windows container resources (#7653)
This commit is contained in:
@@ -434,6 +434,58 @@ spec:
|
|||||||
|
|
||||||
Windows Stats use a hybrid model: pod and container level stats come from CRI (via dockershim), while node level stats come from the "winstats" package that exports cadvisor like data structures using windows specific perf counters from the node.
|
Windows Stats use a hybrid model: pod and container level stats come from CRI (via dockershim), while node level stats come from the "winstats" package that exports cadvisor like data structures using windows specific perf counters from the node.
|
||||||
|
|
||||||
|
### Container Resources
|
||||||
|
|
||||||
|
Container resources (CPU and memory) could be set now for windows containers in v1.10.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: iis
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: iis
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: iis
|
||||||
|
image: microsoft/iis
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: 2
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
```
|
||||||
|
|
||||||
|
### Hyper-V Containers
|
||||||
|
|
||||||
|
Hyper-V containers are supported as experimental in v1.10. To create a Hyper-V container, kubelet should be started with feature gates `HyperVContainer=true` and Pod should include annotation `experimental.windows.kubernetes.io/isolation-type=hyperv`.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: iis
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: iis
|
||||||
|
annotations:
|
||||||
|
experimental.windows.kubernetes.io/isolation-type: hyperv
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: iis
|
||||||
|
image: microsoft/iis
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
```
|
||||||
|
|
||||||
## Known Limitations for Windows Server Containers with v1.9
|
## Known Limitations for Windows Server Containers with v1.9
|
||||||
Some of these limitations will be addressed by the community in future releases of Kubernetes
|
Some of these limitations will be addressed by the community in future releases of Kubernetes
|
||||||
- Shared network namespace (compartment) with multiple Windows Server containers (shared kernel) per pod is only supported on Windows Server 1709 or later
|
- Shared network namespace (compartment) with multiple Windows Server containers (shared kernel) per pod is only supported on Windows Server 1709 or later
|
||||||
@@ -441,7 +493,6 @@ Some of these limitations will be addressed by the community in future releases
|
|||||||
- Mount propagation is not supported on Windows
|
- Mount propagation is not supported on Windows
|
||||||
- The StatefulSet functionality for stateful applications is not supported
|
- The StatefulSet functionality for stateful applications is not supported
|
||||||
- Horizontal Pod Autoscaling for Windows Server Container pods has not been verified to work end-to-end
|
- Horizontal Pod Autoscaling for Windows Server Container pods has not been verified to work end-to-end
|
||||||
- Hyper-V isolated containers are not supported.
|
|
||||||
- Windows container OS must match the Host OS. If it does not, the pod will get stuck in a crash loop.
|
- Windows container OS must match the Host OS. If it does not, the pod will get stuck in a crash loop.
|
||||||
- Under the networking models of L3 or Host GW, Kubernetes Services are inaccessible to Windows nodes due to a Windows issue. This is not an issue if using OVN/OVS for networking.
|
- Under the networking models of L3 or Host GW, Kubernetes Services are inaccessible to Windows nodes due to a Windows issue. This is not an issue if using OVN/OVS for networking.
|
||||||
- Windows kubelet.exe may fail to start when running on Windows Server under VMware Fusion [issue 57110](https://github.com/kubernetes/kubernetes/pull/57124)
|
- Windows kubelet.exe may fail to start when running on Windows Server under VMware Fusion [issue 57110](https://github.com/kubernetes/kubernetes/pull/57124)
|
||||||
|
|||||||
Reference in New Issue
Block a user