Skip to content

Commit e44db6a

Browse files
authored
chore: Add v10.0 upgrade doc (#599)
1 parent d9f7782 commit e44db6a

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

docs/upgrading_to_v10.0.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Upgrading to v10.0
2+
3+
The v10.0 release of *kubernetes-engine* is a backwards incompatible
4+
release.
5+
6+
## Provider Version
7+
8+
- For beta modules, support for Google provider versions older than v3.29 has been removed.
9+
- For GA modules, provider version constraints are unchanged.
10+
11+
## Default Machine Type
12+
The new default machine type for node pools is now `e2-medium`. These VMs are more cost-effective. e2-medium machine types sustain 2 vCPUs at 50% of CPU time, yielding the same processing capacity as 1 vCPU and can temporarily burst to 2 vCPUs. Thus the sustained throughput is the same as n1-standard-1, so long as there are multiple threads running on the node -- and if you have multiple containers -- this is almost certainly the case.
13+
14+
However, `e2-medium` nodes don't work for all use cases. In particular, if you are using any of these features you should choose another machine type:
15+
16+
1. You're running single-threaded applications with sensitive performance requirements.
17+
2. You use GPUs or local SSDs or sole tenancy, all of which are unsupported by the new default machine type e2-medium.
18+
19+
If you want to keep the old node type (`n1-standard-2`), you should specify it explicitly:
20+
21+
```diff
22+
module "gke" {
23+
source = "terraform-google-modules/kubernetes-engine/google"
24+
- version = "~> 9.0"
25+
+ version = "~> 10.0"
26+
...
27+
node_pools = [
28+
{
29+
name = "pool-01"
30+
+ machine_type = "n1-standard-2"
31+
},
32+
]
33+
}
34+
```
35+
36+
## Pod Security Policy
37+
The interface for configuring pod security policy has been [simplified](https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/commit/6069ece9cd12acbbba8ff16ab0cbc9b17bc47985) to a simple boolean. If you've changed the default, you'll need to update your config:
38+
39+
```diff
40+
module "gke" {
41+
source = "terraform-google-modules/kubernetes-engine/google"
42+
- version = "~> 9.0"
43+
+ version = "~> 10.0"
44+
...
45+
- pod_security_policy_config = [{
46+
- enabled = true
47+
- }]
48+
+ enable_pod_security_policy = true
49+
}
50+
```

0 commit comments

Comments
 (0)