This provisions an EKS cluster with CPU Management Policies confiured to static.
The instance type in the node group is m5.metal.
$ # Provision EKS Cluster
$ eksctl create cluster -f ./cluster-config.yaml$ kubectl apply -f sample-app.yamlThis provisions an EKS cluster with CPU Management Policies confiured to static.
The instance type in the node group is m5.metal.
$ # Provision EKS Cluster
$ eksctl create cluster -f ./cluster-config.yaml$ kubectl apply -f sample-app.yaml| apiVersion: eksctl.io/v1alpha5 | |
| kind: ClusterConfig | |
| metadata: | |
| name: bare-metal | |
| region: eu-west-1 | |
| nodeGroups: | |
| - name: ng-cpu-managed | |
| instanceType: m5.metal | |
| desiredCapacity: 2 | |
| placement: | |
| groupName: sample-placement-group | |
| ssh: | |
| enableSsm: true | |
| kubeletExtraConfig: | |
| cpuManagerPolicy: static |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: qos-cpu-manager | |
| name: qos-cpu-manager | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: qos-cpu-manager | |
| strategy: {} | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: qos-cpu-manager | |
| spec: | |
| containers: | |
| - image: nginx | |
| name: nginx | |
| resources: | |
| limits: | |
| memory: "200Mi" | |
| cpu: "2" |