-
Notifications
You must be signed in to change notification settings - Fork 6
update ansible prepare server script #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| apiVersion: policy/v1 | ||
| kind: PodDisruptionBudget | ||
| metadata: | ||
| name: toolbox-pdb | ||
| namespace: seba | ||
| spec: | ||
| minAvailable: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: dpdk | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -315,6 +315,13 @@ | |
| register: kubectl_download | ||
| until: kubectl_download is succeeded | ||
|
|
||
| - name: Create symbolic link for kubectl binary | ||
| file: | ||
| src: /usr/local/bin/kubectl | ||
| dest: /bin/kubectl | ||
| state: link | ||
| mode: '0777' | ||
|
Comment on lines
+318
to
+323
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This task creates a symbolic link for I suggest changing the destination to - name: Create symbolic link for kubectl binary
file:
src: /usr/local/bin/kubectl
dest: /usr/bin/kubectl
state: link |
||
|
|
||
| - name: Verify kubectl installation | ||
| command: kubectl version --client | ||
| changed_when: false | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| apiVersion: sriovnetwork.openshift.io/v1 | ||
| kind: SriovNetworkNodePolicy | ||
| metadata: | ||
| name: sriov-nic-1 | ||
| namespace: openshift-sriov-network-operator | ||
| spec: | ||
| deviceType: netdevice | ||
| nicSelector: | ||
| pfNames: ["enp41s0"] | ||
| nodeSelector: | ||
| kubernetes.io/hostname: ocp-virt-worker-0.lab | ||
| numVfs: 5 | ||
| priority: 99 | ||
| resourceName: sriov_nic_1 | ||
| mtu: 1500 | ||
| --- | ||
| apiVersion: sriovnetwork.openshift.io/v1 | ||
| kind: SriovNetworkNodePolicy | ||
| metadata: | ||
| name: sriov-nic-2 | ||
| namespace: openshift-sriov-network-operator | ||
| spec: | ||
| deviceType: netdevice | ||
| nicSelector: | ||
| pfNames: ["enp22s0"] | ||
| nodeSelector: | ||
| kubernetes.io/hostname: ocp-virt-worker-0.lab | ||
|
Comment on lines
+10
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| numVfs: 5 | ||
| priority: 99 | ||
| resourceName: sriov_nic_2 | ||
| mtu: 1500 | ||
| # externallyManaged: true | ||
| --- | ||
| apiVersion: sriovnetwork.openshift.io/v1 | ||
| kind: SriovNetwork | ||
| metadata: | ||
| name: sriov-network-1 | ||
| namespace: openshift-sriov-network-operator | ||
| spec: | ||
| ipam: '{"type": "host-local","ranges": [[{"subnet": "10.0.1.0/24"}]],"dataDir": | ||
| "/run/my-orchestrator/container-ipam-state-1"}' | ||
|
Comment on lines
+40
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The ipam: '{"type": "host-local","ranges": [[{"subnet": "10.0.1.0/24"}]],"dataDir": "/run/my-orchestrator/container-ipam-state-1"}' |
||
| networkNamespace: seba | ||
| spoofChk: "on" | ||
| trust: "on" | ||
| resourceName: sriov_nic_1 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The selector
app: dpdkin thisPodDisruptionBudgetdoes not match the labels of the pods created by thetoolboxdeployment (defined inpods/deployment-toolbox.yaml), which are labeled withapp: toolbox. Given the PDB's name istoolbox-pdb, it seems intended for that deployment. To fix this, the selector should be updated to match the deployment's pod labels.