-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCPBUGS-22095: Add default MCP objects for rendering (#833)
* feat: update render command to create default MCPs added default MCP creation to help correctly render out the resources for performance profile to use Signed-off-by: ehila <ehila@redhat.com> upkeep: fix spelling Signed-off-by: ehila <ehila@redhat.com> * feat: add default mcpools to tuned renderer Signed-off-by: ehila <ehila@redhat.com> --------- Signed-off-by: ehila <ehila@redhat.com>
- Loading branch information
Showing
32 changed files
with
1,691 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...e2e/performanceprofile/cluster-setup/bootstrap-cluster/extra-mcp/machine_config_pool.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfigPool | ||
metadata: | ||
name: worker-cnf | ||
namespace: openshift-machine-config-operator | ||
labels: | ||
machineconfiguration.openshift.io/role: worker-cnf | ||
spec: | ||
paused: true | ||
machineConfigSelector: | ||
matchExpressions: | ||
- key: machineconfiguration.openshift.io/role | ||
operator: In | ||
values: [worker,worker-cnf] | ||
nodeSelector: | ||
matchLabels: | ||
node-role.kubernetes.io/worker-cnf: "" |
12 changes: 12 additions & 0 deletions
12
test/e2e/performanceprofile/cluster-setup/bootstrap-cluster/performance/pao_master.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: performance.openshift.io/v2 | ||
kind: PerformanceProfile | ||
metadata: | ||
name: openshift-bootstrap-master | ||
spec: | ||
cpu: | ||
isolated: 0-1 | ||
reserved: 2-7 | ||
machineConfigPoolSelector: | ||
pools.operator.machineconfiguration.openshift.io/master: "" | ||
nodeSelector: | ||
node-role.kubernetes.io/master: "" |
12 changes: 12 additions & 0 deletions
12
test/e2e/performanceprofile/cluster-setup/bootstrap-cluster/performance/pao_worker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: performance.openshift.io/v2 | ||
kind: PerformanceProfile | ||
metadata: | ||
name: openshift-bootstrap-worker | ||
spec: | ||
cpu: | ||
isolated: 0-1 | ||
reserved: 2-3 | ||
machineConfigPoolSelector: | ||
pools.operator.machineconfiguration.openshift.io/worker: "" | ||
nodeSelector: | ||
node-role.kubernetes.io/worker: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...put/bootstrap/extra-mcp/01_01-master-cpu-partitioning_workload_pinning_machineconfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
machineconfiguration.openshift.io/role: master | ||
name: 01-master-cpu-partitioning | ||
spec: | ||
baseOSExtensionsContainerImage: "" | ||
config: | ||
ignition: | ||
config: | ||
replace: | ||
verification: {} | ||
proxy: {} | ||
security: | ||
tls: {} | ||
timeouts: {} | ||
version: 3.2.0 | ||
passwd: {} | ||
storage: | ||
files: | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CnsKICAibWFuYWdlbWVudCI6IHsKICAgICJjcHVzZXQiOiAiIgogIH0KfQo= | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/kubernetes/openshift-workload-pinning | ||
user: {} | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CltjcmlvLnJ1bnRpbWUud29ya2xvYWRzLm1hbmFnZW1lbnRdCmFjdGl2YXRpb25fYW5ub3RhdGlvbiA9ICJ0YXJnZXQud29ya2xvYWQub3BlbnNoaWZ0LmlvL21hbmFnZW1lbnQiCmFubm90YXRpb25fcHJlZml4ID0gInJlc291cmNlcy53b3JrbG9hZC5vcGVuc2hpZnQuaW8iCnJlc291cmNlcyA9IHsgImNwdXNoYXJlcyIgPSAwLCAiY3B1c2V0IiA9ICIiIH0K | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/crio/crio.conf.d/01-workload-pinning-default.conf | ||
user: {} | ||
systemd: {} | ||
extensions: null | ||
fips: false | ||
kernelArguments: null | ||
kernelType: "" | ||
osImageURL: "" |
42 changes: 42 additions & 0 deletions
42
...bootstrap/extra-mcp/01_01-worker-cnf-cpu-partitioning_workload_pinning_machineconfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
machineconfiguration.openshift.io/role: worker-cnf | ||
name: 01-worker-cnf-cpu-partitioning | ||
spec: | ||
baseOSExtensionsContainerImage: "" | ||
config: | ||
ignition: | ||
config: | ||
replace: | ||
verification: {} | ||
proxy: {} | ||
security: | ||
tls: {} | ||
timeouts: {} | ||
version: 3.2.0 | ||
passwd: {} | ||
storage: | ||
files: | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CnsKICAibWFuYWdlbWVudCI6IHsKICAgICJjcHVzZXQiOiAiIgogIH0KfQo= | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/kubernetes/openshift-workload-pinning | ||
user: {} | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CltjcmlvLnJ1bnRpbWUud29ya2xvYWRzLm1hbmFnZW1lbnRdCmFjdGl2YXRpb25fYW5ub3RhdGlvbiA9ICJ0YXJnZXQud29ya2xvYWQub3BlbnNoaWZ0LmlvL21hbmFnZW1lbnQiCmFubm90YXRpb25fcHJlZml4ID0gInJlc291cmNlcy53b3JrbG9hZC5vcGVuc2hpZnQuaW8iCnJlc291cmNlcyA9IHsgImNwdXNoYXJlcyIgPSAwLCAiY3B1c2V0IiA9ICIiIH0K | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/crio/crio.conf.d/01-workload-pinning-default.conf | ||
user: {} | ||
systemd: {} | ||
extensions: null | ||
fips: false | ||
kernelArguments: null | ||
kernelType: "" | ||
osImageURL: "" |
42 changes: 42 additions & 0 deletions
42
...put/bootstrap/extra-mcp/01_01-worker-cpu-partitioning_workload_pinning_machineconfig.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: machineconfiguration.openshift.io/v1 | ||
kind: MachineConfig | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
machineconfiguration.openshift.io/role: worker | ||
name: 01-worker-cpu-partitioning | ||
spec: | ||
baseOSExtensionsContainerImage: "" | ||
config: | ||
ignition: | ||
config: | ||
replace: | ||
verification: {} | ||
proxy: {} | ||
security: | ||
tls: {} | ||
timeouts: {} | ||
version: 3.2.0 | ||
passwd: {} | ||
storage: | ||
files: | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CnsKICAibWFuYWdlbWVudCI6IHsKICAgICJjcHVzZXQiOiAiIgogIH0KfQo= | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/kubernetes/openshift-workload-pinning | ||
user: {} | ||
- contents: | ||
source: data:text/plain;charset=utf-8;base64,CltjcmlvLnJ1bnRpbWUud29ya2xvYWRzLm1hbmFnZW1lbnRdCmFjdGl2YXRpb25fYW5ub3RhdGlvbiA9ICJ0YXJnZXQud29ya2xvYWQub3BlbnNoaWZ0LmlvL21hbmFnZW1lbnQiCmFubm90YXRpb25fcHJlZml4ID0gInJlc291cmNlcy53b3JrbG9hZC5vcGVuc2hpZnQuaW8iCnJlc291cmNlcyA9IHsgImNwdXNoYXJlcyIgPSAwLCAiY3B1c2V0IiA9ICIiIH0K | ||
verification: {} | ||
group: {} | ||
mode: 420 | ||
path: /etc/crio/crio.conf.d/01-workload-pinning-default.conf | ||
user: {} | ||
systemd: {} | ||
extensions: null | ||
fips: false | ||
kernelArguments: null | ||
kernelType: "" | ||
osImageURL: "" |
Oops, something went wrong.