diff --git a/docs/instance_groups.md b/docs/instance_groups.md index c879727856..54e9e22715 100644 --- a/docs/instance_groups.md +++ b/docs/instance_groups.md @@ -143,6 +143,25 @@ spec: compressUserData: true ``` +## packages +{{ kops_feature_table(kops_added_default='1.24') }} + +To install additional packages to hosts in the instance group, specify the `packages` field as an array of strings. + +Package names are distro specific and are not validated in any way. Specifying incorrect package names may prevent nodes from starting. + +For example: + +```YAML +apiVersion: kops.k8s.io/v1alpha2 +kind: InstanceGroup +metadata: + name: nodes +spec: + packages: + - nfs-common +``` + ## sysctlParameters {{ kops_feature_table(kops_added_default='1.17') }} @@ -164,8 +183,8 @@ metadata: name: nodes spec: sysctlParameters: - - fs.pipe-user-pages-soft=524288 - - net.ipv4.tcp_keepalive_time=200 + - fs.pipe-user-pages-soft=524288 + - net.ipv4.tcp_keepalive_time=200 ``` which would end up in a drop-in file on nodes of the instance group in question. diff --git a/docs/releases/1.24-NOTES.md b/docs/releases/1.24-NOTES.md index 7b826d626e..276aa9c2cd 100644 --- a/docs/releases/1.24-NOTES.md +++ b/docs/releases/1.24-NOTES.md @@ -31,7 +31,7 @@ kOps will directly manage the Karpenter Provisioner resources. Read more about h # Breaking changes -* The nfs-common/nfs-utils package is no longer installed by default. +* The nfs-common/nfs-utils package is no longer installed by default. Use the [packages](https://kops.sigs.k8s.io/instance_groups/#packages) option at instance group level to add it back. ## Control plane taints and labels