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
Copy file name to clipboardExpand all lines: articles/aks/upgrade-windows-2019-2022.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@ ms.author: viniap
9
9
10
10
# Upgrade Kubernetes workloads from Windows Server 2019 to 2022
11
11
12
-
Upgrading the OS version of a running Windows workload on Azure Kubernetes Service (AKS) requires you to deploy a new node pool as Windows versions must match on each node pool. This article describes the steps to upgrade the OS version for Windows workloads as well as other important aspects.
12
+
Upgrading the OS version of a running Windows workload on Azure Kubernetes Service (AKS) requires you to deploy a new node pool as Windows versions must match on each node pool. This article describes the steps to upgrade the OS version for Windows workloads and other important aspects.
13
13
14
14
> [!NOTE]
15
15
> Windows Server 2019 is being retired after Kubernetes version 1.32 reaches end of life (EOL) and won't be supported in future releases. For more information about this retirement, see the [AKS release notes][aks-release-notes].
16
16
17
17
## Limitations
18
18
19
-
Windows Server 2019 and Windows Server 2022 cannot co-exist on the same node pool on AKS. A new node pool must be created to host the new OS version. It's important that you match the permissions and access of the previous node pool to the new one.
19
+
Windows Server 2019 and Windows Server 2022 can't co-exist on the same node pool on AKS. A new node pool must be created to host the new OS version. It's important that you match the permissions and access of the previous node pool to the new one.
20
20
21
21
## Before you begin
22
22
@@ -30,7 +30,7 @@ Windows Server 2019 and Windows Server 2022 cannot co-exist on the same node poo
30
30
31
31
## Add a Windows Server 2022 node pool to the existing cluster
32
32
33
-
Windows Server 2019 and 2022 cannot co-exist on the same node pool on AKS. To upgrade your application, you need a separate node pool for Windows Server 2022.
33
+
Windows Server 2019 and 2022 can't co-exist on the same node pool on AKS. To upgrade your application, you need a separate node pool for Windows Server 2022.
34
34
For more information on how to add a new Windows Server 2022 node pool to an existing AKS cluster, see [Add a Windows Server 2022 node pool](./learn/quick-windows-container-deploy-cli.md).
35
35
36
36
## Update your YAML file
@@ -42,7 +42,7 @@ Node Selector is the most common and recommended option for placement of Windows
42
42
"kubernetes.io/os": windows
43
43
```
44
44
45
-
The above annotation will find *any* Windows node available and place the pod on that node (of course, following all other scheduling rules). When upgrading from Windows Server 2019 to Windows Server 2022, you need to enforce not only the placement on a Windows node, but also on a node that is running the latest OS version. To accomplish this, one option is to use a different annotation:
45
+
The above annotation finds *any* Windows node available and place the pod on that node (following all other scheduling rules). When upgrading from Windows Server 2019 to Windows Server 2022, you need to enforce not only the placement on a Windows node, but also on a node that is running the latest OS version. To accomplish this, one option is to use a different annotation:
46
46
47
47
```yaml
48
48
nodeSelector:
@@ -52,16 +52,16 @@ The above annotation will find *any* Windows node available and place the pod on
52
52
Once you update the nodeSelector on the YAML file, you should also update the container image to be used. You can get this information from the previous step on which you created a new version of the containerized application by changing the FROM statement on your dockerfile.
53
53
54
54
> [!NOTE]
55
-
> You should leverage the same YAML file you used to deploy the application in the first place - this will ensure no other configuration is changed, only the nodeSelector and the image to be used.
55
+
> You should leverage the same YAML file you used to deploy the application in the first place - this ensures no other configuration is changed, only the nodeSelector and the image to be used.
56
56
57
57
## Apply the new YAML file to the existing workload
58
58
59
-
If you have an application deployed already, ensure you follow the steps recommended above to deploy a new node pool with Windows Server 2022 nodes. Once deployed, your environment will show Windows Server 2019 and 2022 nodes, with the workloads running on the 2019 nodes:
59
+
If you have an application deployed already, follow the recommended steps to deploy a new node pool with Windows Server 2022 nodes. Once deployed, your environment will show Windows Server 2019 and 2022 nodes, with the workloads running on the 2019 nodes:
60
60
61
61
```console
62
62
kubectl get nodes -o wide
63
63
```
64
-
The command above will show all nodes on your AKS cluster with additional details on the output:
64
+
This command shows all nodes on your AKS cluster with extra details on the output:
65
65
66
66
```output
67
67
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
@@ -80,18 +80,18 @@ With the Windows Server 2022 node pool deployed and the YAML file configured, yo
80
80
kubectl apply -f <filename>
81
81
```
82
82
83
-
The command above should return a "configured" status for the deployment:
83
+
This command should return a "configured" status for the deployment:
84
84
85
85
```output
86
86
deployment.apps/sample configured
87
87
service/sample unchanged
88
88
```
89
-
At this point, AKS will start the process of terminating the existing pods and deploying new pods to the Windows Server 2022 nodes. You can check the status of your deployment by running:
89
+
At this point, AKS starts the process of terminating the existing pods and deploying new pods to the Windows Server 2022 nodes. You can check the status of your deployment by running:
90
90
91
91
```console
92
92
kubectl get pods -o wide
93
93
```
94
-
The command above return the status of the pods on the default namespace. You might need to change the command above to list the pods on specific namespaces.
94
+
This command return the status of the pods on the default namespace. You might need to change the command above to list the pods on specific namespaces.
95
95
96
96
```output
97
97
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
## Active Directory, gMSA and Managed Identity implications
104
104
105
-
If you are leveraging Group Managed Service Accounts (gMSA) you will need to update the Managed Identity configuration for the new node pool. gMSA uses a secret (user account and password) so the node on which the Windows pod is running can authenticate the container against Active Directory. To access that secret on Azure Key Vault, the node uses a Managed Identity that allows the node to access the resource. Since Managed Identities are configured per node pool, and the pod now resides on a new node pool, you need to update that configuration. Check out [Enable Group Managed Service Accounts (GMSA) for your Windows Server nodes on your Azure Kubernetes Service (AKS) cluster](./use-group-managed-service-accounts.md) for more information.
105
+
If you're using Group Managed Service Accounts (gMSA), update the Managed Identity configuration for the new node pool. gMSA uses a secret (user account and password) so the node on which the Windows pod is running can authenticate the container against Active Directory. To access that secret on Azure Key Vault, the node uses a Managed Identity that allows the node to access the resource. Since Managed Identities are configured per node pool, and the pod now resides on a new node pool, you need to update that configuration. Check out [Enable Group Managed Service Accounts (GMSA) for your Windows Server nodes on your Azure Kubernetes Service (AKS) cluster](./use-group-managed-service-accounts.md) for more information.
106
106
107
107
The same principle applies to Managed Identities used for any other pod/node pool when accessing other Azure resources. Any access provided via Managed Identity needs to be updated to reflect the new node pool. To view update and sign-in activities, see [How to view Managed Identity activity](../active-directory/managed-identities-azure-resources/how-to-view-managed-identity-activity.md).
Copy file name to clipboardExpand all lines: articles/aks/use-windows-hpc.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,13 @@ A privileged DaemonSet can carry out changes or monitor a Linux host on Kubernet
18
18
19
19
* HostProcess containers require Kubernetes 1.23 or greater.
20
20
* HostProcess containers require `containerd` 1.6 or higher container runtime.
21
-
* HostProcess pods can only contain HostProcess containers. This is a current limitation of the Windows operating system.Non-privileged Windows containers can't share a vNIC with the host IP namespace.
21
+
* HostProcess pods can only contain HostProcess containersdue to a limitation on the Windows operating system.Non-privileged Windows containers can't share a vNIC with the host IP namespace.
22
22
* HostProcess containers run as a process on the host. The only isolation those containers have from the host is the resource constraints imposed on the HostProcess user account.
23
23
* Filesystem isolation and Hyper-V isolation aren't supported for HostProcess containers.
24
24
* Volume mounts are supported and are mounted under the container volume. See Volume Mounts.
25
25
* A limited set of host user accounts are available for Host Process containers by default. See Choosing a User Account.
26
26
* Resource limits such as disk, memory, and cpu count, work the same way as fashion as processes on the host.
27
-
* Named pipe mounts and Unix domain sockets are not directly supported, but can be accessed on their host path, for example `\\.\pipe\*`.
27
+
* Named pipe mounts and Unix domain sockets aren't directly supported, but can be accessed on their host path, for example `\\.\pipe\*`.
28
28
29
29
30
30
## Run a HostProcess workload
@@ -44,7 +44,7 @@ To use HostProcess features with your deployment, set *hostProcess: true* and *h
44
44
...
45
45
```
46
46
47
-
To run an example workload that uses HostProcess features on an existing AKS cluster with Windows nodes, create `hostprocess.yaml` with the following:
47
+
To run an example workload that uses HostProcess features on an existing AKS cluster with Windows nodes, create `hostprocess.yaml` with the following contents:
You can verify your workload use the features of HostProcess by view the pod's logs.
99
+
Verify that your workload uses the features of HostProcess containers by viewing the pod's logs.
100
100
101
101
Use `kubectl` to find the name of the pod in the `kube-system` namespace.
102
102
@@ -118,7 +118,7 @@ Process has admin rights:
118
118
119
119
## Next steps
120
120
121
-
For more details on HostProcess containers and Microsoft's contribution to Kubernetes upstream, see the [Alpha in v1.22: Windows HostProcess Containers][blog-post].
121
+
For more information on HostProcess containers and Microsoft's contribution to Kubernetes upstream, see the [Alpha in v1.22: Windows HostProcess Containers][blog-post].
0 commit comments